-
Notifications
You must be signed in to change notification settings - Fork 187
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
Responses to orders are sometimes None #60
Comments
Are you deal with your problmes ? |
To get the examples working, you can amend the try:
# all params are exchange specific: https://github.com/ccxt/ccxt/wiki/Manual#custom-order-params
ret_ord = self.store.create_order(symbol=data.p.dataname, order_type=order_type, side=side,
amount=amount, price=price, params=params)
params['created'] = created # Add timestamp of order creation for backtesting
except Exception as e:
print(e)
print("ORDER FAILED")
# save some API calls after failure
self.use_order_params = False
return None |
Thank you for your reply. I have deal with this problem. However, a few days ago, a program that was working correctly encountered a new problem: InvalidNonce: binance {"code":-1021,"msg":"Timestamp for this request is outside of the recvWindow."} I don't konw why ? |
Looks like a time sync issue: |
Hey @chuzheng88, How you deal with the previous problem, I still stuck at here, my self.buy() return None. and I followed method provided by @Saran33. It is not working. |
@Ying-da make sure not have |
I've seen this with binance and ftx. No error message, just a None response to the call to
self.buy
orself.sell
. No open order at the exchange either. As if nothing happened. I'm not even sure if this is a problem with the bt-ccxt-store or with ccxt.Is there anything that I can do to either make the requests more robust or to debug the issue?
The text was updated successfully, but these errors were encountered: