Order type
Parameter: order_type
Type: string
Required: Yes
Description:
- The type of order to be executed.
- Valid values are:
BUY: Long positionSELL: Short positionCLOSE: Close the last opened position for the current symbol (whole position, no partial close yet)CLOSALL: Close all positions for the current symbol
Example:
JSON
{
"order_type": "BUY"
}{
"order_type": "SELL"
}{
"order_type": "CLOSE"
}{
"order_type": "CLOSEALL"
}