HaasomeApi - Python Library For Haasonline Local API
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 immediatly.
WARNING: Has of the version 188.8.131.52 release the api has changed with haasonline software. If you are using a version prior to 184.108.40.206 you will also need to use a older version of the api. If you attempt to use version 220.127.116.11 of the haasomeapi on a haas version older than 2.3.1 it will not work correctly.
A Python library to access the Local Api on the Haasonline Trading Platform. 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)