HaasomeApiLaunch External Website
WARNING: This Library is still in active development and far from a stable production state. Changes and updates will be frequent and the pip package will be updated constantly. Please report any problems has issues and they will be fixed immediately.
WARNING: Has of the version 220.127.116.11 release the API has changed with HaasOnline Software. If you are using a version prior to 18.104.22.168 you will also need to use a older version of the API. If you attempt to use version 22.214.171.124 of the haasomeapi on HTS version older than 2.3.1 it will not work correctly.
A Python library to access the Local API on the HaasOnline Trading Server. Its light weight and extremely easy to use designed to follow the same design paradigm has the rest API and the official c# api wrapper. Making it easy to swap between the two libraries and look up endpoints if need be.
Install Using Pip
pip install --no-cache-dir haasomeapi
from haasomeapi.HaasomeClient import HaasomeClient # Connect to the haas client haasome = HaasomeClient("http://127.0.0.1:9000", "secretkeyhere") # Get a dict of all enabled accounts accounts = haasome.accountDataApi.get_enabled_accounts() # Select the First Guid accountGuid = accounts.keys spotBuy = haasome.tradeApi.place_spot_buy_order(accountGuid, "BNB", "BTC", 0.0020852, 20)
The community content is generated by people from the community and is actively moderated. However, we do not endorse or claim to maintain any user generated content, links, tutorials, guides, projects, or questions that may appear in community sections.