我正在查看Gdax api和 gdax-python 库,看起来对 by/sell 的 json 请求是这种格式:
# Place an order
order = {
'size': 1.0,
'price': 1.0,
'side': 'buy',
'product_id': 'BTC-USD',
}
r = requests.post(api_url + 'orders', json=order, auth=auth)
其中 size 指定硬币的数量。
使用这个 API 或其他东西,是否可以指定购买金额USD
而不是硬币大小?