All URIs are relative to https://api.bybit.com
Method | HTTP request | Description |
---|---|---|
ConditionalCancel | Post /v2/private/stop-order/cancel | Cancel conditional order. |
ConditionalCancelAll | Post /v2/private/stop-order/cancelAll | Cancel conditional order. |
ConditionalGetOrders | Get /v2/private/stop-order/list | Get my conditional order list. |
ConditionalNew | Post /v2/private/stop-order/create | Place a new conditional order. |
ConditionalQuery | Get /v2/private/stop-order | Query real-time stop order information. |
ConditionalReplace | Post /v2/private/stop-order/replace | Replace conditional order. Only incomplete orders can be modified. |
interface{} ConditionalCancel(ctx, symbol, optional) Cancel conditional order.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
symbol | string | Contract type. | |
optional | *ConditionalCancelOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a ConditionalCancelOpts struct
Name | Type | Description | Notes |
---|
stopOrderId | optional.String| Order ID of conditional order. | orderLinkId | optional.String| Agency customized order ID. |
apiKey, apiSignature, timestamp
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
interface{} ConditionalCancelAll(ctx, symbol) Cancel conditional order.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
symbol | string | Contract type. |
apiKey, apiSignature, timestamp
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
interface{} ConditionalGetOrders(ctx, symbol, optional) Get my conditional order list.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
symbol | string | Contract type | |
optional | *ConditionalGetOrdersOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a ConditionalGetOrdersOpts struct
Name | Type | Description | Notes |
---|
stopOrderStatus | optional.String| Stop order status. | limit | optional.Float32| Limit for data size per page, max size is 50. Default as showing 20 pieces of data per page. | direction | optional.String| Search direction. prev: prev page, next: next page. Defaults to next | cursor | optional.String| Page turning mark,Use return cursor,Sign use origin data, in request please urlencode |
apiKey, apiSignature, timestamp
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
interface{} ConditionalNew(ctx, side, symbol, orderType, qty, basePrice, stopPx, timeInForce, optional) Place a new conditional order.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
side | string | Side. | |
symbol | string | Contract type. | |
orderType | string | Conditional order type. | |
qty | string | Order quantity. | |
basePrice | string | Send current market price. It will be used to compare with the value of 'stop_px', to decide whether your conditional order will be triggered by crossing trigger price from upper side or lower side. Mainly used to identify the expected direction of the current conditional order.. | |
stopPx | string | Trigger price. | |
timeInForce | string | Time in force. | |
optional | *ConditionalNewOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a ConditionalNewOpts struct
Name | Type | Description | Notes |
---|
price | optional.String| Execution price for conditional order | triggerBy | optional.String| Trigger price type. Default LastPrice. | closeOnTrigger | optional.Bool| close on trigger. | orderLinkId | optional.String| Customized order ID, maximum length at 36 characters, and order ID under the same agency has to be unique.. |
apiKey, apiSignature, timestamp
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
interface{} ConditionalQuery(ctx, optional) Query real-time stop order information.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *ConditionalQueryOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a ConditionalQueryOpts struct
Name | Type | Description | Notes |
---|---|---|---|
stopOrderId | optional.String | Order ID of conditional order. | |
orderLinkId | optional.String | Agency customized order ID. | |
symbol | optional.String | Contract type. |
apiKey, apiSignature, timestamp
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
interface{} ConditionalReplace(ctx, symbol, optional) Replace conditional order. Only incomplete orders can be modified.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
symbol | string | Contract type. | |
optional | *ConditionalReplaceOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a ConditionalReplaceOpts struct
Name | Type | Description | Notes |
---|
stopOrderId | optional.String| Stop order ID. | orderLinkId | optional.String| Order Link ID. | pRQty | optional.String| Order quantity. | pRPrice | optional.String| Order price. | pRTriggerPrice | optional.String| Trigger price. |
apiKey, apiSignature, timestamp
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]