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 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 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)
Disclaimer: This third party software is provided by the author "as is"' and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the author be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.
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.