Get Account Detail
The account API will return detail about the specific account requested such as users, country codes, etc.
Roles
The API key you use to access this endpoint can be either a Master or Account level key with any role assigned. See Roles for more information.
Headers
X-GEMINI-APIKEYstring · requiredYour API key
X-GEMINI-SIGNATUREstring · requiredHEX-encoded HMAC-SHA384 of payload signed with API secret
X-GEMINI-PAYLOADstring · requiredBase64-encoded JSON payload
Content-TypestringDefault: text/plainContent-LengthstringDefault: 0Cache-ControlstringDefault: no-cache
Request Body
requeststring · requiredThe literal string "/v1/account"
accountstringRequired for Master API keys as described in Private API Invocation. The name of the account within the subaccount group. Master API keys can get all account names using the Get Accounts endpoint.
Responses
Successful operation
accountobjectContains information on the requested account
usersobject[]Contains an array of JSON objects with user information for the requested account
memo_reference_codestringReturns wire memo reference code for linked bank account
virtual_account_numberstringVirtual account number for the account. Only populated if applicable for the account
Create New Account
A Master API key can create a new exchange account within the group. This API will return the name of your new account for use with the account parameter in when using Master API keys to perform account level functions. Please see the example.
Roles
The API key you use to access this endpoint must be a Master level key and have the Administrator role assigned. See Roles for more information.
Headers
X-GEMINI-APIKEYstring · requiredYour API key
X-GEMINI-SIGNATUREstring · requiredHEX-encoded HMAC-SHA384 of payload signed with API secret
X-GEMINI-PAYLOADstring · requiredBase64-encoded JSON payload
Content-TypestringDefault: text/plainContent-LengthstringDefault: 0Cache-ControlstringDefault: no-cache
Request Body
requeststring · requiredThe literal string "/v1/account/create"
namestring · requiredA unique name for the new account
typestringEither
exchangeorcustodyis accepted. Will generate an exchange account ifexchangeor parameter is missing. Will generate a custody account ifcustody.
Responses
Successful operation
accountstringAccount reference string for use in APIs based off the provided
namefieldtypestringWill return the type of account generated.
exchangeif an exchange account was created,custodyif a custody account was created
Rename Account
A Master or Account level API key can rename an account within the group.
Roles
The API key you use to access this endpoint can be either a Master or Account level API key and must have the Administrator role assigned. See Roles for more information.
Headers
X-GEMINI-APIKEYstring · requiredYour API key
X-GEMINI-SIGNATUREstring · requiredHEX-encoded HMAC-SHA384 of payload signed with API secret
X-GEMINI-PAYLOADstring · requiredBase64-encoded JSON payload
Content-TypestringDefault: text/plainContent-LengthstringDefault: 0Cache-ControlstringDefault: no-cache
Request Body
requeststring · requiredThe literal string "/v1/account/rename".
accountstringOnly required when using a master api-key. The shortname of the account within the subaccount group. Master API keys can get all account shortnames from the
accountfield returned by the Get Accounts endpoint.newNamestringA unique name for the new account. If not provided, name will not change.
newAccountstringA unique shortname for the new account. If not provided, shortname will not change.
Responses
An element containing the updated name of the account.
namestringNew name for the account based off the provided
newNamefield. Only returned ifnewNamewas provided in the request.accountstringNew shortname for the account based off the provided
newAccountfield. Only returned ifnewAccountwas provided in the request.
List Accounts in Group
A Master API key can be used to get the accounts within the group. A maximum of 500 accounts can be listed in a single API call.
Roles
The API key you use to access this endpoint must be a Master level key. See Roles for more information.
The OAuth scope must have account:read assigned to access this endpoint. See OAuth Scopes for more information.
Headers
X-GEMINI-APIKEYstring · requiredYour API key
X-GEMINI-SIGNATUREstring · requiredHEX-encoded HMAC-SHA384 of payload signed with API secret
X-GEMINI-PAYLOADstring · requiredBase64-encoded JSON payload
Content-TypestringDefault: text/plainContent-LengthstringDefault: 0Cache-ControlstringDefault: no-cache
Request Body
requeststring · requiredThe literal string "/v1/account/list"
limit_accountsintegerThe maximum number of accounts to return. Maximum and default values are both 500.
timestampOnly return accounts created on or before the supplied timestamp. If not provided, the 500 most recently created accounts are returned.
Responses
The response will be a JSON object containing all accounts within the master group
namestringThe name of the account provided upon creation
accountstringNickname of the specific account (will take the name given, remove all symbols, replace all " " with "-" and make letters lowercase)
typestringEither "exchange" or "custody" depending on type of account
counterparty_idstringThe Gemini clearing counterparty ID associated with the API key making the request. Will return
Nonefor custody accountscreatedThe timestamp of account creation, displayed as number of milliseconds since 1970-01-01 UTC. This will be transmitted as a JSON number
statusstringEither "open" or "closed"
Roles Endpoint
The v1/roles endpoint will return a string of the role of the current API key. The response fields will be different for account-level and master-level API keys.
Headers
X-GEMINI-APIKEYstring · requiredYour API key
X-GEMINI-SIGNATUREstring · requiredHEX-encoded HMAC-SHA384 of payload signed with API secret
X-GEMINI-PAYLOADstring · requiredBase64-encoded JSON payload
Content-TypestringDefault: text/plainContent-LengthstringDefault: 0Cache-ControlstringDefault: no-cache
Request Body
requeststring · requiredThe literal string "/v1/roles"
Example: /v1/rolesnonceTimestampType · requiredtimestamp
Responses
The response will be a JSON object indicating the assigned roles to the set of API keys used to call /v1/roles. The Auditor role cannot be combined with other roles. Fund Manager and Trader can be combined.
isAuditorboolean · requiredTrueif the Auditor role is assigned to the API keys.Falseotherwise.isFundManagerboolean · requiredTrueif the Fund Manager role is assigned to the API keys.Falseotherwise.isTraderboolean · requiredTrueif the Trader role is assigned to the API keys.Falseotherwise.
counterparty_idstringOnly returned for master-level API keys. The Gemini clearing counterparty ID associated with the API key making the request.
isAccountAdminbooleanOnly returned for master-level API keys.
Trueif the Administrator role is assigned to the API keys.Falseotherwise.

