Account Data API

Account, wallet, open order & position information

All the account data endpoints require a signature

Get accounts

Returns:

A dictionary where the keys are the account guid and the values are the account names.

Example URL:

http://127.0.0.1:8050/GetEnabledAccounts

Get all accounts details

Returns:

A dictionary where the keys are the account guid and the values are objects of `AccountInformation`.

Example URL:

http://127.0.0.1:8050/GetAllAccountDetails

Get account details

Required input:

  • accountGuid : the guid of the account

Returns:

Object of `AccountInformation`.

Example URL:

http://127.0.0.1:8050/GetAccountDetails?accountGuid=06c09cbf-a7fe-49c2-9be5-4e59b93b5121

Adjust wallet of simulated account

Required input:

  • accountGuid : the guid of the account

  • coin : the coin to adjust

  • amount : the new amount. Set on 0 to remove the coin from the wallet.

Returns:

Object of `Wallet`.

Example URL:

http://127.0.0.1:8050/SimulatedAccountAddOrAdjustCoinAmount?accountGuid=06c09cbf-a7fe-49c2-9be5-4e59b93b5121&coin=BTC&amount=12

Clear wallet of simulated account

Required input:

  • accountGuid : the guid of the account

Returns:

Object of `Wallet`.

Example URL:

http://127.0.0.1:8050/SimulatedAccountClearWallet?accountGuid=06c09cbf-a7fe-49c2-9be5-4e59b93b5121

Get wallet

Required input:

  • accountGuid : the guid of the account

Returns:

A `Wallet` object.

Example URL:

http://127.0.0.1:8050/GetWallet?accountGuid=06c09cbf-a7fe-49c2-9be5-4e59b93b5121

Get open orders

Required input:

  • accountGuid : the guid of the account

Returns:

A `OrderContainer` object.

Example URL:

http://127.0.0.1:8050/GetOpenOrders?accountGuid=06c09cbf-a7fe-49c2-9be5-4e59b93b5121

Get available order templates

Returns:

A dictionary where the keys are the template guid and the values are the template names.

Example URL:

http://127.0.0.1:8050/GetOrderTemplates

Last updated