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.9.tar.gz (536.3 kB view details)

Uploaded Source

Built Distribution

hashkey-0.0.9-py3-none-any.whl (659.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hashkey-0.0.9.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.9.tar.gz
Algorithm Hash digest
SHA256 7b650cb008018e8ccc7f0bd9ec85eee6cecbefa20880986a7230b50275ce54a5
MD5 8393d73971ff4dc0b6d6a7ae497edd59
BLAKE2b-256 d914fedb30039598a7ee43669d91e1e39c1e1af2d7cfa2ddd6e8e25256caa6a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hashkey-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 659.4 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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 394772b74c430bc134e60f4d4a68d0cb0be8e5e9b3862ed05d5d7d8f6b40b40d
MD5 e54d6d38be006e53b6b9dfa6bf9c4a09
BLAKE2b-256 0bc414781f597e66a6c67e8adc08c26d4601b82fa2d43de99ab7e861975a7956

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