gemini create order not working
See original GitHub issuei was able to query the balance successfully, which means the API key is working. The API key has trading priority as well. here is the code snippet
gemini_balance = gemini.fetch_balance()
print 'gemini', gemini_balance['BTC']['total'], gemini_balance['USD']['total'] # success
time.sleep(2)
gemini.create_order('BTC/USD', 'limit', 'sell', 0.1, 6350) # got ccxt.base.errors.ExchangeNotAvailable
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Gemini FIX Order Entry API Reference
Symbol Minimum Order Size Tick Size Quote Currency Price Increment
btcusd 0.00001 BTC (1e‑5) 0.00000001 BTC (1e‑8) 0.01 USD
btceur 0.00001 BTC (1e‑5) 0.00000001 BTC...
Read more >Gemini Exchange Status
Welcome to Gemini Exchange's home for real-time and historical data on system performance.
Read more >Trading Basics: Market Orders, Limit Orders, & More | Gemini
Learn about cryptocurrency trading and the basic trading order types, including: market orders, limit orders, and stop-loss orders.
Read more >Gemini REST API Reference
Troubleshooting. Please use our Sandbox environment to develop and test your code. If your private API request is failing, turn on debug logging...
Read more >Gemini WebSocket API Reference
For public WebSocket APIs, we recommend that you do not exceed 1 request per symbol ... Order Status endpoint for the same order,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
i found the cause. all you need to do is changing the line marked with ####
def create_order(self, symbol, type, side, amount, price=None, params={}): self.load_markets() if type == ‘market’: raise ExchangeError(self.id + ’ allows limit orders only’) order = { ‘client_order_id’: str(self.nonce()), #### add str() ‘symbol’: self.market_id(symbol), ‘amount’: str(amount), ‘price’: str(price), ‘side’: side, ‘type’: ‘exchange limit’, # gemini allows limit orders only } print order response = self.privatePostOrderNew(self.extend(order, params)) return { ‘info’: response, ‘id’: response[‘order_id’], }
On Wed, Nov 1, 2017 at 12:24 AM, Igor Kroitor notifications@github.com wrote: