List a position's orders
GET https://rest.haasapi.com/v1/partner/users/{user_id}/bots/{bot_id}/positions/{position_id}/orders
Returns the enter and exit orders of one of a bot’s positions (open or recently closed).
Requires the partner scope.
Example request
Section titled “Example request”curl "https://rest.haasapi.com/v1/partner/users/{user_id}/bots/{bot_id}/positions/{position_id}/orders" \ -H "Authorization: Bearer hk_live_YOUR_KEY"Response
Section titled “Response”200 OK. Returns a PartnerPositionOrders.
{ "position_id": "p-1", "enter_orders": [ { "order_id": "o-enter-1", "direction": "buy", "order_type": "limit", "price": "25000", "amount": "0.01", "fee_costs": "0.25", "fee_currency": "USDT", "profit": "0", "roi": "0", "created_at": "2026-08-28T19:04:11Z", "note": null } ], "exit_orders": []}Fields
Section titled “Fields”PartnerPositionOrders
Section titled “PartnerPositionOrders”| Field | Type | Description |
|---|---|---|
position_id |
string | |
enter_orders |
array of PartnerPositionOrder | |
exit_orders |
array of PartnerPositionOrder |
PartnerPositionOrder
Section titled “PartnerPositionOrder”| Field | Type | Description |
|---|---|---|
order_id |
string | |
direction |
string | |
order_type |
string | |
price |
string (decimal) | |
amount |
string (decimal) | |
fee_costs |
string (decimal) | |
fee_currency |
string, nullable | |
profit |
string (decimal) | |
roi |
string (decimal) | |
created_at |
string | RFC 3339 UTC. |
note |
string, nullable |
Errors
Section titled “Errors”All errors are RFC 9457 problem documents.
| Status | Description |
|---|---|
400 |
The request is malformed (invalid limit, unusable cursor, …). (code: invalid_request) |
401 |
Missing, malformed, disabled, or revoked API key. (code: invalid_api_key) |
404 |
No accessible position with that id for this bot. (code: position_not_found) |
500 |
An unexpected error inside the API. Nothing about the request caused it; retry, and quote the instance value if it persists. (code: internal_error) |
502 |
An internal service answered in a way the API could not serve. Retry. (code: upstream_error) |
503 |
The request could not be served right now. Retry with the same key - do not discard it. (code: temporarily_unavailable) |
504 |
An internal service did not answer within the deadline. Retry with backoff. (code: upstream_timeout) |
{ "type": "https://docs.haasapi.com/errors/invalid_request", "title": "Invalid request", "status": 400, "detail": "The request is malformed (invalid limit, unusable cursor, …).", "code": "invalid_request"}