Krypto-trading-bot: Remote/telnet interface?

Created on 25 Jun 2019  路  11Comments  路  Source: ctubio/Krypto-trading-bot

There was some discussion a while ago (see #598 for example) about an interface to control K remotely (i.e. when running naked) so that one can at least connect/disconnect K with an easy telnet command (or similar).

What about that, is this still planned?

question

All 11 comments

Can use web socket for quick hacks or prototypes - https://github.com/ctubio/Krypto-trading-bot/issues/811#issuecomment-485596189

EDIT: looks like some more work needed; i鈥檓 unfortunately no longer working with kbot these days myself

Doesn't work (commented it in #811 )

kill -9 K-trading-bot doesn helps to restart?

Yes it does, but what does that help in connecting via wscat?

I'd like to read out the params (or set them) from the cmdline, not from the gui... so the wscat way (#811) would be very nice...

i had added some comments at https://github.com/ctubio/Krypto-trading-bot/issues/811#issuecomment-505400614 about wscat, hope it helps'''

closing this cos as a "remote/telnet interface" nothing needs to be done because the websocket is already public

Hm, ok now I can read/set the params, but I can't check or set the state (connected/disconnected) via wscat, can I?

@Pat71 you can change the state with -d{"agree":0} and -d{"agree":1}. As I said in the edit of the linked comment, you can quickly see the websocket messages of all the buttons by reviewing the messages sent in the gui.

  1. navigate to gui
  2. open web developer tools (ctrl+shift+I on chrome)
  3. hit 'network' pane of developer tools
  4. reload gui to capture network messages
  5. once site loads, a network stream will be loaded with type = websocket, status = 101 (and likely name = 127.0.0.1). click this item in the list in the developer tools.
  6. details on the item will load in a new pane to the right. click the 'messages' subpane.
  7. hit a button on the interface and you can see the message that is sent

Great, thanks!

:bulb: i usualy use: wscat -c ws://address:port --auth user:pass

for example, to read quoting parametrs use: wscat -c ws://address:port --auth user:pass -x "=f"

Was this page helpful?
0 / 5 - 0 ratings

Related issues

IgorPcelnikov picture IgorPcelnikov  路  4Comments

Camille92 picture Camille92  路  6Comments

juaxix picture juaxix  路  4Comments

wulabs picture wulabs  路  3Comments

gusiri picture gusiri  路  3Comments