i have a python script that sends instructions to Deribit API.
the script is potentially nearly finished but i cant fully test it as there are many errors/crashes.
the script starts a popup window with some API instructions on hotkeys.
im running Windows 7 Pro.
installed Pycharm CE 2020.3.2 + Python 3.8 + PyQt 5.15.2
the window has an on/off toggle for setting always-on-top (i will request, if possible, for window to be always selected).
the window also has an on/off toggle for hotkeys override.
API instructions here: [login to view URL]
(im familiar with all the API functions, so i can work alongside with you and guide you)
the window has an on/off toggle for websocket connection status (open/close websocket).
(this toggle needs verification that it works and might require a /heartbeat API instruction)
the window needs a ping reply from the API refreshed every 1s.
the window prints errors returned by the API.
(seems to be working, but i cant fully test it yet due to existing bugs/crashes)
the window has 3 boxes: 1) contract quantity, 2) trailing stop threshold, 3) trailing stop iterations.
(trailing stop should have on/off toggle)
the hotkeys are the following:
F12) market buy + stop_market
(stop_market will automatically be set based on the market buy value and trailing stop threshold value)
(stop_market will be edited based on trailing stop iterations value)
F9) same as F12 but for sell instead of buy
F8) limit buy/sell (using contract quantity value) actively edited for chasing price (post only orders parameter?)
(stop_market will be edited based on current position's avg. price + 50)
(F8 only works for an already existing position)
Esc) close position (market)
F11) attempt to close position through limit buy (post only orders parameter?) actively edited for chasing price
(stop_market will be edited to last_price + trailing stop threshold value)
F10) same as F11 but for sell instead of buy
we are expected to work alongside with regular progress updates for testing until the program is complete.
prospect candidates will receive the code for inspection.
im open for any questions.