Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
syntax:bitmex [2020/04/24 10:12] profitview ↷ Page moved from bitmex-syntax to syntax-setup:bitmex-syntax |
syntax:bitmex [2020/05/12 05:35] profitview |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ~~Title: BitMEX Syntax ~~ | + | ~~Title: BitMEX~~ |
{{tag>guides}} | {{tag>guides}} | ||
==== Example Syntax for BitMEX ==== | ==== Example Syntax for BitMEX ==== | ||
Line 15: | Line 15: | ||
#parallel=acc1,acc2,acc3 | #parallel=acc1,acc2,acc3 | ||
- | # Cancel all orders ..if none found jump ahead to main order | + | # Optionally ignore this alert if ANY position is already open |
- | cancel=order ifnone=main | + | #check=position iffound=abort |
# Close open positions on the opposite side at market | # Close open positions on the opposite side at market | ||
# ..if no matching position is found, skip the delay and jump to main order | # ..if no matching position is found, skip the delay and jump to main order | ||
Line 27: | Line 28: | ||
# retries 3 : Give up after 3 retries in case of overload | # retries 3 : Give up after 3 retries in case of overload | ||
:main | :main | ||
+ | cancel=order # cancel any open order/stop first | ||
side=[side] quantity=YOUR_BUY_IN% leverage=YOUR_LEVERAGE type=market error=abort retries=3 ~~codedoc:clean:#notify=discord:1~~ | side=[side] quantity=YOUR_BUY_IN% leverage=YOUR_LEVERAGE type=market error=abort retries=3 ~~codedoc:clean:#notify=discord:1~~ | ||