account
Query — returns Account.
Account Information
Example
accountLimitsHistoryNumber
Query — returns list[AccountLimitHistoryResultNumber].
History of account limits changes by the user.
Example
accountLimitsNumber
Query — returns AccountLimitResultNumber.
Account limits for a single account - values are returned as integer numbers
Example
closeAccount
Mutation — returns SelfStatusChangeResult.
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 | GraphQL type | Required | Description |
|---|---|---|---|
password | String | No | User’s password to close the account |
loyaltyHistory
Query — returns list[TransactionHistory].
List of all loyalty related transactions for the account
Parameters
| Name | GraphQL type | Required | Description |
|---|---|---|---|
pagination | Pagination | No | — |
selfExclude
Mutation — returns SelfStatusChangeResult.
(DEPRECATED) - USE set_limit_number instead.
Parameters
| Name | GraphQL type | Required | Description |
|---|---|---|---|
password | String | No | User’s password to self-exclude the account |
setLimitNumber
Mutation — returns AccountLimitResultNumber.
Sets the user’s account limits. The account limits are constrained by the admin limits
on the user’s account.
Parameters
| Name | GraphQL type | Required | Description |
|---|---|---|---|
key | LimitKeys! | Yes | The key of the limit that the user wishes to change. |
value | NonNegInt | No | The new value for the limit. |
password | String | No | Optional password to set cool-off period and self-exclusion |
termsAndConditions
Query — returns TermsAndConditionsResult.
Returns the latest TermsAndConditions version details
Example
tncAccepted
Mutation — returns str.
Register that the user accepts the terms and conditions.
Parameters
| Name | GraphQL type | Required | Description |
|---|---|---|---|
input | TncAcceptanceInput! | Yes | — |
updateProfile
Mutation — returns UpdateUserProfileResult.
Allows a user to update phone and address in their profile using JSON input.
Parameters
| Name | GraphQL type | Required | Description |
|---|---|---|---|
input | UserProfileInputV2! | Yes | The data to update in the user profile. |
updateUserProfile
Mutation — returns UpdateUserProfileResult.
Allows a user to update their profile with new information.
Parameters
| Name | GraphQL type | Required | Description |
|---|---|---|---|
input | UserProfileInput! | Yes | The data to update in the user profile. |
userProfile
Query — returns UserProfile.
A user’s profile
Example
verifyEmail
Mutation — returns VerificationResult.
Verify a user’s email on registration or after change.
Parameters
| Name | GraphQL type | Required | Description |
|---|---|---|---|
code | String! | Yes | The code that was mailed to the user to accomplish the verification. |
verifyPassword
Mutation — returns PasswordVerificationResult.
Verifies if the user’s password is correct
Parameters
| Name | GraphQL type | Required | Description |
|---|---|---|---|
password | String! | Yes | The password to verify |

