Comments (8)
Binance will send a {}
response to order requests when you have the options.test
flag set to true
:
binance.options({
// ...
test: true // If you want to use sandbox mode where orders are simulated
});
This is by their design. It's use is more to get an idea for how long it will take for the exchange to receive and process your order, but not go as far as the final step of putting into their matching engine. So if you're simulating trading, it's up to you to track what you believe your sale/buy prices and quantities were, ie. using the order book.
from node-binance-api.
It should show in your orderbook yes, and it should also show under the websocket execution update
see execution_update()
https://github.com/jaggedsoft/node-binance-api/blob/master/examples/advanced.md#user-data-account-balance-updates-trade-updates-new-orders-filled-orders-cancelled-orders-via-websocket
from node-binance-api.
Ok, thank you! Got it! With no test env trade get processed.
from node-binance-api.
@Keith1024 but buy/sell methods will only place my order in order book right? Or should it also respond me with order execution process?
from node-binance-api.
Test mode is very confusing, its' best to not use it at all.
All it does is return a blank response and not send the order to their matching engine. So it won't show anywhere. Kind of pointless if you ask me.
I will be developing a paper testing module we can plug in to the API in order to help you test your strategy.
It's a ways out though
from node-binance-api.
@jaggedsoft Ok, thanks for your response. But in case I am not using test mod. Then buy/sell methods only place my order in orderbook right? They do not inform me about this order execution updates? For this purpose I need to use statusUpdate method, right?
from node-binance-api.
If you're using test mode, the buy and sell orders do nothing.
They will not post anywhere.
from node-binance-api.
Ok, but what about case when I am not using test mod and using real one?
from node-binance-api.
Related Issues (20)
- specify commission asset
- Reqest futuresHistoricalTrades and get status code: 401 Unauthorized HOT 1
- request historicalTrades and got status 401 Unauthorized
- Subscribe to several user streams with one websocket connection
- is there some API to simply convert e.g. USDT to BTC HOT 1
- Problem with await when getting balances HOT 3
- call return price of a symbol
- variable of binance.websockets.bookTickers
- Lack support for Binance mining pool. label:feature-request
- Close futures positions
- Withdraw error not documented -4009
- quoteOrderQty request sometimes not working on 100% buy market
- Custom indicators with websockets
- Timestamp for this request is outside of the recvWindow.
- binance.websockets.trades()
- how to know the change of status of an order?
- support for userFutureData HOT 1
- Support for avgPrice of VESUSDT/VESBUSD/VESUSDC/VESETH/VESBTC HOT 1
- Method to retrieve cross / isolated margin pairs
- Binance
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 node-binance-api.