Orders

Fetch the orders

get
Get Orders

https://api.vaultoro.com/v1/public/orders
This endpoint returns all the orders.
Request
Response
Request
Query Parameters
until
optional
string
Unix timestamp to filter the results until.
since
optional
string
Unix timestamp to filter the results since.
sortDirection
optional
string
Sort direction for the results. 1 for ascending and -1 for descending.
sort
optional
string
Sort the results by timestamp. Should be createdAt or updatedAt.
limit
optional
number
Limit the number of results.
page
optional
number
Return a specific page.
type
required
string
The type of order. Should be BUY or SELL.
status
optional
string
The status of the order. Can only be OPEN for the public endpoint.
pair
required
string
Filter by available pairs.
matchType
optional
string
Filter the type of order. Currently only LIMIT.
Response
200: OK
Cake successfully retrieved.
{
"data": [
{
"createdAt": 1595357756,
"initialQuantity": 1223,
"matchType": "LIMIT",
"pair": "GOLDBTC",
"quantity": "1198.0000",
"status": "OPEN",
"type": "BUY",
"updatedAt": 1595427428,
"value": "0.00615450"
}
],
"pagination": {
"count": 1
}
}

get
Get Liquidity

https://api.vaultoro.com/v1/public/orders/liquidity
Returns the current liquidity for a market. Will return FX data if you send in a currency handle.
Request
Response
Request
Query Parameters
until
optional
string
Unix timestamp to filter the results until.
since
optional
string
Unix timestamp to filter the results since.
type
required
string
The type of order. Should be BUY or SELL.
matchType
optional
string
Filter the type of order. Currently only LIMIT.
fx
optional
string
Returns the FX data with the request. Must be EURCENT or CENT.
pair
required
string
Enter the pair to filter by. Currently available: DASHBTC, GOLDBTC or GOLDDASH
Response
200: OK
{
"data": [
{
"count": 1,
"currencyHandle": "EURCENT",
"currencyValue": "6122",
"matchType": "LIMIT",
"pair": "GOLDBTC",
"price": "0.00061545",
"quantity": "12.0000",
"sum": "12.0000",
"total": "0.0074",
"type": "BUY"
},
{
"count": 1,
"currencyHandle": "EURCENT",
"currencyValue": "5127",
"matchType": "LIMIT",
"pair": "GOLDBTC",
"price": "0.00051545",
"quantity": "12.0000",
"sum": "24.0000",
"total": "0.0062",
"type": "BUY"
},
{
"count": 1,
"currencyHandle": "EURCENT",
"currencyValue": "52370",
"matchType": "LIMIT",
"pair": "GOLDBTC",
"price": "0.00050545",
"quantity": "125.0000",
"sum": "149.0000",
"total": "0.0632",
"type": "BUY"
},
{
"count": 1,
"currencyHandle": "EURCENT",
"currencyValue": "52267",
"matchType": "LIMIT",
"pair": "GOLDBTC",
"price": "0.00050445",
"quantity": "125.0000",
"sum": "274.0000",
"total": "0.0631",
"type": "BUY"
},
{
"count": 1,
"currencyHandle": "EURCENT",
"currencyValue": "5029",
"matchType": "LIMIT",
"pair": "GOLDBTC",
"price": "0.00040445",
"quantity": "15.0000",
"sum": "289.0000",
"total": "0.0061",
"type": "BUY"
}
]
}