【问题标题】:Currency field missing on Coinbase Pro API transfers endpointCoinbase Pro API 传输端点上缺少货币字段
【发布时间】:2021-03-18 21:54:18
【问题描述】:

我正在使用 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 端点一起使用,但我得到了相同的结果。我知道可以通过某种方式获得货币,因为有很多投资组合跟踪服务在做这件事,所以我一定做错了什么,但我不知道它会是什么。有人知道怎么做吗?

谢谢!

【问题讨论】:

    标签: coinbase-api


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2021-12-16
      • 1970-01-01
      • 1970-01-01
      • 2020-09-29
      • 2014-11-14
      • 2020-04-09
      • 2013-11-08
      • 2015-04-07
      • 1970-01-01
      相关资源
      最近更新 更多