Skip to content

Instantly share code, notes, and snippets.

@KrustyHack
Last active January 4, 2022 15:12
Show Gist options
  • Save KrustyHack/e9d9d794871325722ec2c3e858b155ea to your computer and use it in GitHub Desktop.
Save KrustyHack/e9d9d794871325722ec2c3e858b155ea to your computer and use it in GitHub Desktop.
Ichibot Commands

Ichibot useful commands (FTX)

If using AlphaBot, prefix all commands with x.

Switch to all instrument :

instrument *
replace buyusd amount: buy amount/askprice
replace sellusd amount: sell amount/bidprice
replace p: position list
replace i x: instrument x
replace o: order list
replace sl price: stop price
replace tp price: sell price ro
replace mrbuy amount sloss tprofit: let distance lastprice-sloss, buy amount/askprice, wait fill, stop sloss, set ro, sell 50%possize distance+lastprice, sell 100%possize tprofit
replace mrsell amount sloss tprofit: let distance lastprice-sloss, sell amount/bidprice, wait fill, stop sloss, set ro, buy 50%possize distance+lastprice, buy 100%possize tprofit
replace mrbuysplit amount sloss tprofit: let distance lastprice-sloss, buy amount/askprice, wait fill, stop sloss, wait 1, set ro, sell 50%possize distance+lastprice, split sell 51%possize into 3 from distance+lastprice to tprofit
replace mrsellsplit amount sloss tprofit: let distance lastprice-sloss, sell amount/bidprice, wait fill, stop sloss, wait 1, set ro, buy 50%possize distance+lastprice, split buy 51%possize into 3 from distance+lastprice to tprofit

instrument cusdt-perp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment