为什么使用Coinbase API时无法处理我的市场定单?我仍然在美元钱包中看到我的资金。对不起,我对这个API非常陌生]] <<

问题描述 投票:0回答:1
这是我的代码。非常抱歉,此API还是我的新手,我想知道我的资金还应该存放在BTC WALLET中时,它们仍在USD钱包中

import cbpro import numpy import time apiKey = "xxxxxxxxxxxxxx" apiSecret = "xxxxxxxxxxxxxxxx" passphrase = "xxxxxxx" auth_client = cbpro.AuthenticatedClient(apiKey,apiSecret,passphrase) currency = 'BTC-USD' auth_client.place_market_order(product_id=currency, side='buy', funds='0.40')

这是我的代码。非常抱歉,此API还是我的新手,我想知道我的资金何时仍应存在于BTC WALLET导入cbpro导入numpy导入时间中时仍在美元钱包中...
python algorithm pycharm trading coinbase-api
1个回答
0
投票
import cbpro import numpy import time apiKey = "xxxxxxxxxxxxxx" apiSecret = "xxxxxxxxxxxxxxxx" passphrase = "xxxxxxx" auth_client = cbpro.AuthenticatedClient(apiKey,apiSecret,passphrase) currency = 'BTC-USD' auth_client.buy(price='100.00', #USD size='0.01', #BTC order_type='limit', product_id='BTC-USD')
© www.soinside.com 2019 - 2024. All rights reserved.