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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for firefly_exchange_client-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9907c68269e0f615372619d291231a024b62be154b03de5543c7ecfdb9ac7bc8 |
|
MD5 | 3fd38a9f7c1cc10c7d01eb0410991580 |
|
BLAKE2b-256 | ee7623f98d730360819a5b94f2811ff810c21d493105e2bdb6faaf45a20d3d5e |
Close
Hashes for firefly_exchange_client-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6f98621e1087b6bbdef9dd7793aaf128d57c23437882a67033254b301f81f29 |
|
MD5 | 713f894b9ba91eb44d5f9d2bcb15628c |
|
BLAKE2b-256 | 19b59d5eb7a6ca90bf4f970e22dabe786846ea92eb558374b629c9a207bc13df |