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:
1
http://127.0.0.1:8050/GetEnabledAccounts
Copied!

Get all accounts details

Returns:
A dictionary where the keys are the account guid and the values are objects of `AccountInformation`.
Example URL:
1
http://127.0.0.1:8050/GetAllAccountDetails
Copied!

Get account details

Required input:
    accountGuid : the guid of the account
Returns:
Object of `AccountInformation`.
Example URL:
1
http://127.0.0.1:8050/GetAccountDetails?accountGuid=06c09cbf-a7fe-49c2-9be5-4e59b93b5121
Copied!

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:
1
http://127.0.0.1:8050/SimulatedAccountAddOrAdjustCoinAmount?accountGuid=06c09cbf-a7fe-49c2-9be5-4e59b93b5121&coin=BTC&amount=12
Copied!

Clear wallet of simulated account

Required input:
    accountGuid : the guid of the account
Returns:
Object of `Wallet`.
Example URL:
1
http://127.0.0.1:8050/SimulatedAccountClearWallet?accountGuid=06c09cbf-a7fe-49c2-9be5-4e59b93b5121
Copied!

Get wallet

Required input:
    accountGuid : the guid of the account
Returns:
A `Wallet` object.
Example URL:
1
http://127.0.0.1:8050/GetWallet?accountGuid=06c09cbf-a7fe-49c2-9be5-4e59b93b5121
Copied!

Get open orders

Required input:
    accountGuid : the guid of the account
Returns:
A `OrderContainer` object.
Example URL:
1
http://127.0.0.1:8050/GetOpenOrders?accountGuid=06c09cbf-a7fe-49c2-9be5-4e59b93b5121
Copied!

Get available order templates

Returns:
A dictionary where the keys are the template guid and the values are the template names.
Example URL:
1
http://127.0.0.1:8050/GetOrderTemplates
Copied!
Last modified 2yr ago