Skip to main content

Library to interact with firefly exchange protocol including its off-chain api-gateway and on-chain contracts

Project description

Firefly Client Library - Python

Python client library to interact with firefly api gateway to place orders on firefly exchange and to interact with on-chain firefly contracts.

How to use

from firefly_exchange_client import FireflyClient
from constants import Networks
from pprint import pprint

def main():

  # initialize client
  client = FireflyClient(
        True, # agree to terms and conditions
        Networks["TESTNET_ARBITRUM"], # network to connect with
        "0x.....", # private key of wallet
        True, # on boards user on firefly. Must be set to true for first time use
        )

  print('Account Address:', client.get_public_address());

  # # gets user account data on-chain
  data = client.get_user_account_data()

  pprint(data)

Look at example directory to learn more about client usage.

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

firefly_exchange_client-0.0.6.tar.gz (48.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

firefly_exchange_client-0.0.6-py3-none-any.whl (50.4 kB view details)

Uploaded Python 3

File details

Details for the file firefly_exchange_client-0.0.6.tar.gz.

File metadata

  • Download URL: firefly_exchange_client-0.0.6.tar.gz
  • Upload date:
  • Size: 48.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for firefly_exchange_client-0.0.6.tar.gz
Algorithm Hash digest
SHA256 660c1d6c6ad13562b35f2558dc9572622b1c2738168e7c116a62251ee665d818
MD5 9658cee91d1cbd38fba94c50cae57b92
BLAKE2b-256 e95f317a9963e001ee994de86b3d27ee8988d0d2945098a9823a609710b6e40d

See more details on using hashes here.

File details

Details for the file firefly_exchange_client-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for firefly_exchange_client-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9aa531d231458cdb7b828f469b08a2936f79cada87a28eca00ffa938de3edbb2
MD5 084dcf6106c062f92ab1830f3ae19dbf
BLAKE2b-256 2bca1875a24eb42d80ae66f6f07ceed031873f3c99c5927c29696ca0d0d14915

See more details on using hashes here.

Supported by

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