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.5.tar.gz (47.8 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.5-py3-none-any.whl (50.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: firefly_exchange_client-0.0.5.tar.gz
  • Upload date:
  • Size: 47.8 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.5.tar.gz
Algorithm Hash digest
SHA256 9907c68269e0f615372619d291231a024b62be154b03de5543c7ecfdb9ac7bc8
MD5 3fd38a9f7c1cc10c7d01eb0410991580
BLAKE2b-256 ee7623f98d730360819a5b94f2811ff810c21d493105e2bdb6faaf45a20d3d5e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for firefly_exchange_client-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f6f98621e1087b6bbdef9dd7793aaf128d57c23437882a67033254b301f81f29
MD5 713f894b9ba91eb44d5f9d2bcb15628c
BLAKE2b-256 19b59d5eb7a6ca90bf4f970e22dabe786846ea92eb558374b629c9a207bc13df

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