haasomeapi.apis.AccountDataApi module¶
Functions¶
-
class
haasomeapi.apis.AccountDataApi.AccountDataApi(connectionstring: str, privatekey: str)¶ Bases:
haasomeapi.apis.ApiBase.ApiBaseThe Account Data API Class. Gives access to the account data api endpoints
Parameters: - connectionstring – str: Connection String Formatted Ex. http://127.0.0.1:9000
- privatekey – str: Private Key Set In The Haas Settings
-
get_account_details(accountguid: str)¶ Retrives account details from supplied guid
Parameters: accountguid – str: The account guid Returns: HaasomeClientResponseReturns: In .result AccountInformation
-
get_all_account_details()¶ Retrives a dictionary of all account names with guid
Returns: HaasomeClientResponseReturns: In .result Dict[ AccountInformation]
-
get_all_open_orders()¶ Get all open orders for all accounts
Returns: HaasomeClientResponseReturns: In .result dict
-
get_all_wallets()¶ Gets all wallets
Returns: HaasomeClientResponseReturns: In .result dict
-
get_enabled_accounts()¶ Retrives a dictionary of enabled accounts
Returns: HaasomeClientResponseReturns: In .result dict
-
get_open_orders(accountguid: str)¶ Gets all open orders for a specific account
Parameters: accountguid – str: The account guid Returns: HaasomeClientResponseReturns: In .result OrderContainer
-
get_order_templates()¶ Gets current order templates
Returns: HaasomeClientResponseReturns: In .result dict
-
get_software_details()¶ Retrives the current software information
Returns: HaasomeClientResponseReturns: In .result SoftwareInformation
-
get_template_status(templateguid: str)¶ Gets status for template
Parameters: templateguid – str: Template Guid Returns: HaasomeClientResponseReturns: In .result EnumOrderStatus
-
get_wallet(accountguid: str)¶ Get wallet for specific account
Parameters: accountguid – str: The account guid Returns: HaasomeClientResponseReturns: In .result Wallet
-
simulated_account_add_or_adjust_coin_amount(accountguid: str, coin: str, amount: float)¶ Add or Edit simulated account coin amount
Parameters: - accountguid – str: The account guid
- coin – str: Coin to change
- amount – float: Amount of coins to use
Returns: Returns: In .result
Wallet
-
simulated_account_clear_wallet(accountguid: str)¶ Clears the simulated account wallet if the account is a sim account.
Parameters: accountguid – str: The account guid Returns: HaasomeClientResponseReturns: In .result Wallet