Positions
GET{BASE_URL}/positions
Returns account positions from Giga's stored account state by default.
Pass source=whale when using GigaMoney Whale for order placement to
retrieve current positions from Whale. This option applies only to
omnibus-account requests; omit it for the default behavior. With
source=whale, only quantity_long and quantity_short are
populated and other quantities are "0"; Whale failures return 502.
With end_customer_id, positions of that end customer are returned.
Rows with all quantities zero are omitted, and results are sorted by
symbol.
Request
Responses
- 200
- 400
- 401
- 500
- 502
- 503
OK
The request could not be accepted, for example because the account or
symbol is unavailable, a required paired account is missing, buying power
or position is insufficient, required market pricing is unavailable, an
identifier is duplicated, or an order field or requested lifecycle action
is invalid. A missing account_number, or one not linked to the API key,
also returns 400 BasicInput_Error.
Missing or invalid X-API-KEY.
Unexpected server-side failure, for example the order service did not
answer in time (AVInternal_Error, system too busy) or was
unreachable (Misc_Error). For order requests, check the order's
status before retrying: a retried order_id that was already
accepted is rejected as a duplicate.
A request to GigaMoney Whale failed or returned an unreadable response.
A required service is temporarily unavailable (for example the database, or for Hong Kong requests that read from GigaMoney Whale, the Whale connection). Retry later.