I'm looking at Gdax api and gdax-python library, looks like json request to by/sell is in this format:
# 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)
Where size specifies the amount of coin.
Using this API or something else, is it possible to specify the amount to buy in USD
instead of coin-size?