Comments (3)
you need to regenerate your api-key without restriction of ip. Remember to select the future box if you want to trade perpetual future.
from binance_grid_trader.
Thanks for the suggestion. Looking at the code, I noticed that you develop everything from the beginning instead of using Binance API which would be a more standard approach.
Actually, I was using the testnet API rather than the real one. Anyhow, I managed to change the hostname in the code and it seems to be working. However, I am getting the following errors:
请求:/api/v3/openOrders, 发生了错误: Expecting value: line 1 column 1 (char 0)
请求:/api/v3/openOrders, 发生了错误: Expecting value: line 1 column 1 (char 0)
请求:/api/v3/openOrders, 发生了错误: Expecting value: line 1 column 1 (char 0)
请求:/api/v3/openOrders, 发生了错误: Expecting value: line 1 column 1 (char 0)
请求:/api/v3/openOrders, 发生了错误: Expecting value: line 1 column 1 (char 0)
cancel orders: None
请求:/api/v3/ticker/bookTicker, 发生了错误: Expecting value: line 1 column 1 (char 0)
请求:/api/v3/ticker/bookTicker, 发生了错误: Expecting value: line 1 column 1 (char 0)
请求:/api/v3/ticker/bookTicker, 发生了错误: Expecting value: line 1 column 1 (char 0)
请求:/api/v3/ticker/bookTicker, 发生了错误: Expecting value: line 1 column 1 (char 0)
请求:/api/v3/ticker/bookTicker, 发生了错误: Expecting value: line 1 column 1 (char 0)
bid_price: 0, ask_price: 0
buy orders: []
------------------------------
sell orders: []
请求:/api/v3/ticker/bookTicker, 发生了错误: Expecting value: line 1 column 1 (char 0)
请求:/api/v3/ticker/bookTicker, 发生了错误: Expecting value: line 1 column 1 (char 0)
请求:/api/v3/ticker/bookTicker, 发生了错误: Expecting value: line 1 column 1 (char 0)
请求:/api/v3/ticker/bookTicker, 发生了错误: Expecting value: line 1 column 1 (char 0)
请求:/api/v3/ticker/bookTicker, 发生了错误: Expecting value: line 1 column 1 (char 0)
bid_price: 0, ask_price: 0
I was using the default config settings:
{
"platform": "binance_spot",
"symbol": "BTCUSDT",
"api_key": "XXX",
"api_secret": "XXX",
"gap_percent": 0.001,
"quantity": 0.001,
"min_price": 0.01,
"min_qty": 0.001,
"max_orders": 1,
"proxy_host": "",
"proxy_port": 0
}
It could be that Binance has changed its APIs, so it does not accept orders any more?
Thanks
Didi
from binance_grid_trader.
Thanks for the suggestion. Looking at the code, I noticed that you develop everything from the beginning instead of using Binance API which would be a more standard approach.
Actually, I was using the testnet API rather than the real one. Anyhow, I managed to change the hostname in the code and it seems to be working. However, I am getting the following errors:
请求:/api/v3/openOrders, 发生了错误: Expecting value: line 1 column 1 (char 0) 请求:/api/v3/openOrders, 发生了错误: Expecting value: line 1 column 1 (char 0) 请求:/api/v3/openOrders, 发生了错误: Expecting value: line 1 column 1 (char 0) 请求:/api/v3/openOrders, 发生了错误: Expecting value: line 1 column 1 (char 0) 请求:/api/v3/openOrders, 发生了错误: Expecting value: line 1 column 1 (char 0) cancel orders: None 请求:/api/v3/ticker/bookTicker, 发生了错误: Expecting value: line 1 column 1 (char 0) 请求:/api/v3/ticker/bookTicker, 发生了错误: Expecting value: line 1 column 1 (char 0) 请求:/api/v3/ticker/bookTicker, 发生了错误: Expecting value: line 1 column 1 (char 0) 请求:/api/v3/ticker/bookTicker, 发生了错误: Expecting value: line 1 column 1 (char 0) 请求:/api/v3/ticker/bookTicker, 发生了错误: Expecting value: line 1 column 1 (char 0) bid_price: 0, ask_price: 0 buy orders: [] ------------------------------ sell orders: [] 请求:/api/v3/ticker/bookTicker, 发生了错误: Expecting value: line 1 column 1 (char 0) 请求:/api/v3/ticker/bookTicker, 发生了错误: Expecting value: line 1 column 1 (char 0) 请求:/api/v3/ticker/bookTicker, 发生了错误: Expecting value: line 1 column 1 (char 0) 请求:/api/v3/ticker/bookTicker, 发生了错误: Expecting value: line 1 column 1 (char 0) 请求:/api/v3/ticker/bookTicker, 发生了错误: Expecting value: line 1 column 1 (char 0) bid_price: 0, ask_price: 0
I was using the default config settings:
{
"platform": "binance_spot",
"symbol": "BTCUSDT",
"api_key": "XXX",
"api_secret": "XXX",
"gap_percent": 0.001,
"quantity": 0.001,
"min_price": 0.01,
"min_qty": 0.001,
"max_orders": 1,
"proxy_host": "",
"proxy_port": 0
}It could be that Binance has changed its APIs, so it does not accept orders any more?
Thanks
Didi
Why not use the real one, the testing network maybe not working for some expected reasons. Using the real one does not cost too much. You just need to deposit only 20USDT or less than 100USDT will work.
from binance_grid_trader.
Related Issues (20)
- biniance future HOT 3
- Backtesting and profit trailing support HOT 1
- Error 400 on binance_future HOT 2
- Need to update language HOT 3
- Missing gatewayModule HOT 2
- Illegal characters found in parameter 'price' HOT 3
- Error Code -2011 Unknown Order Sent HOT 6
- poloniex HOT 1
- Nice work HOT 19
- api format error (run from main_spot_script.py) HOT 1
- hedge mode support
- spot_grid_strategy.py HOT 1
- INFO: Order Failed,Code: 400, Msg:{"code":-4014,"msg":"Price not increased by tick size."}
- Subscribe Market Data Failed,Symbol Not Found...
- Need more webhook feature to create and close strategy via https request
- Size of spread on buy and sell HOT 1
- Other Exchanges
- Unresolved attribute reference 'get_contract' for class MainEngine
- 这个有止损功能就好了 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from binance_grid_trader.