![]() ![]() I fetch their unique client order IDs from the result, instead of generating my own as it seemed easier. Signal = Signal.BUY (Buy market order with sell for stoploss/take profit) Hey, I am unable to set up a scenario like you described, for my take profit/stoploss orders I keep receiving “-1106: Parameter ‘reduceOnly’ sent when not required.” If you need any more clarification on any of this, let me know. There are extra values in there that won’t be required, but I’m sure you can work out what is and isn’t needed by comparing to the api documentation.įor the three calls to execute all of this, my logic is this (pseudo code):Ĭancel the original trade (with its orderId) This contains the fields and their values for the calls needed to Binance, 1 for the trade, 1 for the TP and 1 for the SL. Click on it and to the right of it a window will open with ‘Headers’, ‘Payload’… Click ‘Payload’ and expand the ‘Request Payload’ JSON, then expand inside that. ![]() Now make your order and you will see under the ‘Name’ column the request called ‘place-order’ appear, this is your order. ![]() Or in the filter box you can just search for it. It makes it easier for sorting through and finding the Binance request. Click this to clear any previous network activity. With the ‘Network’ tab open, just before you click to buy or sell, there is a small circle with a diagonal line through it on the left of the Developer Tools window on the row below where it says ‘Network’. Make sure you have TP/SL checked with your respective values in the fields. The setup for viewing the call being made when you make an order with a TP/SL is to input all the values as if you were going to make a trade on the Binance site. You will see along the top of the window ‘Elements’, ‘Console’… ‘Network’ is also there, this particular tab allows you to see the calls that are being made when you click on a link, etc. A new window should open, normally at the bottom of the page but if you click on the 3 dots at the top right of this window you can choose where it goes by selecting an arrangement in ‘Dock side’. If you just search ‘Chrome Developer Tools’ in Google, there is a nice documentation site on using it.įor the sake of answering your question - (in Chrome) click ‘View’ → ‘Developer’ → ‘Developer Tools’. I’m going to use Chrome as an example, but pretty much all modern browsers will have the same or similar for viewing stuff like this. I can explain how to access the network tab in developer tools so that you can see the payload. Our new portal features a streamlined user interface, new search functionality, and a three-panel layout for easy navigation.Sure, I’m unable to reply to you directly so hopefully you will see this in here. We recently migrated our API Documentation portal from GitHub to Binance.US Docs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |