当前,我正在使用此库https://github.com/danpaquin/coinbasepro-python。 假设我有9000美元,我想购买BTC-USD的最高价格或卖出BTC-USD的最高价格。
这是我的代码:
auth_client.place_market_order(product_id='BTC-USD', side='buy', funds=Max_Funds)
auth_client.place_market_order(product_id='BTC-USD', side='sell', funds=Max_Funds)
我不知道如何出售或购买Max_funds。