Having trouble using GDAX API to place market buy order

1

1

Here is the documentation I'm following and to place a buy order, the syntax follows the following format:

# Buy 0.01 BTC @ 100 USD
auth_client.buy(price='100.00', #USD
               size='0.01', #BTC
               product_id='BTC-USD')

That's straight forward but i'd prefer to place a market order using $100 but I'm not sure how.

Any help would be much appreciated.

madsthaks

Posted 2018-01-07T21:20:41.430

Reputation: 131

Set the price to $100 over the current price?xaav 2018-01-08T00:12:22.233

Just out of curiosity, how does the engine resolve orders that are more than adequate? In other words, the seller wants to sell for much less than the buyer wants to buy?xaav 2018-01-08T00:15:27.510

No answers