Async Calls
- Switched to using
aiohttp
inapi_service.py
for get/post/delete calls to exchange. - Removed async call to
get_contract_addresses()
method from exchange client constructor - Added a new async
init()
method to the client that must be invoked after creating a client instance. - Added a top-level module, all enums, constants, etc.. are now housed in
firefly_exchange_client
directory in site-packages. This implies that all imports must be made from firefly_exchange_client
Breaking Change:
- The number of arguments to client initialization are reduced to 3. The last argument
user_onboarding
has been removed from the constructor and is now part of the new async initialization method calledinit()
- After client construction, the client must be initialized using
await client.init()
, without this, the user is not onboarded on to exchange and the contract addresses are not fetched from server.