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导入时间中时仍在美元钱包中...
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')