-
Does the bot have a webhook for placing orders? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
🐨 mmm not a webhook the web uri available are only the following: Krypto-trading-bot/src/bin/trading-bot/trading-bot.main.h Lines 29 to 38 in 26c269a 🐨 mmm but a websocket message will work the websocket can be used with wscat (see #811 and #953), and there is a submit manual order handler. 💡 you have an example of the submit manual order message creation at: Krypto-trading-bot/src/bin/trading-bot/trading-bot.client/Submit.ts Lines 88 to 93 in 26c269a it just sends a json with this structure: Krypto-trading-bot/src/lib/Krypto.ninja-client/www/js/Models.ts Lines 147 to 153 in 26c269a just note that to identify messages, we add 2 characters at the beginning of the message (as a prefix to the json object without any kind of separator). the id for submit manual order is: so an example message could look like:
( in case you wanna see where this goes, the handler is at: Krypto-trading-bot/src/bin/trading-bot/trading-bot.data.h Lines 1134 to 1153 in 26c269a that is glued at: to thiz function: Krypto-trading-bot/src/bin/trading-bot/trading-bot.data.h Lines 2805 to 2807 in 26c269a hapPy coding'¡! |
Beta Was this translation helpful? Give feedback.
🐨 mmm not a webhook
the web uri available are only the following:
Krypto-trading-bot/src/bin/trading-bot/trading-bot.main.h
Lines 29 to 38 in 26c269a