account
Query — returns Account.
Account Information
Example
close_account
Mutation — returns SelfStatusChangeResult.
GraphQL field: closeAccount
Close a user’s account. This requires that the user has no positions in any market, and
has withdrawn all funds. Closed accounts cannot be reversed.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
password | str | No | User’s password to close the account |
loyalty_history
Query — returns list[TransactionHistory].
GraphQL field: loyaltyHistory
List of all loyalty related transactions for the account
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
pagination | Pagination (dict — see below) | No | — |
pagination accepts a dict with these keys (pass as params={"pagination": {...}}):
| Field | Type | Required | Description |
|---|---|---|---|
page | int | Yes | The page of result where each page has limit values. Integer >= 0 |
limit | int | Yes | The limit of values per page. Integer value greater than 0. |