Skip to content

One-click Close All Positions (May Fail)

Address: /openApi/contract/onekeyClose

Receive Parameters

Required

Submission Method: POST

Submission Parameters

Parameter Name Required Mandatory Example Description
symbol No string EOS-USDT Contract trading pair name, not required for all
is_full No int 1 1: Isolated 2: Cross If not provided, all positions

Return Parameters

Parameter Name Mandatory Type Example Description
errno Yes int 0 Return status code
errmsg Yes string Success Return message
result Yes object See example Return data

result Parameters

Parameter Name Required Type Example Description
failed No int 0 Number of failures
success Yes int 1 Number of successful operations

Return Example

JSON
{
    "errno": 0,
    "errmsg": "success",
    "result": {
        "failed":0,
        "success":1
    }
}