Coinbase Pro API 传输端点上缺少货币字段

时间:2021-03-18 21:54:18

标签: coinbase-api

我正在使用 Coinbase Pro API 的 List Deposits endpoint,但响应中返回的数据让我不知道使用哪种货币(法定货币或加密货币):

  {
    id: 'xxx',
    type: 'deposit',
    created_at: '2017-11-27 09:03:13.278111+00',
    completed_at: '2017-11-27 09:03:14.112826+00',
    canceled_at: null,
    processed_at: '2017-11-27 09:03:14.112826+00',
    account_id: 'xxx',
    user_id: 'xxx',
    user_nonce: null,
    amount: '2001.00000000',
    details: {
      coinbase_account_id: 'xxx',
      coinbase_transaction_id: 'xxx'
    },
    idem: null
  }

我尝试将 id 与 Single Deposit 端点一起使用,但得到了相同的结果。我知道货币可以以某种方式获得,因为有很多投资组合跟踪服务在做这件事,所以我一定做错了什么,但我不知道它会是什么。有人知道怎么做吗?

谢谢!

1 个答案:

答案 0 :(得分:2)

找到了 :) 这需要对 Accounts endpoint 的第一个请求,它返回 currencyid,并且 id 需要与 {{1 }} 字段的存款。

相关问题