<p><a href="https://github.com/danpaquin/gdax-python" rel="nofollow noreferrer">Here</a> is the documentation I'm following and to place a buy order, the syntax follows the following format:</p>

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

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

<p>Any help would be much appreciated. </p>

CC BY-SA 3.0
2018-01-08T00:12:22.233Z
Set the price to $100 over the current price?
xaav
CC BY-SA 3.0
2018-01-08T00:15:27.510Z
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
<api><python><gdax>
Having trouble using GDAX API to place market buy order
madsthaks
# Having trouble using GDAX API to place market buy order

(Asked by: username_0 on 2018-01-07)

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.

**Tags:** api, python, gdax

> **Comments:**
> **username_1**: Set the price to $100 over the current price?  
> **username_1**: 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?  

---

## 0 answers

