Skip to content

Commit 37a3a5b

Browse files
Merge pull request #503 from byshing/remove-bulk-api-from-cache
Remove bulk API
2 parents b702671 + 8fdc54e commit 37a3a5b

56 files changed

Lines changed: 439 additions & 6009 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

auto-generated/akka-scala/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,12 @@ Class | Method | HTTP request | Description
8787
*LeaderboardApi* | **leaderboard.getName** | **GET** /leaderboard/name | Get your alias on the leaderboard.
8888
*LiquidationApi* | **liquidation.get** | **GET** /liquidation | Get liquidation orders.
8989
*OrderApi* | **order.amend** | **PUT** /order | Amend the quantity or price of an open order.
90-
*OrderApi* | **order.amendBulk** | **PUT** /order/bulk | Amend multiple orders for the same symbol.
9190
*OrderApi* | **order.cancel** | **DELETE** /order | Cancel order(s). Send multiple order IDs to cancel in bulk.
9291
*OrderApi* | **order.cancelAll** | **DELETE** /order/all | Cancels all of your orders.
9392
*OrderApi* | **order.cancelAllAfter** | **POST** /order/cancelAllAfter | Automatically cancel all your orders after a specified timeout.
9493
*OrderApi* | **order.closePosition** | **POST** /order/closePosition | Close a position. [Deprecated, use POST /order with execInst: 'Close']
9594
*OrderApi* | **order.getOrders** | **GET** /order | Get your orders.
9695
*OrderApi* | **order.new** | **POST** /order | Create a new order.
97-
*OrderApi* | **order.newBulk** | **POST** /order/bulk | Create multiple new orders for the same symbol.
9896
*OrderBookApi* | **orderBook.getL2** | **GET** /orderBook/L2 | Get current orderbook in vertical format.
9997
*PositionApi* | **position.get** | **GET** /position | Get your positions.
10098
*PositionApi* | **position.isolateMargin** | **POST** /position/isolate | Enable isolated margin or cross margin per-position.

auto-generated/akka-scala/src/main/scala/io/swagger/client/api/OrderApi.scala

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -69,34 +69,6 @@ object OrderApi {
6969
.withErrorResponse[Error](403)
7070
.withErrorResponse[Error](404)
7171
/**
72-
* Similar to POST /amend, but with multiple orders. `application/json` only. Ratelimited at 10%.
73-
*
74-
* Expected answers:
75-
* code 200 : Seq[Order] (Request was successful)
76-
* code 400 : Error (Parameter Error)
77-
* code 401 : Error (Unauthorized)
78-
* code 403 : Error (Access Denied)
79-
* code 404 : Error (Not Found)
80-
*
81-
* Available security schemes:
82-
* apiExpires (apiKey)
83-
* apiKey (apiKey)
84-
* apiSignature (apiKey)
85-
*
86-
* @param orders An array of orders.
87-
*/
88-
def order.amendBulk(orders: Option[String] = None)(implicit apiKey: ApiKeyValue, apiKey: ApiKeyValue, apiKey: ApiKeyValue): ApiRequest[Seq[Order]] =
89-
ApiRequest[Seq[Order]](ApiMethods.PUT, "https://www.bitmex.com/api/v1", "/order/bulk", "application/json")
90-
.withApiKey(apiKey, "api-expires", HEADER)
91-
.withApiKey(apiKey, "api-key", HEADER)
92-
.withApiKey(apiKey, "api-signature", HEADER)
93-
.withFormParam("orders", orders)
94-
.withSuccessResponse[Seq[Order]](200)
95-
.withErrorResponse[Error](400)
96-
.withErrorResponse[Error](401)
97-
.withErrorResponse[Error](403)
98-
.withErrorResponse[Error](404)
99-
/**
10072
* Either an orderID or a clOrdID must be provided.
10173
*
10274
* Expected answers:
@@ -318,34 +290,6 @@ object OrderApi {
318290
.withErrorResponse[Error](401)
319291
.withErrorResponse[Error](403)
320292
.withErrorResponse[Error](404)
321-
/**
322-
* 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.
323-
*
324-
* Expected answers:
325-
* code 200 : Seq[Order] (Request was successful)
326-
* code 400 : Error (Parameter Error)
327-
* code 401 : Error (Unauthorized)
328-
* code 403 : Error (Access Denied)
329-
* code 404 : Error (Not Found)
330-
*
331-
* Available security schemes:
332-
* apiExpires (apiKey)
333-
* apiKey (apiKey)
334-
* apiSignature (apiKey)
335-
*
336-
* @param orders An array of orders.
337-
*/
338-
def order.newBulk(orders: Option[String] = None)(implicit apiKey: ApiKeyValue, apiKey: ApiKeyValue, apiKey: ApiKeyValue): ApiRequest[Seq[Order]] =
339-
ApiRequest[Seq[Order]](ApiMethods.POST, "https://www.bitmex.com/api/v1", "/order/bulk", "application/json")
340-
.withApiKey(apiKey, "api-expires", HEADER)
341-
.withApiKey(apiKey, "api-key", HEADER)
342-
.withApiKey(apiKey, "api-signature", HEADER)
343-
.withFormParam("orders", orders)
344-
.withSuccessResponse[Seq[Order]](200)
345-
.withErrorResponse[Error](400)
346-
.withErrorResponse[Error](401)
347-
.withErrorResponse[Error](403)
348-
.withErrorResponse[Error](404)
349293

350294

351295
}

auto-generated/android/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,12 @@ Class | Method | HTTP request | Description
105105
*LeaderboardApi* | [**leaderboardGetName**](docs/LeaderboardApi.md#leaderboardGetName) | **GET** /leaderboard/name | Get your alias on the leaderboard.
106106
*LiquidationApi* | [**liquidationGet**](docs/LiquidationApi.md#liquidationGet) | **GET** /liquidation | Get liquidation orders.
107107
*OrderApi* | [**orderAmend**](docs/OrderApi.md#orderAmend) | **PUT** /order | Amend the quantity or price of an open order.
108-
*OrderApi* | [**orderAmendBulk**](docs/OrderApi.md#orderAmendBulk) | **PUT** /order/bulk | Amend multiple orders for the same symbol.
109108
*OrderApi* | [**orderCancel**](docs/OrderApi.md#orderCancel) | **DELETE** /order | Cancel order(s). Send multiple order IDs to cancel in bulk.
110109
*OrderApi* | [**orderCancelAll**](docs/OrderApi.md#orderCancelAll) | **DELETE** /order/all | Cancels all of your orders.
111110
*OrderApi* | [**orderCancelAllAfter**](docs/OrderApi.md#orderCancelAllAfter) | **POST** /order/cancelAllAfter | Automatically cancel all your orders after a specified timeout.
112111
*OrderApi* | [**orderClosePosition**](docs/OrderApi.md#orderClosePosition) | **POST** /order/closePosition | Close a position. [Deprecated, use POST /order with execInst: 'Close']
113112
*OrderApi* | [**orderGetOrders**](docs/OrderApi.md#orderGetOrders) | **GET** /order | Get your orders.
114113
*OrderApi* | [**orderNew**](docs/OrderApi.md#orderNew) | **POST** /order | Create a new order.
115-
*OrderApi* | [**orderNewBulk**](docs/OrderApi.md#orderNewBulk) | **POST** /order/bulk | Create multiple new orders for the same symbol.
116114
*OrderBookApi* | [**orderBookGetL2**](docs/OrderBookApi.md#orderBookGetL2) | **GET** /orderBook/L2 | Get current orderbook in vertical format.
117115
*PositionApi* | [**positionGet**](docs/PositionApi.md#positionGet) | **GET** /position | Get your positions.
118116
*PositionApi* | [**positionIsolateMargin**](docs/PositionApi.md#positionIsolateMargin) | **POST** /position/isolate | Enable isolated margin or cross margin per-position.

auto-generated/android/docs/OrderApi.md

Lines changed: 0 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,12 @@ All URIs are relative to *https://www.bitmex.com/api/v1*
55
Method | HTTP request | Description
66
------------- | ------------- | -------------
77
[**orderAmend**](OrderApi.md#orderAmend) | **PUT** /order | Amend the quantity or price of an open order.
8-
[**orderAmendBulk**](OrderApi.md#orderAmendBulk) | **PUT** /order/bulk | Amend multiple orders for the same symbol.
98
[**orderCancel**](OrderApi.md#orderCancel) | **DELETE** /order | Cancel order(s). Send multiple order IDs to cancel in bulk.
109
[**orderCancelAll**](OrderApi.md#orderCancelAll) | **DELETE** /order/all | Cancels all of your orders.
1110
[**orderCancelAllAfter**](OrderApi.md#orderCancelAllAfter) | **POST** /order/cancelAllAfter | Automatically cancel all your orders after a specified timeout.
1211
[**orderClosePosition**](OrderApi.md#orderClosePosition) | **POST** /order/closePosition | Close a position. [Deprecated, use POST /order with execInst: 'Close']
1312
[**orderGetOrders**](OrderApi.md#orderGetOrders) | **GET** /order | Get your orders.
1413
[**orderNew**](OrderApi.md#orderNew) | **POST** /order | Create a new order.
15-
[**orderNewBulk**](OrderApi.md#orderNewBulk) | **POST** /order/bulk | Create multiple new orders for the same symbol.
1614

1715

1816
<a name="orderAmend"></a>
@@ -73,49 +71,6 @@ Name | Type | Description | Notes
7371

7472
[apiExpires](../README.md#apiExpires), [apiKey](../README.md#apiKey), [apiSignature](../README.md#apiSignature)
7573

76-
### HTTP request headers
77-
78-
- **Content-Type**: application/json, application/x-www-form-urlencoded
79-
- **Accept**: application/json, application/xml, text/xml, application/javascript, text/javascript
80-
81-
<a name="orderAmendBulk"></a>
82-
# **orderAmendBulk**
83-
> List&lt;Order&gt; orderAmendBulk(orders)
84-
85-
Amend multiple orders for the same symbol.
86-
87-
Similar to POST /amend, but with multiple orders. &#x60;application/json&#x60; only. Ratelimited at 10%.
88-
89-
### Example
90-
```java
91-
// Import classes:
92-
//import io.swagger.client.api.OrderApi;
93-
94-
OrderApi apiInstance = new OrderApi();
95-
String orders = "orders_example"; // String | An array of orders.
96-
try {
97-
List<Order> result = apiInstance.orderAmendBulk(orders);
98-
System.out.println(result);
99-
} catch (ApiException e) {
100-
System.err.println("Exception when calling OrderApi#orderAmendBulk");
101-
e.printStackTrace();
102-
}
103-
```
104-
105-
### Parameters
106-
107-
Name | Type | Description | Notes
108-
------------- | ------------- | ------------- | -------------
109-
**orders** | **String**| An array of orders. | [optional]
110-
111-
### Return type
112-
113-
[**List&lt;Order&gt;**](Order.md)
114-
115-
### Authorization
116-
117-
[apiExpires](../README.md#apiExpires), [apiKey](../README.md#apiKey), [apiSignature](../README.md#apiSignature)
118-
11974
### HTTP request headers
12075

12176
- **Content-Type**: application/json, application/x-www-form-urlencoded
@@ -431,46 +386,3 @@ Name | Type | Description | Notes
431386
- **Content-Type**: application/json, application/x-www-form-urlencoded
432387
- **Accept**: application/json, application/xml, text/xml, application/javascript, text/javascript
433388

434-
<a name="orderNewBulk"></a>
435-
# **orderNewBulk**
436-
> List&lt;Order&gt; orderNewBulk(orders)
437-
438-
Create multiple new orders for the same symbol.
439-
440-
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 &#x60;ceil(0.1 * orders)&#x60;. 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 &#x60;application/json&#x60; is supported on this endpoint.
441-
442-
### Example
443-
```java
444-
// Import classes:
445-
//import io.swagger.client.api.OrderApi;
446-
447-
OrderApi apiInstance = new OrderApi();
448-
String orders = "orders_example"; // String | An array of orders.
449-
try {
450-
List<Order> result = apiInstance.orderNewBulk(orders);
451-
System.out.println(result);
452-
} catch (ApiException e) {
453-
System.err.println("Exception when calling OrderApi#orderNewBulk");
454-
e.printStackTrace();
455-
}
456-
```
457-
458-
### Parameters
459-
460-
Name | Type | Description | Notes
461-
------------- | ------------- | ------------- | -------------
462-
**orders** | **String**| An array of orders. | [optional]
463-
464-
### Return type
465-
466-
[**List&lt;Order&gt;**](Order.md)
467-
468-
### Authorization
469-
470-
[apiExpires](../README.md#apiExpires), [apiKey](../README.md#apiKey), [apiSignature](../README.md#apiSignature)
471-
472-
### HTTP request headers
473-
474-
- **Content-Type**: application/json, application/x-www-form-urlencoded
475-
- **Accept**: application/json, application/xml, text/xml, application/javascript, text/javascript
476-

0 commit comments

Comments
 (0)