Git Product home page Git Product logo

Comments (8)

bkrypt avatar bkrypt commented on September 26, 2024 1

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.

jaggedsoft avatar jaggedsoft commented on September 26, 2024 1

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.

dubrovsky-kiril avatar dubrovsky-kiril commented on September 26, 2024

Ok, thank you! Got it! With no test env trade get processed.

from node-binance-api.

dubrovsky-kiril avatar dubrovsky-kiril commented on September 26, 2024

@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.

jaggedsoft avatar jaggedsoft commented on September 26, 2024

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.

dubrovsky-kiril avatar dubrovsky-kiril commented on September 26, 2024

@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.

jaggedsoft avatar jaggedsoft commented on September 26, 2024

If you're using test mode, the buy and sell orders do nothing.
They will not post anywhere.

from node-binance-api.

dubrovsky-kiril avatar dubrovsky-kiril commented on September 26, 2024

Ok, but what about case when I am not using test mod and using real one?

from node-binance-api.

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.