Hotkeys Using Page Manipulator Extension - cargocultscience/topstepx GitHub Wiki
If you find this work useful, please considering donating paypal / venmo so I can buy more TSX combines!
Alternatively, if you are interested in purchasing a StreamDeck to use with hotkeys, you may consider using my affiliate links to support my work.
- StreamDeck XL 32 Keys
- StreamDeck MK2 15 Keys
- StreamDeck MK2 Atomic Purple Limited Edition 15 Keys
- StreamDeck Mini 6 Keys
By downloading this code, you agree that it is for entertainment purposes only. Authors assume no responsibility for any actions this code performs
Installation and Setup
- Ensure that you have the "Order Panel" somewhere on the TSX page layout. Change Order Type to Market. DOM traders take note, you may have removed the order panel.
-
Install the Page Manipulator Chrome Extension
-
Open TopStepX and click the Page Manipulator extension icon.
- Click JavaScript button
- Click "New"
- Give a name of "topstepx" and click "Make" button
- Copy and paste the following text directly into the editor window.
- Click "Active" checkbox
- Type "topstepx.com" for "Active Websites"
- Select "Recursive" for "Matching Pages"
Finally click the "Manipulate" button ensure that your Page Manipulator icon shows "on"
Default Hotkey Definitions
You may use your keyboard to execute any of the mapped shortcuts:
key sequence | TSX actions |
---|---|
alt + ctrl + b | market buy |
alt + ctrl + s | market sell |
shift + alt + ctrl + b | join bid |
shift + alt + ctrl + s | join ask |
alt + ctrl + c | close position |
alt + ctrl + r | reverse position |
shift + alt + ctrl + c | cancel orders |
alt + ctrl + f | flatten all |
alt + ctrl + x | cancel all |
alt + ctrl + digit1 | market buy quantity 1 |
alt + ctrl + digit2 | market buy quantity 1 |
alt + ctrl + digit3 | market buy quantity 1 |
alt + ctrl + digit4 | market buy quantity 1 |
alt + ctrl + digit5 | market buy quantity 1 |
alt + ctrl + digit9 | market buy quantity 10 |
alt + ctrl + digit0 | market buy quantity 15 |
alt + ctrl + f1 | market sell quantity 1 |
alt + ctrl + f2 | market sell quantity 2 |
alt + ctrl + f3 | market sell quantity 3 |
alt + ctrl + f4 | market sell quantity 4 |
alt + ctrl + f5 | market sell quantity 5 |
alt + ctrl + f9 | market sell quantity 10 |
alt + ctrl + f10 | market sell quantity 15 |
alt + digit1 | join bid quantity 1 |
alt + digit2 | join bid quantity 2 |
alt + digit3 | join bid quantity 3 |
alt + digit4 | join bid quantity 4 |
alt + digit5 | join bid quantity 5 |
alt + digit9 | join bid quantity 10 |
alt + digit0 | join bid quantity 15 |
alt + f1 | join ask quantity 1 |
alt + f2 | join ask quantity 2 |
alt + f3 | join ask quantity 3 |
alt + f4 | join ask quantity 4 |
alt + f5 | join ask quantity 5 |
alt + f9 | join ask quantity 10 |
alt + f10 | join ask quantity 15 |
alt + ctrl + u | change contract to NQ |
alt + ctrl + i | change contract to ES |
alt + ctrl + o | change contract to GC |
alt + ctrl + p | change contract to CL |
alt + ctrl + g | change contract to NKD |
alt + ctrl + h | change contract to YM |
alt + ctrl + j | change contract to SI |
alt + ctrl + k | change contract to MNQ |
alt + ctrl + l | change contract to MES |
shift + alt + ctrl + digit1 | set quantity 1 |
shift + alt + ctrl + digit2 | set quantity 2 |
shift + alt + ctrl + digit3 | set quantity 3 |
shift + alt + ctrl + digit4 | set quantity 4 |
shift + alt + ctrl + digit5 | set quantity 5 |
shift + alt + ctrl + digit9 | set quantity 10 |
shift + alt + ctrl + digit0 | set quantity 15 |
shift + alt + ctrl + u | change to account 1 |
shift + alt + ctrl + i | change to account 2 |
shift + alt + ctrl + o | change to account 3 |
shift + alt + ctrl + p | change to account 4 |
shift + alt + ctrl + g | change to account 5 |
shift + alt + ctrl + h | change to account 6 |
shift + alt + ctrl + j | change to account 7 |
shift + alt + ctrl + k | change to account 8 |
shift + alt + ctrl + l | change to account 9 |
shift + ctrl + alt + e | move stop to break even |
shift + ctrl + alt + d | center the DOM on the Last Price |
alt + ctrl + m | increase quantity |
alt + ctrl + n | decrease quantity |
Override Hotkey Definitions
You may provide your own hotkey definitions by editing the code inside the Page Manipulator script:
All keys listed in the brackets ([....]) must be pressed for the action to fire. For example [key1, key2, key3] means that key1, key2 and key3 must all be pushed to fire that action.
-
"modifier" keys are:
- shift
- ctrl
- alt
- meta
-
Letters are 'key' plus the letter
- eg. 'e' will be 'keye'
-
Numbers appear as digit0...digit9
-
F-Keys are f1...f12
StreamDeck
- StreamDeck profile for TopStepX Hotkeys can be downloaded here TopStepX.Cargocult.PageManipulator.streamDeckProfile
Mapped Functionality
Order Buttons
- Buy
- Sell
- Join Bid
- Join Ask
- Close
- Reverse
- Cancel Orders
- Flatten All
- Cancel All
Set Quantity
- Hotkeys for setting the value of the quantity box to 1,2,3,4,5,10,15
Market Buy/Sell Quantity
- Hotkeys for buy/sell of 1,2,3,4,5,10,15
Join Passive Side of Book At Fixed Quantity
- Hotkeys for buy/sell of 1,2,3,4,5,10,15
Change contract
- Generic function added to switch to any symbol
- es, nq, gc, cl, ym, nkd, rty, si, mnq, mes explicitly mapped (see above)
Change account
Account changing works by matching any part of a string (eg 'ACCOUNTFEB123' will match on '123'). Therefore make sure that the strings you use to reference accounts are unique relative to your set of account names. I typically will use the last 5 digits of the account number.
To change the accounts that you switch to edit the following array in the extension bootstrap text:
Financial Juice Econ Calendar and News Feed
Starting with version 4.3.0 you will get Financial Juice news and calendar widgets by default. You may turn this off by setting the relevant flags to false
Notes
On some keyboards (MacBook) you may need to press "fn" to activate function keys which are required for keybinds that use function keys.