使用coinbase pro api出售时显示错误的值

时间:2019-08-12 04:15:12

标签: coinbase-api

我正在通过沙盒使用coinbase pro api并测试一个销售案例。

我要下的订单是

const sellParams:any = {
    'side': 'sell',
    'product_id': 'BTC-USD',
    'type': 'market',
    'size': '0.009'
}

订单状态的响应如下

{
  "type": "market",
  "id": "5846345c-c070-44bf-9d31-ec07a1c9892c",
  "product_id": "BTC-USD",
  "side": "sell",
  "post_only": false,
  "created_at": "2019-08-12T04:08:29.845922Z",
  "fill_fees": "0.0297509100000000",
  "filled_size": "0.00300000",
  "executed_value": "9.9169700000000000",
  "status": "done",
  "settled": true,
  "done_at": "2019-08-12T04:08:29.853Z",
  "done_reason": "canceled",
  "size": "0.00900000"
}

问题在于执行值显示9.9169 ...应该在100 USD左右吗?

1 个答案:

答案 0 :(得分:0)

因此,沙盒价格基本上与实际价格有所不同,这就是混乱所在。