GET v2/botapi/orders/close/{pair}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
pair | string |
Required |
Body Parameters
None.
Response Information
Resource Description
OrderHistoryName | Description | Type | Additional information |
---|---|---|---|
Buy | Collection of OrderModel |
None. |
|
Sell | Collection of OrderModel |
None. |
Response Formats
application/json, text/json
Sample:
{ "Buy": [ { "id": "sample string 1", "market_symbol": "sample string 2", "direction": "sample string 3", "quantity": 1.0, "limit": 1.0, "status": "sample string 4", "created_at": "sample string 5", "value": "sample string 6" }, { "id": "sample string 1", "market_symbol": "sample string 2", "direction": "sample string 3", "quantity": 1.0, "limit": 1.0, "status": "sample string 4", "created_at": "sample string 5", "value": "sample string 6" } ], "Sell": [ { "id": "sample string 1", "market_symbol": "sample string 2", "direction": "sample string 3", "quantity": 1.0, "limit": 1.0, "status": "sample string 4", "created_at": "sample string 5", "value": "sample string 6" }, { "id": "sample string 1", "market_symbol": "sample string 2", "direction": "sample string 3", "quantity": 1.0, "limit": 1.0, "status": "sample string 4", "created_at": "sample string 5", "value": "sample string 6" } ] }
text/xml
Sample:
<OrderHistory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Exchange.PIAV2.Models.Custom_Models"> <Buy xmlns:d2p1="http://schemas.datacontract.org/2004/07/Exchange.PIAV2.Models.Market.Order"> <d2p1:OrderModel> <d2p1:CreatedAt>sample string 5</d2p1:CreatedAt> <d2p1:Direction>sample string 3</d2p1:Direction> <d2p1:Id>sample string 1</d2p1:Id> <d2p1:Limit>1</d2p1:Limit> <d2p1:MarketSymbol>sample string 2</d2p1:MarketSymbol> <d2p1:Quantity>1</d2p1:Quantity> <d2p1:Status>sample string 4</d2p1:Status> <d2p1:Value>sample string 6</d2p1:Value> </d2p1:OrderModel> <d2p1:OrderModel> <d2p1:CreatedAt>sample string 5</d2p1:CreatedAt> <d2p1:Direction>sample string 3</d2p1:Direction> <d2p1:Id>sample string 1</d2p1:Id> <d2p1:Limit>1</d2p1:Limit> <d2p1:MarketSymbol>sample string 2</d2p1:MarketSymbol> <d2p1:Quantity>1</d2p1:Quantity> <d2p1:Status>sample string 4</d2p1:Status> <d2p1:Value>sample string 6</d2p1:Value> </d2p1:OrderModel> </Buy> <Sell xmlns:d2p1="http://schemas.datacontract.org/2004/07/Exchange.PIAV2.Models.Market.Order"> <d2p1:OrderModel> <d2p1:CreatedAt>sample string 5</d2p1:CreatedAt> <d2p1:Direction>sample string 3</d2p1:Direction> <d2p1:Id>sample string 1</d2p1:Id> <d2p1:Limit>1</d2p1:Limit> <d2p1:MarketSymbol>sample string 2</d2p1:MarketSymbol> <d2p1:Quantity>1</d2p1:Quantity> <d2p1:Status>sample string 4</d2p1:Status> <d2p1:Value>sample string 6</d2p1:Value> </d2p1:OrderModel> <d2p1:OrderModel> <d2p1:CreatedAt>sample string 5</d2p1:CreatedAt> <d2p1:Direction>sample string 3</d2p1:Direction> <d2p1:Id>sample string 1</d2p1:Id> <d2p1:Limit>1</d2p1:Limit> <d2p1:MarketSymbol>sample string 2</d2p1:MarketSymbol> <d2p1:Quantity>1</d2p1:Quantity> <d2p1:Status>sample string 4</d2p1:Status> <d2p1:Value>sample string 6</d2p1:Value> </d2p1:OrderModel> </Sell> </OrderHistory>