Get user orders
curl --request GET \
--url https://api.mainnet.kuru.io/api/v1/users/{userId}/ordersconst options = {method: 'GET'};
fetch('https://api.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://api.mainnet.kuru.io/api/v1/users/{userId}/orders"
response = requests.get(url)
print(response.text){
"feedEpoch": 18,
"data": [],
"state": "finalized",
"servedView": "finalized",
"globalUserSeq": null,
"truncated": false
}
Data Source REST methods
Get finalized user open orders
Read a user’s finalized open-order snapshot and replay cursor.
GET
/
api
/
v1
/
users
/
{userId}
/
orders
Get user orders
curl --request GET \
--url https://api.mainnet.kuru.io/api/v1/users/{userId}/ordersconst options = {method: 'GET'};
fetch('https://api.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://api.mainnet.kuru.io/api/v1/users/{userId}/orders"
response = requests.get(url)
print(response.text){
"feedEpoch": 18,
"data": [],
"state": "finalized",
"servedView": "finalized",
"globalUserSeq": null,
"truncated": false
}
string
required
Unsigned decimal Kuru user ID.
integer | null
required
Feed epoch containing
globalUserSeq.array
required
Up to 2,000 open orders, ordered by market address and then order ID.
string | null
required
Finalized user sequence covered by the snapshot.
boolean
required
true when additional open orders were omitted.price is an integer in market price precision (pp). remainingSize uses the
market’s native size precision. minSizeAfterBlock is the block height after
which reduce-after-block behavior applies.
When both cursor fields are non-null, install this snapshot and subscribe to
userOrders@f with the same feedEpoch and globalUserSeq.
{
"feedEpoch": 18,
"data": [],
"state": "finalized",
"servedView": "finalized",
"globalUserSeq": null,
"truncated": false
}
Path Parameters
Response
200
User orders