Giter Site home page Giter Site logo

Comments (3)

51bitquant avatar 51bitquant commented on May 29, 2024

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.

didikrm avatar didikrm commented on May 29, 2024

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.

51bitquant avatar 51bitquant commented on May 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.