Get user orders
curl --request GET \
--url https://gateway.mainnet.kuru.io/api/v1/users/{userId}/ordersconst options = {method: 'GET'};
fetch('https://gateway.mainnet.kuru.io/api/v1/users/{userId}/orders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://gateway.mainnet.kuru.io/api/v1/users/{userId}/orders"
response = requests.get(url)
print(response.text){
"feedEpoch": 7,
"data": [{
"orderId": "77738308",
"marketAddress": "0x0a082280e4ea3d822e23ec1186685477241a039d",
"slotIdx": 3,
"symbol": "WETHUSDC",
"isBuy": true,
"orderType": "limit",
"price": "230000000",
"remainingSize": "750000000000000000000",
"minSizeAfterBlock": null,
"clientOrderId": null,
"createdAt": 1700000000
}],
"state": "finalized",
"servedView": "finalized",
"globalSeq": 124367,
"globalUserSeq": 2951,
"truncated": false
}
Exchange REST methods
Get projected user open orders
Read a current proposed, voted, or finalized open-order snapshot.
GET
/
api
/
v1
/
users
/
{userId}
/
orders
Get user orders
curl --request GET \
--url https://gateway.mainnet.kuru.io/api/v1/users/{userId}/ordersconst options = {method: 'GET'};
fetch('https://gateway.mainnet.kuru.io/api/v1/users/{userId}/orders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://gateway.mainnet.kuru.io/api/v1/users/{userId}/orders"
response = requests.get(url)
print(response.text){
"feedEpoch": 7,
"data": [{
"orderId": "77738308",
"marketAddress": "0x0a082280e4ea3d822e23ec1186685477241a039d",
"slotIdx": 3,
"symbol": "WETHUSDC",
"isBuy": true,
"orderType": "limit",
"price": "230000000",
"remainingSize": "750000000000000000000",
"minSizeAfterBlock": null,
"clientOrderId": null,
"createdAt": 1700000000
}],
"state": "finalized",
"servedView": "finalized",
"globalSeq": 124367,
"globalUserSeq": 2951,
"truncated": false
}
Response JSON below is an illustrative testnet snapshot, not a live mainnet result. Use the selected server and its network-specific addresses for actual requests.
Up to 2,000 open orders in immutable snapshot order.
Creation-block Unix timestamp in seconds. Retained through partial fills and
checkpoint restore; matches the userOrders WebSocket snapshot creation time.
{
"feedEpoch": 7,
"data": [{
"orderId": "77738308",
"marketAddress": "0x0a082280e4ea3d822e23ec1186685477241a039d",
"slotIdx": 3,
"symbol": "WETHUSDC",
"isBuy": true,
"orderType": "limit",
"price": "230000000",
"remainingSize": "750000000000000000000",
"minSizeAfterBlock": null,
"clientOrderId": null,
"createdAt": 1700000000
}],
"state": "finalized",
"servedView": "finalized",
"globalSeq": 124367,
"globalUserSeq": 2951,
"truncated": false
}