Skip to content

Releases: fireflyprotocol/firefly-client-python

v0.6.1

23 Oct 08:40
3c658d2
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.6.0...v0.6.1

v0.6.0

07 Jul 21:54
acfc33c
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.2.2...v0.6.0

Get Orders - v0.2.2

07 Apr 20:14
fabfa01
Compare
Choose a tag to compare

Updated GetOrdersRequest interface to have additional optional parameters:

  • orderType
  • orderHashes
  • orderId

Cancel Orders - v0.2.0

31 Mar 19:16
9e510d7
Compare
Choose a tag to compare

The client now allows users to specify the status of orders that they wish to cancel. In previous versions of the client cancel_all_open_orders method was hardcoded to only cancel the OPEN and PARTIAL_FILLED orders but the extension allows users to specify any status of orders that they want to cancel.

Breaking Changes:

  • cancel_all_open_orders is now renamed to cancel_all_orders.
  • The method cancel_all_orders now accepts a mendatory parameter status: List[ORDER_STATUS]. All orders for the provided order statuses will be fetched, signed and sent for cancellation on exchange.

Sub Account - v0.1.3

30 Mar 12:20
c1c7a79
Compare
Choose a tag to compare

Added missing functionality to the client to allow sub accounts to perform actions on parent's behalf.

  • Updated the following interfaces with an optional parentAddress field:

    • GetFundingHistoryRequest
    • GetOrderRequest
    • GetUserTradesRequest
    • GetPositionRequest
    • OrderCancelSignatureRequest
  • Updated following methods to expect an optional parentAddress field

    • get_user_account_data
    • get_user_leverage
    • create_signed_cancel_order
    • create_signed_cancel_orders
    • cancel_all_open_orders
    • adjust_leverage
    • adjust_margin
  • Added ARB-PERP to enums

Async Calls

23 Mar 00:12
0f6ac97
Compare
Choose a tag to compare
  • Switched to using aiohttp in api_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 called init()
  • 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.