Orders
Retrieve a list of active orders.
Account address
r[0-9a-zA-Z]{24,34}Unique UUID of an entity in scope of this gateway
ae5c406b-1696-47a0-beca-dac17f51a66bSuccessfully retrieved a list of items.
GET /orders HTTP/1.1
Host:
Accept: */*
Successfully retrieved a list of items.
{
"pagination": {
"size": 10,
"page": 1,
"totalItems": 25,
"totalPages": 3
},
"items": [
{
"created_at": "2024-01-01T00:00:00.000Z",
"updated_at": "2024-01-01T00:00:00.000Z",
"id": "bfd39fbe-6551-44cc-8172-d3fa6174caac",
"account_address": "text",
"buy_token_id": "aa877547-6e57-47ed-8fa6-1c5e42ea893d",
"buy_amount": 1,
"buy_remaining_amount": 1,
"sell_token_id": "6c2d466e-db54-46a0-bee1-2f8caa97d9c3",
"sell_amount": 2,
"sell_remaining_amount": 2,
"type": "buy",
"status": "active",
"ratio": 2,
"expires_at": "2024-12-31T00:00:00.000Z"
}
]
}Create a new order. Example: buy/sell a bond with a currency type token.
Unique UUID of the currency in scope of this gateway
1bf4ccaf-06eb-4530-bd96-0362c420afd9Total price of the currency
2Unique UUID of the bond in scope of this gateway
d635d09b-146a-4585-94ad-f12474593b33Total amount of the bond
1Order Type
buyPossible values: Expiration date
2024-12-31T00:00:00.000ZAccount address
r[0-9a-zA-Z]{24,34}Successfully created an order.
POST /orders HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 199
{
"currencyId": "1bf4ccaf-06eb-4530-bd96-0362c420afd9",
"price": 2,
"bondId": "d635d09b-146a-4585-94ad-f12474593b33",
"amount": 1,
"type": "buy",
"expiration": "2024-12-31T00:00:00.000Z",
"accountAddress": "text"
}Successfully created an order.
{
"created_at": "2024-01-01T00:00:00.000Z",
"updated_at": "2024-01-01T00:00:00.000Z",
"id": "bfd39fbe-6551-44cc-8172-d3fa6174caac",
"account_address": "text",
"buy_token_id": "aa877547-6e57-47ed-8fa6-1c5e42ea893d",
"buy_amount": 1,
"buy_remaining_amount": 1,
"sell_token_id": "6c2d466e-db54-46a0-bee1-2f8caa97d9c3",
"sell_amount": 2,
"sell_remaining_amount": 2,
"type": "buy",
"status": "active",
"ratio": 2,
"expires_at": "2024-12-31T00:00:00.000Z"
}Retrieve full specific order information.
UUIDv4 unique id of an order
c75ca34b-3af6-48ff-9652-d54a4ca9459eSuccessfully received an order.
GET /orders/{orderId} HTTP/1.1
Host:
Accept: */*
Successfully received an order.
{
"created_at": "2024-01-01T00:00:00.000Z",
"updated_at": "2024-01-01T00:00:00.000Z",
"id": "bfd39fbe-6551-44cc-8172-d3fa6174caac",
"account_address": "text",
"buy_token_id": "aa877547-6e57-47ed-8fa6-1c5e42ea893d",
"buy_amount": 1,
"buy_remaining_amount": 1,
"sell_token_id": "6c2d466e-db54-46a0-bee1-2f8caa97d9c3",
"sell_amount": 2,
"sell_remaining_amount": 2,
"type": "buy",
"status": "active",
"ratio": 2,
"expires_at": "2024-12-31T00:00:00.000Z"
}Update an existing order. Example: buy/sell a bond with a currency type token.
UUIDv4 unique id of an order
c47b42b9-74e0-40c4-9b54-56e41a9c768fUnique UUID of the currency in scope of this gateway
1bf4ccaf-06eb-4530-bd96-0362c420afd9Total price of the currency
2Unique UUID of the bond in scope of this gateway
d635d09b-146a-4585-94ad-f12474593b33Total amount of the bond
1Order Type
buyPossible values: Expiration date
2024-12-31T00:00:00.000ZSuccessfully updated an order.
PUT /orders/{orderId} HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 175
{
"currencyId": "1bf4ccaf-06eb-4530-bd96-0362c420afd9",
"price": 2,
"bondId": "d635d09b-146a-4585-94ad-f12474593b33",
"amount": 1,
"type": "buy",
"expiration": "2024-12-31T00:00:00.000Z"
}Successfully updated an order.
{
"created_at": "2024-01-01T00:00:00.000Z",
"updated_at": "2024-01-01T00:00:00.000Z",
"id": "bfd39fbe-6551-44cc-8172-d3fa6174caac",
"account_address": "text",
"buy_token_id": "aa877547-6e57-47ed-8fa6-1c5e42ea893d",
"buy_amount": 1,
"buy_remaining_amount": 1,
"sell_token_id": "6c2d466e-db54-46a0-bee1-2f8caa97d9c3",
"sell_amount": 2,
"sell_remaining_amount": 2,
"type": "buy",
"status": "active",
"ratio": 2,
"expires_at": "2024-12-31T00:00:00.000Z"
}Cancel the order by id parameter.
UUIDv4 unique id of an order
b418a760-f9d9-438b-aa72-c43c3282c010The order was cancelled.
No content
PATCH /orders/{orderId} HTTP/1.1
Host:
Accept: */*
The order was cancelled.
No content