Skip to main content

hashkey crypto exchange api client

Project description

hashkey-python

Python SDK (sync and async) for Hashkey cryptocurrency exchange with Rest and WS capabilities.

You can check the SDK docs here: SDK You can check Hashkey's docs here: Docs

This package derives from CCXT and allows you to call pretty much every endpoint by either using the unified CCXT API or calling the endpoints directly

Installation

pip install hashkey

Usage

Sync

from hashkey import HashkeySync

def main():
    instance = HashkeySync({})
    ob =  instance.fetch_order_book("BTC/USDC")
    print(ob)
    #
    # balance = instance.fetch_balance()
    # order = instance.create_order("BTC/USDC", "limit", "buy", 1, 100000)

Async

import asyncio
from hashkey import HashkeyAsync

async def main():
    instance = HashkeyAsync({})
    ob =  await instance.fetch_order_book("BTC/USDC")
    print(ob)
    #
    # balance = await instance.fetch_balance()
    # order = await instance.create_order("BTC/USDC", "limit", "buy", 1, 100000)

asyncio.run(main())

Websockets

from hashkey import HashkeyWs

async def main():
    instance = HashkeyWs({})
    while True:
        ob = await instance.watch_order_book("BTC/USDC")
        print(ob)
        # orders = await instance.watch_orders("BTC/USDC")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hashkey-0.0.7.tar.gz (536.3 kB view details)

Uploaded Source

Built Distribution

hashkey-0.0.7-py3-none-any.whl (1.5 kB view details)

Uploaded Python 3

File details

Details for the file hashkey-0.0.7.tar.gz.

File metadata

  • Download URL: hashkey-0.0.7.tar.gz
  • Upload date:
  • Size: 536.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for hashkey-0.0.7.tar.gz
Algorithm Hash digest
SHA256 203f38cd9cda644622ec0848336e180789799377248fcd0e02b577a8d1fcfb72
MD5 4886d6bbea79c7f0e65b09225f454b13
BLAKE2b-256 a5287984a34927e28681838e7683a4d37b98c2e6c92fcf874d94d91e70ebe035

See more details on using hashes here.

File details

Details for the file hashkey-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: hashkey-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 1.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for hashkey-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 c55955bea88e87a92bdca08064cbb685215a4ce0a37681e768bdac54ef025d81
MD5 070942d30f07d86e061fb0a6dd79c3d5
BLAKE2b-256 7a68d9c741300f7237d3412d6eddf5967cce4e0f7e18aac9d9d1cdcb054bc060

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page