Comment on page
Account Data API
Account, wallet, open order & position information
All the account data endpoints require a signature
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
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
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
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
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
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
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
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 modified 5yr ago