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

Uploaded Python 3

File details

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

File metadata

  • Download URL: firefly_exchange_client-0.0.7.tar.gz
  • Upload date:
  • Size: 48.2 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.7.tar.gz
Algorithm Hash digest
SHA256 4ae44f4e5e9451c4c2218f8db1fa0bfc45a9ca5d71a14f3c280ac8fa88910c03
MD5 4b81faf69aa20f17fcb982d1d07dcc67
BLAKE2b-256 42a640e5f3d20ce2fedba2e45e94eabe501c7c3ff4f68e05976cc9af464a4fbd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for firefly_exchange_client-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 f5800142ab684c4e6a26678d43444dbf5b9ce7f5bc847dda00df250d5e9554b1
MD5 6cc40843abf13f7510ee83c61c12967d
BLAKE2b-256 44eb4010599df199314e422a739848381146cf51d6dfbfabb31dadd892e36a92

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