All URIs are relative to https://www.bitmex.com/api/v1
Method | HTTP request | Description |
---|---|---|
orderAmend | PUT /order | Amend the quantity or price of an open order. |
orderAmendBulk | PUT /order/bulk | Amend multiple orders for the same symbol. |
orderCancel | DELETE /order | Cancel order(s). Send multiple order IDs to cancel in bulk. |
orderCancelAll | DELETE /order/all | Cancels all of your orders. |
orderCancelAllAfter | POST /order/cancelAllAfter | Automatically cancel all your orders after a specified timeout. |
orderClosePosition | POST /order/closePosition | Close a position. [Deprecated, use POST /order with execInst: 'Close'] |
orderGetOrders | GET /order | Get your orders. |
orderNew | POST /order | Create a new order. |
orderNewBulk | POST /order/bulk | Create multiple new orders for the same symbol. |
Order orderAmend(orderID, origClOrdID, clOrdID, simpleOrderQty, orderQty, simpleLeavesQty, leavesQty, price, stopPx, pegOffsetValue, text)
Amend the quantity or price of an open order.
Send an `orderID` or `origClOrdID` to identify the order you wish to amend. Both order quantity and price can be amended. Only one `qty` field can be used to amend. Use the `leavesQty` field to specify how much of the order you wish to remain open. This can be useful if you want to adjust your position's delta by a certain amount, regardless of how much of the order has already filled. > A `leavesQty` can be used to make a "Filled" order live again, if it is received within 60 seconds of the fill. Like order placement, amending can be done in bulk. Simply send a request to `PUT /api/v1/order/bulk` with a JSON body of the shape: `{"orders": [{...}, {...}]}`, each object containing the fields used in this endpoint.
// Import classes:
//import io.swagger.client.api.OrderApi;
OrderApi apiInstance = new OrderApi();
String orderID = "orderID_example"; // String | Order ID
String origClOrdID = "origClOrdID_example"; // String | Client Order ID. See POST /order.
String clOrdID = "clOrdID_example"; // String | Optional new Client Order ID, requires `origClOrdID`.
Double simpleOrderQty = 3.4D; // Double | Deprecated: simple orders are not supported after 2018/10/26
BigDecimal orderQty = new BigDecimal(); // BigDecimal | Optional order quantity in units of the instrument (i.e. contracts).
Double simpleLeavesQty = 3.4D; // Double | Deprecated: simple orders are not supported after 2018/10/26
BigDecimal leavesQty = new BigDecimal(); // BigDecimal | Optional leaves quantity in units of the instrument (i.e. contracts). Useful for amending partially filled orders.
Double price = 3.4D; // Double | Optional limit price for 'Limit', 'StopLimit', and 'LimitIfTouched' orders.
Double stopPx = 3.4D; // Double | Optional trigger price for 'Stop', 'StopLimit', 'MarketIfTouched', and 'LimitIfTouched' orders. Use a price below the current price for stop-sell orders and buy-if-touched orders.
Double pegOffsetValue = 3.4D; // Double | Optional trailing offset from the current price for 'Stop', 'StopLimit', 'MarketIfTouched', and 'LimitIfTouched' orders; use a negative offset for stop-sell orders and buy-if-touched orders. Optional offset from the peg price for 'Pegged' orders.
String text = "text_example"; // String | Optional amend annotation. e.g. 'Adjust skew'.
try {
Order result = apiInstance.orderAmend(orderID, origClOrdID, clOrdID, simpleOrderQty, orderQty, simpleLeavesQty, leavesQty, price, stopPx, pegOffsetValue, text);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OrderApi#orderAmend");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
orderID | String | Order ID | [optional] |
origClOrdID | String | Client Order ID. See POST /order. | [optional] |
clOrdID | String | Optional new Client Order ID, requires `origClOrdID`. | [optional] |
simpleOrderQty | Double | Deprecated: simple orders are not supported after 2018/10/26 | [optional] |
orderQty | BigDecimal | Optional order quantity in units of the instrument (i.e. contracts). | [optional] |
simpleLeavesQty | Double | Deprecated: simple orders are not supported after 2018/10/26 | [optional] |
leavesQty | BigDecimal | Optional leaves quantity in units of the instrument (i.e. contracts). Useful for amending partially filled orders. | [optional] |
price | Double | Optional limit price for 'Limit', 'StopLimit', and 'LimitIfTouched' orders. | [optional] |
stopPx | Double | Optional trigger price for 'Stop', 'StopLimit', 'MarketIfTouched', and 'LimitIfTouched' orders. Use a price below the current price for stop-sell orders and buy-if-touched orders. | [optional] |
pegOffsetValue | Double | Optional trailing offset from the current price for 'Stop', 'StopLimit', 'MarketIfTouched', and 'LimitIfTouched' orders; use a negative offset for stop-sell orders and buy-if-touched orders. Optional offset from the peg price for 'Pegged' orders. | [optional] |
text | String | Optional amend annotation. e.g. 'Adjust skew'. | [optional] |
apiExpires, apiKey, apiSignature
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json, application/xml, text/xml, application/javascript, text/javascript
List<Order> orderAmendBulk(orders)
Amend multiple orders for the same symbol.
Similar to POST /amend, but with multiple orders. `application/json` only. Ratelimited at 10%.
// Import classes:
//import io.swagger.client.api.OrderApi;
OrderApi apiInstance = new OrderApi();
String orders = "orders_example"; // String | An array of orders.
try {
List<Order> result = apiInstance.orderAmendBulk(orders);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OrderApi#orderAmendBulk");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
orders | String | An array of orders. | [optional] |
apiExpires, apiKey, apiSignature
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json, application/xml, text/xml, application/javascript, text/javascript
List<Order> orderCancel(orderID, clOrdID, text)
Cancel order(s). Send multiple order IDs to cancel in bulk.
Either an orderID or a clOrdID must be provided.
// Import classes:
//import io.swagger.client.api.OrderApi;
OrderApi apiInstance = new OrderApi();
String orderID = "orderID_example"; // String | Order ID(s).
String clOrdID = "clOrdID_example"; // String | Client Order ID(s). See POST /order.
String text = "text_example"; // String | Optional cancellation annotation. e.g. 'Spread Exceeded'.
try {
List<Order> result = apiInstance.orderCancel(orderID, clOrdID, text);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OrderApi#orderCancel");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
orderID | String | Order ID(s). | [optional] |
clOrdID | String | Client Order ID(s). See POST /order. | [optional] |
text | String | Optional cancellation annotation. e.g. 'Spread Exceeded'. | [optional] |
apiExpires, apiKey, apiSignature
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json, application/xml, text/xml, application/javascript, text/javascript
List<Order> orderCancelAll(symbol, filter, text)
Cancels all of your orders.
// Import classes:
//import io.swagger.client.api.OrderApi;
OrderApi apiInstance = new OrderApi();
String symbol = "symbol_example"; // String | Optional symbol. If provided, only cancels orders for that symbol.
String filter = "filter_example"; // String | Optional filter for cancellation. Use to only cancel some orders, e.g. `{\"side\": \"Buy\"}`.
String text = "text_example"; // String | Optional cancellation annotation. e.g. 'Spread Exceeded'
try {
List<Order> result = apiInstance.orderCancelAll(symbol, filter, text);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OrderApi#orderCancelAll");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
symbol | String | Optional symbol. If provided, only cancels orders for that symbol. | [optional] |
filter | String | Optional filter for cancellation. Use to only cancel some orders, e.g. `{"side": "Buy"}`. | [optional] |
text | String | Optional cancellation annotation. e.g. 'Spread Exceeded' | [optional] |
apiExpires, apiKey, apiSignature
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json, application/xml, text/xml, application/javascript, text/javascript
Object orderCancelAllAfter(timeout)
Automatically cancel all your orders after a specified timeout.
Useful as a dead-man's switch to ensure your orders are canceled in case of an outage. If called repeatedly, the existing offset will be canceled and a new one will be inserted in its place. Example usage: call this route at 15s intervals with an offset of 60000 (60s). If this route is not called within 60 seconds, all your orders will be automatically canceled. This is also available via WebSocket.
// Import classes:
//import io.swagger.client.api.OrderApi;
OrderApi apiInstance = new OrderApi();
Double timeout = 3.4D; // Double | Timeout in ms. Set to 0 to cancel this timer.
try {
Object result = apiInstance.orderCancelAllAfter(timeout);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OrderApi#orderCancelAllAfter");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
timeout | Double | Timeout in ms. Set to 0 to cancel this timer. |
Object
apiExpires, apiKey, apiSignature
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json, application/xml, text/xml, application/javascript, text/javascript
Order orderClosePosition(symbol, price)
Close a position. [Deprecated, use POST /order with execInst: 'Close']
If no `price` is specified, a market order will be submitted to close the whole of your position. This will also close all other open orders in this symbol.
// Import classes:
//import io.swagger.client.api.OrderApi;
OrderApi apiInstance = new OrderApi();
String symbol = "symbol_example"; // String | Symbol of position to close.
Double price = 3.4D; // Double | Optional limit price.
try {
Order result = apiInstance.orderClosePosition(symbol, price);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OrderApi#orderClosePosition");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
symbol | String | Symbol of position to close. | |
price | Double | Optional limit price. | [optional] |
apiExpires, apiKey, apiSignature
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json, application/xml, text/xml, application/javascript, text/javascript
List<Order> orderGetOrders(symbol, filter, columns, count, start, reverse, startTime, endTime)
Get your orders.
To get open orders only, send {"open": true} in the filter param. See <a href="http://www.onixs.biz/fix-dictionary/5.0.SP2/msgType_D_68.html\">the FIX Spec</a> for explanations of these fields.
// Import classes:
//import io.swagger.client.api.OrderApi;
OrderApi apiInstance = new OrderApi();
String symbol = "symbol_example"; // String | Instrument symbol. Send a bare series (e.g. XBT) to get data for the nearest expiring contract in that series. You can also send a timeframe, e.g. `XBT:quarterly`. Timeframes are `nearest`, `daily`, `weekly`, `monthly`, `quarterly`, `biquarterly`, and `perpetual`.
String filter = "filter_example"; // String | Generic table filter. Send JSON key/value pairs, such as `{\"key\": \"value\"}`. You can key on individual fields, and do more advanced querying on timestamps. See the [Timestamp Docs](https://www.bitmex.com/app/restAPI#Timestamp-Filters) for more details.
String columns = "columns_example"; // String | Array of column names to fetch. If omitted, will return all columns. Note that this method will always return item keys, even when not specified, so you may receive more columns that you expect.
BigDecimal count = new BigDecimal(); // BigDecimal | Number of results to fetch.
BigDecimal start = new BigDecimal(); // BigDecimal | Starting point for results.
Boolean reverse = false; // Boolean | If true, will sort results newest first.
Date startTime = new Date(); // Date | Starting date filter for results.
Date endTime = new Date(); // Date | Ending date filter for results.
try {
List<Order> result = apiInstance.orderGetOrders(symbol, filter, columns, count, start, reverse, startTime, endTime);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OrderApi#orderGetOrders");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
symbol | String | Instrument symbol. Send a bare series (e.g. XBT) to get data for the nearest expiring contract in that series. You can also send a timeframe, e.g. `XBT:quarterly`. Timeframes are `nearest`, `daily`, `weekly`, `monthly`, `quarterly`, `biquarterly`, and `perpetual`. | [optional] |
filter | String | Generic table filter. Send JSON key/value pairs, such as `{"key": "value"}`. You can key on individual fields, and do more advanced querying on timestamps. See the Timestamp Docs for more details. | [optional] |
columns | String | Array of column names to fetch. If omitted, will return all columns. Note that this method will always return item keys, even when not specified, so you may receive more columns that you expect. | [optional] |
count | BigDecimal | Number of results to fetch. | [optional] [default to 100] |
start | BigDecimal | Starting point for results. | [optional] [default to 0] |
reverse | Boolean | If true, will sort results newest first. | [optional] [default to false] |
startTime | Date | Starting date filter for results. | [optional] |
endTime | Date | Ending date filter for results. | [optional] |
apiExpires, apiKey, apiSignature
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json, application/xml, text/xml, application/javascript, text/javascript
Order orderNew(symbol, side, simpleOrderQty, orderQty, price, displayQty, stopPx, clOrdID, clOrdLinkID, pegOffsetValue, pegPriceType, ordType, timeInForce, execInst, contingencyType, text)
Create a new order.
Placing Orders This endpoint is used for placing orders. See individual fields below for more details on their use. #### Order Types All orders require a `symbol`. All other fields are optional except when otherwise specified. These are the valid `ordType`s: - Limit: The default order type. Specify an `orderQty` and `price`. - Market: A traditional Market order. A Market order will execute until filled or your bankruptcy price is reached, at which point it will cancel. - Stop: A Stop Market order. Specify an `orderQty` and `stopPx`. When the `stopPx` is reached, the order will be entered into the book. - On sell orders, the order will trigger if the triggering price is lower than the `stopPx`. On buys, higher. - Note: Stop orders do not consume margin until triggered. Be sure that the required margin is available in your account so that it may trigger fully. - `Close` Stops don't require an `orderQty`. See Execution Instructions below. - StopLimit: Like a Stop Market, but enters a Limit order instead of a Market order. Specify an `orderQty`, `stopPx`, and `price`. - MarketIfTouched: Similar to a Stop, but triggers are done in the opposite direction. Useful for Take Profit orders. - LimitIfTouched: As above; use for Take Profit Limit orders. #### Execution Instructions The following `execInst`s are supported. If using multiple, separate with a comma (e.g. `LastPrice,Close`). - ParticipateDoNotInitiate: Also known as a Post-Only order. If this order would have executed on placement, it will cancel instead. - MarkPrice, LastPrice, IndexPrice: Used by stop and if-touched orders to determine the triggering price. Use only one. By default, `'MarkPrice'` is used. Also used for Pegged orders to define the value of `'LastPeg'`. - ReduceOnly: A `'ReduceOnly'` order can only reduce your position, not increase it. If you have a `'ReduceOnly'` limit order that rests in the order book while the position is reduced by other orders, then its order quantity will be amended down or canceled. If there are multiple `'ReduceOnly'` orders the least aggressive will be amended first. - Close: `'Close'` implies `'ReduceOnly'`. A `'Close'` order will cancel other active limit orders with the same side and symbol if the open quantity exceeds the current position. This is useful for stops: by canceling these orders, a `'Close'` Stop is ensured to have the margin required to execute, and can only execute up to the full size of your position. If `orderQty` is not specified, a `'Close'` order has an `orderQty` equal to your current position's size. - Note that a `Close` order without an `orderQty` requires a `side`, so that BitMEX knows if it should trigger above or below the `stopPx`. #### Linked Orders Linked Orders are deprecated as of 2018/11/10 #### Trailing Stops You may use `pegPriceType` of `'TrailingStopPeg'` to create Trailing Stops. The pegged `stopPx` will move as the market moves away from the peg, and freeze as the market moves toward it. To use, combine with `pegOffsetValue` to set the `stopPx` of your order. The peg is set to the triggering price specified in the `execInst` (default `'MarkPrice'`). Use a negative offset for stop-sell and buy-if-touched orders. Requires `ordType`: `'Stop', 'StopLimit', 'MarketIfTouched', 'LimitIfTouched'`. #### Simple Quantities Simple Quantities are deprecated as of 2018/10/26 #### Rate Limits See the Bulk Order Documentation if you need to place multiple orders at the same time. Bulk orders require fewer risk checks in the trading engine and thus are ratelimited at 1/10 the normal rate. You can also improve your reactivity to market movements while staying under your ratelimit by using the Amend and Amend Bulk endpoints. This allows you to stay in the market and avoids the cancel/replace cycle. #### Tracking Your Orders If you want to keep track of order IDs yourself, set a unique `clOrdID` per order. This `clOrdID` will come back as a property on the order and any related executions (including on the WebSocket), and can be used to get or cancel the order. Max length is 36 characters. You can also change the `clOrdID` by amending an order, supplying an `origClOrdID`, and your desired new ID as the `clOrdID` param, like so: ``` # Amends an order's leavesQty, and updates its clOrdID to "def-456" PUT /api/v1/order {"origClOrdID": "abc-123", "clOrdID": "def-456", "leavesQty": 1000} ```
// Import classes:
//import io.swagger.client.api.OrderApi;
OrderApi apiInstance = new OrderApi();
String symbol = "symbol_example"; // String | Instrument symbol. e.g. 'XBTUSD'.
String side = "side_example"; // String | Order side. Valid options: Buy, Sell. Defaults to 'Buy' unless `orderQty` is negative.
Double simpleOrderQty = 3.4D; // Double | Deprecated: simple orders are not supported after 2018/10/26
BigDecimal orderQty = new BigDecimal(); // BigDecimal | Order quantity in units of the instrument (i.e. contracts).
Double price = 3.4D; // Double | Optional limit price for 'Limit', 'StopLimit', and 'LimitIfTouched' orders.
BigDecimal displayQty = new BigDecimal(); // BigDecimal | Optional quantity to display in the book. Use 0 for a fully hidden order.
Double stopPx = 3.4D; // Double | Optional trigger price for 'Stop', 'StopLimit', 'MarketIfTouched', and 'LimitIfTouched' orders. Use a price below the current price for stop-sell orders and buy-if-touched orders. Use `execInst` of 'MarkPrice' or 'LastPrice' to define the current price used for triggering.
String clOrdID = "clOrdID_example"; // String | Optional Client Order ID. This clOrdID will come back on the order and any related executions.
String clOrdLinkID = "clOrdLinkID_example"; // String | Deprecated: linked orders are not supported after 2018/11/10.
Double pegOffsetValue = 3.4D; // Double | Optional trailing offset from the current price for 'Stop', 'StopLimit', 'MarketIfTouched', and 'LimitIfTouched' orders; use a negative offset for stop-sell orders and buy-if-touched orders. Optional offset from the peg price for 'Pegged' orders.
String pegPriceType = "pegPriceType_example"; // String | Optional peg price type. Valid options: LastPeg, MidPricePeg, MarketPeg, PrimaryPeg, TrailingStopPeg.
String ordType = "Limit"; // String | Order type. Valid options: Market, Limit, Stop, StopLimit, MarketIfTouched, LimitIfTouched, Pegged. Defaults to 'Limit' when `price` is specified. Defaults to 'Stop' when `stopPx` is specified. Defaults to 'StopLimit' when `price` and `stopPx` are specified.
String timeInForce = "timeInForce_example"; // String | Time in force. Valid options: Day, GoodTillCancel, ImmediateOrCancel, FillOrKill. Defaults to 'GoodTillCancel' for 'Limit', 'StopLimit', and 'LimitIfTouched' orders.
String execInst = "execInst_example"; // String | Optional execution instructions. Valid options: ParticipateDoNotInitiate, AllOrNone, MarkPrice, IndexPrice, LastPrice, Close, ReduceOnly, Fixed. 'AllOrNone' instruction requires `displayQty` to be 0. 'MarkPrice', 'IndexPrice' or 'LastPrice' instruction valid for 'Stop', 'StopLimit', 'MarketIfTouched', and 'LimitIfTouched' orders.
String contingencyType = "contingencyType_example"; // String | Deprecated: linked orders are not supported after 2018/11/10.
String text = "text_example"; // String | Optional order annotation. e.g. 'Take profit'.
try {
Order result = apiInstance.orderNew(symbol, side, simpleOrderQty, orderQty, price, displayQty, stopPx, clOrdID, clOrdLinkID, pegOffsetValue, pegPriceType, ordType, timeInForce, execInst, contingencyType, text);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OrderApi#orderNew");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
symbol | String | Instrument symbol. e.g. 'XBTUSD'. | |
side | String | Order side. Valid options: Buy, Sell. Defaults to 'Buy' unless `orderQty` is negative. | [optional] |
simpleOrderQty | Double | Deprecated: simple orders are not supported after 2018/10/26 | [optional] |
orderQty | BigDecimal | Order quantity in units of the instrument (i.e. contracts). | [optional] |
price | Double | Optional limit price for 'Limit', 'StopLimit', and 'LimitIfTouched' orders. | [optional] |
displayQty | BigDecimal | Optional quantity to display in the book. Use 0 for a fully hidden order. | [optional] |
stopPx | Double | Optional trigger price for 'Stop', 'StopLimit', 'MarketIfTouched', and 'LimitIfTouched' orders. Use a price below the current price for stop-sell orders and buy-if-touched orders. Use `execInst` of 'MarkPrice' or 'LastPrice' to define the current price used for triggering. | [optional] |
clOrdID | String | Optional Client Order ID. This clOrdID will come back on the order and any related executions. | [optional] |
clOrdLinkID | String | Deprecated: linked orders are not supported after 2018/11/10. | [optional] |
pegOffsetValue | Double | Optional trailing offset from the current price for 'Stop', 'StopLimit', 'MarketIfTouched', and 'LimitIfTouched' orders; use a negative offset for stop-sell orders and buy-if-touched orders. Optional offset from the peg price for 'Pegged' orders. | [optional] |
pegPriceType | String | Optional peg price type. Valid options: LastPeg, MidPricePeg, MarketPeg, PrimaryPeg, TrailingStopPeg. | [optional] |
ordType | String | Order type. Valid options: Market, Limit, Stop, StopLimit, MarketIfTouched, LimitIfTouched, Pegged. Defaults to 'Limit' when `price` is specified. Defaults to 'Stop' when `stopPx` is specified. Defaults to 'StopLimit' when `price` and `stopPx` are specified. | [optional] [default to Limit] |
timeInForce | String | Time in force. Valid options: Day, GoodTillCancel, ImmediateOrCancel, FillOrKill. Defaults to 'GoodTillCancel' for 'Limit', 'StopLimit', and 'LimitIfTouched' orders. | [optional] |
execInst | String | Optional execution instructions. Valid options: ParticipateDoNotInitiate, AllOrNone, MarkPrice, IndexPrice, LastPrice, Close, ReduceOnly, Fixed. 'AllOrNone' instruction requires `displayQty` to be 0. 'MarkPrice', 'IndexPrice' or 'LastPrice' instruction valid for 'Stop', 'StopLimit', 'MarketIfTouched', and 'LimitIfTouched' orders. | [optional] |
contingencyType | String | Deprecated: linked orders are not supported after 2018/11/10. | [optional] |
text | String | Optional order annotation. e.g. 'Take profit'. | [optional] |
apiExpires, apiKey, apiSignature
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json, application/xml, text/xml, application/javascript, text/javascript
List<Order> orderNewBulk(orders)
Create multiple new orders for the same symbol.
This endpoint is used for placing bulk orders. Valid order types are Market, Limit, Stop, StopLimit, MarketIfTouched, LimitIfTouched, and Pegged. Each individual order object in the array should have the same properties as an individual POST /order call. This endpoint is much faster for getting many orders into the book at once. Because it reduces load on BitMEX systems, this endpoint is ratelimited at `ceil(0.1 * orders)`. Submitting 10 orders via a bulk order call will only count as 1 request, 15 as 2, 32 as 4, and so on. For now, only `application/json` is supported on this endpoint.
// Import classes:
//import io.swagger.client.api.OrderApi;
OrderApi apiInstance = new OrderApi();
String orders = "orders_example"; // String | An array of orders.
try {
List<Order> result = apiInstance.orderNewBulk(orders);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OrderApi#orderNewBulk");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
orders | String | An array of orders. | [optional] |
apiExpires, apiKey, apiSignature
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json, application/xml, text/xml, application/javascript, text/javascript