All URIs are relative to https://api.bybit.com
Method | HTTP request | Description |
---|---|---|
LinearConditionalCancel | Post /private/linear/stop-order/cancel | Cancel Active Order |
LinearConditionalCancelAll | Post /private/linear/stop-order/cancel-all | Cancel all stop orders. |
LinearConditionalGetOrders | Get /private/linear/stop-order/list | Get linear Stop Orders |
LinearConditionalNew | Post /private/linear/stop-order/create | Create linear stop Order |
LinearConditionalQuery | Get /private/linear/stop-order/search | Get Stop Orders(real-time) |
LinearConditionalReplace | Post /private/linear/stop-order/replace | Replace conditional order |
interface{} LinearConditionalCancel(ctx, optional) Cancel Active Order
This will cancel linear active order
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *LinearConditionalCancelOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a LinearConditionalCancelOpts struct
Name | Type | Description | Notes |
---|---|---|---|
stopOrderId | optional.String | ||
orderLinkId | optional.String | ||
symbol | optional.String |
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{} LinearConditionalCancelAll(ctx, symbol) Cancel all stop orders.
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{} LinearConditionalGetOrders(ctx, optional) Get linear Stop Orders
This will get linear active orders
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *LinearConditionalGetOrdersOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a LinearConditionalGetOrdersOpts struct
Name | Type | Description | Notes |
---|---|---|---|
stopOrderId | optional.String | ||
orderLinkId | optional.String | ||
symbol | optional.String | ||
order | optional.String | ||
page | optional.String | ||
limit | optional.String | ||
stopOrderStatus | optional.String |
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{} LinearConditionalNew(ctx, optional) Create linear stop Order
This will create linear stop order
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *LinearConditionalNewOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a LinearConditionalNewOpts struct
Name | Type | Description | Notes |
---|---|---|---|
symbol | optional.String | ||
side | optional.String | ||
orderType | optional.String | ||
qty | optional.Float64 | ||
price | optional.Float64 | ||
basePrice | optional.Float64 | ||
stopPx | optional.Float64 | ||
timeInForce | optional.String | ||
triggerBy | optional.String | ||
reduceOnly | optional.Bool | ||
closeOnTrigger | optional.Bool | ||
orderLinkId | optional.String | ||
takeProfit | optional.Float64 | ||
stopLoss | optional.Float64 | ||
tpTriggerBy | optional.String | ||
slTriggerBy | optional.String |
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{} LinearConditionalQuery(ctx, optional) Get Stop Orders(real-time)
This will get linear stop orders(real-time)
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *LinearConditionalQueryOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a LinearConditionalQueryOpts struct
Name | Type | Description | Notes |
---|---|---|---|
symbol | optional.String | ||
stopOrderId | optional.String | ||
orderLinkId | optional.String |
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{} LinearConditionalReplace(ctx, symbol, optional) Replace conditional order
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
symbol | string | ||
optional | *LinearConditionalReplaceOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a LinearConditionalReplaceOpts struct
Name | Type | Description | Notes |
---|
stopOrderId | optional.String| | orderLinkId | optional.String| | pRQty | optional.String| | pRPrice | optional.Float32| | pRTriggerPrice | optional.Float32| |
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]