All URIs are relative to https://api.bybit.com
Method | HTTP request | Description |
---|---|---|
LinearOrderCancel | Post /private/linear/order/cancel | Cancel Active Order |
LinearOrderCancelAll | Post /private/linear/order/cancel-all | Cancel all active orders. |
LinearOrderGetOrders | Get /private/linear/order/list | Get linear Active Orders |
LinearOrderNew | Post /private/linear/order/create | Create Active Order |
LinearOrderQuery | Get /private/linear/order/search | Get Active Orders(real-time) |
LinearOrderReplace | Post /private/linear/order/replace | Replace Active Order |
interface{} LinearOrderCancel(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 | *LinearOrderCancelOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a LinearOrderCancelOpts struct
Name | Type | Description | Notes |
---|---|---|---|
orderId | 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{} LinearOrderCancelAll(ctx, symbol) Cancel all active 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{} LinearOrderGetOrders(ctx, optional) Get linear Active Orders
This will get linear active orders
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *LinearOrderGetOrdersOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a LinearOrderGetOrdersOpts struct
Name | Type | Description | Notes |
---|---|---|---|
orderId | optional.String | ||
orderLinkId | optional.String | ||
symbol | optional.String | ||
order | optional.String | ||
page | optional.String | ||
limit | optional.String | ||
orderStatus | 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{} LinearOrderNew(ctx, optional) Create Active Order
This will create linear order
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *LinearOrderNewOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a LinearOrderNewOpts struct
Name | Type | Description | Notes |
---|---|---|---|
symbol | optional.String | ||
side | optional.String | ||
orderType | optional.String | ||
timeInForce | optional.String | ||
qty | optional.Float64 | ||
price | optional.Float64 | ||
takeProfit | optional.Float64 | ||
stopLoss | optional.Float64 | ||
reduceOnly | optional.Bool | ||
tpTriggerBy | optional.String | ||
slTriggerBy | optional.String | ||
closeOnTrigger | optional.Bool | ||
orderLinkId | 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{} LinearOrderQuery(ctx, optional) Get Active Orders(real-time)
This will get linear active orders(real-time)
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *LinearOrderQueryOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a LinearOrderQueryOpts struct
Name | Type | Description | Notes |
---|---|---|---|
symbol | optional.String | ||
orderId | 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{} LinearOrderReplace(ctx, symbol, optional) Replace Active Order
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
symbol | string | ||
optional | *LinearOrderReplaceOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a LinearOrderReplaceOpts struct
Name | Type | Description | Notes |
---|
orderId | optional.String| | orderLinkId | optional.String| | pRQty | optional.String| | pRPrice | 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]