-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gemini create order not working #436
Comments
@hzmbeyond80 can you post verbose output, plz?
Plz use tripple backticks ``` or ``` |
|
@hzmbeyond80 thx! I'll take a look into it and will get back to you asap! |
*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 ***@***.***> wrote:
@hzmbeyond80 <https://github.com/hzmbeyond80> thx! I'll take a look into
it and will get back to you asap!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#436 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AE19PQGhoJGX9E0eYrM8BwRT3qKe4vBCks5syByhgaJpZM4QN0-J>
.
|
@hzmbeyond80 awesome! Thanks for your help! I am going to upload the fix for it now! |
@hzmbeyond80 this was fixed in 1.9.329. Thx to you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i 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
The text was updated successfully, but these errors were encountered: