| Package | Description |
|---|---|
| io.gate.gateapi.api | |
| io.gate.gateapi.models |
| Modifier and Type | Method and Description |
|---|---|
Order |
SpotApi.amendOrder(String orderId,
String currencyPair,
OrderPatch orderPatch,
String account)
Amend an order
By default, the orders of spot and margin account are updated.
|
Order |
SpotApi.cancelOrder(String orderId,
String currencyPair,
String account)
Cancel a single order
Spot and margin orders are cancelled by default.
|
Order |
SpotApi.createCrossLiquidateOrder(LiquidateOrder liquidateOrder)
close position when cross-currency is disabled
Currently, only cross-margin accounts are supported to close position when cross currencies are disabled.
|
Order |
SpotApi.createOrder(Order order)
Create an order
You can place orders with spot, margin or cross margin account through setting the `account `field.
|
Order |
SpotApi.getOrder(String orderId,
String currencyPair,
String account)
Get a single order
Spot and margin orders are queried by default.
|
| Modifier and Type | Method and Description |
|---|---|
ApiResponse<Order> |
SpotApi.amendOrderWithHttpInfo(String orderId,
String currencyPair,
OrderPatch orderPatch,
String account)
Amend an order
By default, the orders of spot and margin account are updated.
|
List<Order> |
SpotApi.cancelOrders(String currencyPair,
String side,
String account)
Cancel all `open` orders in specified currency pair
If `account` is not set, all open orders, including spot, margin and cross margin ones, will be cancelled.
|
ApiResponse<List<Order>> |
SpotApi.cancelOrdersWithHttpInfo(String currencyPair,
String side,
String account)
Cancel all `open` orders in specified currency pair
If `account` is not set, all open orders, including spot, margin and cross margin ones, will be cancelled.
|
ApiResponse<Order> |
SpotApi.cancelOrderWithHttpInfo(String orderId,
String currencyPair,
String account)
Cancel a single order
Spot and margin orders are cancelled by default.
|
ApiResponse<Order> |
SpotApi.createCrossLiquidateOrderWithHttpInfo(LiquidateOrder liquidateOrder)
close position when cross-currency is disabled
Currently, only cross-margin accounts are supported to close position when cross currencies are disabled.
|
ApiResponse<Order> |
SpotApi.createOrderWithHttpInfo(Order order)
Create an order
You can place orders with spot, margin or cross margin account through setting the `account `field.
|
List<Order> |
SpotApi.APIlistOrdersRequest.execute()
Execute listOrders request
|
ApiResponse<List<Order>> |
SpotApi.APIlistOrdersRequest.executeWithHttpInfo()
Execute listOrders request with HTTP info returned
|
ApiResponse<Order> |
SpotApi.getOrderWithHttpInfo(String orderId,
String currencyPair,
String account)
Get a single order
Spot and margin orders are queried by default.
|
| Modifier and Type | Method and Description |
|---|---|
Order |
SpotApi.createOrder(Order order)
Create an order
You can place orders with spot, margin or cross margin account through setting the `account `field.
|
okhttp3.Call |
SpotApi.createOrderAsync(Order order,
ApiCallback<Order> _callback)
Create an order (asynchronously)
You can place orders with spot, margin or cross margin account through setting the `account `field.
|
okhttp3.Call |
SpotApi.createOrderCall(Order order,
ApiCallback _callback)
Build call for createOrder
|
ApiResponse<Order> |
SpotApi.createOrderWithHttpInfo(Order order)
Create an order
You can place orders with spot, margin or cross margin account through setting the `account `field.
|
| Modifier and Type | Method and Description |
|---|---|
okhttp3.Call |
SpotApi.amendOrderAsync(String orderId,
String currencyPair,
OrderPatch orderPatch,
String account,
ApiCallback<Order> _callback)
Amend an order (asynchronously)
By default, the orders of spot and margin account are updated.
|
okhttp3.Call |
SpotApi.cancelOrderAsync(String orderId,
String currencyPair,
String account,
ApiCallback<Order> _callback)
Cancel a single order (asynchronously)
Spot and margin orders are cancelled by default.
|
okhttp3.Call |
SpotApi.cancelOrdersAsync(String currencyPair,
String side,
String account,
ApiCallback<List<Order>> _callback)
Cancel all `open` orders in specified currency pair (asynchronously)
If `account` is not set, all open orders, including spot, margin and cross margin ones, will be cancelled.
|
List<BatchOrder> |
SpotApi.createBatchOrders(List<Order> order)
Create a batch of orders
Batch orders requirements: 1.
|
okhttp3.Call |
SpotApi.createBatchOrdersAsync(List<Order> order,
ApiCallback<List<BatchOrder>> _callback)
Create a batch of orders (asynchronously)
Batch orders requirements: 1.
|
okhttp3.Call |
SpotApi.createBatchOrdersCall(List<Order> order,
ApiCallback _callback)
Build call for createBatchOrders
|
ApiResponse<List<BatchOrder>> |
SpotApi.createBatchOrdersWithHttpInfo(List<Order> order)
Create a batch of orders
Batch orders requirements: 1.
|
okhttp3.Call |
SpotApi.createCrossLiquidateOrderAsync(LiquidateOrder liquidateOrder,
ApiCallback<Order> _callback)
close position when cross-currency is disabled (asynchronously)
Currently, only cross-margin accounts are supported to close position when cross currencies are disabled.
|
okhttp3.Call |
SpotApi.createOrderAsync(Order order,
ApiCallback<Order> _callback)
Create an order (asynchronously)
You can place orders with spot, margin or cross margin account through setting the `account `field.
|
okhttp3.Call |
SpotApi.APIlistOrdersRequest.executeAsync(ApiCallback<List<Order>> _callback)
Execute listOrders request (asynchronously)
|
okhttp3.Call |
SpotApi.getOrderAsync(String orderId,
String currencyPair,
String account,
ApiCallback<Order> _callback)
Get a single order (asynchronously)
Spot and margin orders are queried by default.
|
| Modifier and Type | Method and Description |
|---|---|
Order |
Order.account(Order.AccountEnum account) |
Order |
Order.amount(String amount) |
Order |
Order.autoBorrow(Boolean autoBorrow) |
Order |
Order.autoRepay(Boolean autoRepay) |
Order |
Order.currencyPair(String currencyPair) |
Order |
Order.iceberg(String iceberg) |
Order |
Order.price(String price) |
Order |
Order.side(Order.SideEnum side) |
Order |
Order.stpAct(Order.StpActEnum stpAct) |
Order |
Order.text(String text) |
Order |
Order.timeInForce(Order.TimeInForceEnum timeInForce) |
Order |
Order.type(Order.TypeEnum type) |
| Modifier and Type | Method and Description |
|---|---|
List<Order> |
OpenOrders.getOrders()
Get orders
|
| Modifier and Type | Method and Description |
|---|---|
OpenOrders |
OpenOrders.addOrdersItem(Order ordersItem) |
| Modifier and Type | Method and Description |
|---|---|
OpenOrders |
OpenOrders.orders(List<Order> orders) |
void |
OpenOrders.setOrders(List<Order> orders) |
Copyright © 2023. All rights reserved.