Coinbase Pro中的限价订单

时间:2018-09-01 00:52:43

标签: python coinbase-api fee

我试图下限后限价单,这样就不会产生费用,以下是相关声明:

from coinbase.wallet.client import Client

spot_price = client.get_spot_price(currency_pair = 'BTC-USD')

priceStr = repr(float(spot_price.amount) - 25.0)
buy_order = primary_account.buy(amount = '0.001', currency = 'BTC', price = priceStr, post_only = True )
print("buy_order=", buy_order, "price=", priceStr)

However, it did not work as a fee of 0.99 is charged and also the price is higher.  

What could be wrong?

好的,现在我意识到问题可能是我使用的是Coinbase API密钥,而不是Coinbase.Pro(以前是GDAX)API密钥。我已经生成了Pro API密钥,并将在明天重试(因为更改似乎将在明天进行)。感谢所有尝试提供帮助的人。

谢谢, 肖恩

0 个答案:

没有答案