Orders
Orders
Get list of orders
Typescript Core SDK
V3 ORDERS ENDPOINTS MIGRATION
Please refer to this guide when you plan your migration to the upgraded v3 endpoints, and to learn more about maker taker fees please see here.
📚SDK REFERENCE
listOrders
Request
Get a list of active orders from a particular collection that are listed in ETH and sorted by name:
const getListOrders = async (
status: 'active' | 'filled' | 'cancelled' | 'expired' | 'inactive',
orderBy:
| 'created_at'
| 'expired_at'
| 'sell_quantity'
| 'buy_quantity'
| 'buy_quantity_with_fees'
| 'updated_at',
sellTokenAddress: string,
buyTokenType: string
) => {
const response = await client.listOrders({
status,
orderBy,
sellTokenAddress,
buyTokenType,
});
return response;
};
getListOrders(
'active',
'buy_quantity_with_fees',
'0x61e506cec264d5b2705f10e5a934dc5313a56a6e',
'ETH'
)
.then((result) => {
console.log(result);
})
.catch((e) => {
console.log(e);
});Example response
Kotlin (JVM) Core SDK
SDK REFERENCE
listOrders
Swift Core SDK
SDK REFERENCE
listOrders
Golang Core SDK
📚SDK REFERENCE
ListOrders
C# Core SDK
📚SDK REFERENCE
ListOrders
Get details about an order
Typescript Core SDK
📚SDK REFERENCE
getOrder
Request
Get details about an order with ID 1506, including fees:
Example response
Kotlin (JVM) Core SDK
📚SDK REFERENCE
getOrder
Swift Core SDK
📚SDK REFERENCE
getOrder
Golang Core SDK
📚SDK REFERENCE
GetOrder
C# Core SDK
📚SDK REFERENCE
GetOrder
Last updated