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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ae44f4e5e9451c4c2218f8db1fa0bfc45a9ca5d71a14f3c280ac8fa88910c03 |
|
MD5 | 4b81faf69aa20f17fcb982d1d07dcc67 |
|
BLAKE2b-256 | 42a640e5f3d20ce2fedba2e45e94eabe501c7c3ff4f68e05976cc9af464a4fbd |
Close
Hashes for firefly_exchange_client-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5800142ab684c4e6a26678d43444dbf5b9ce7f5bc847dda00df250d5e9554b1 |
|
MD5 | 6cc40843abf13f7510ee83c61c12967d |
|
BLAKE2b-256 | 44eb4010599df199314e422a739848381146cf51d6dfbfabb31dadd892e36a92 |