这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@ZIMkaRU
Copy link
Member

@ZIMkaRU ZIMkaRU commented Jun 8, 2023

This PR adds currency movement info endpoint https://docs.bitfinex.com/reference/movement-info. Due to the changed signatures of the bitfinex-api-node library methods in the new major version, to add this endpoint, the way of passing parameters to all bfx api methods is also changed/refactored


Basic changes:

  • adds getMovementInfo endpoint
  • reworks params processing to support new bfx rest api signatures
  • bumps bitfinex-api-node version up to 6.0.0
  • adds test coverage for getMovementInfo endpoint

Request example:

{
  "auth": {
    "apiKey": "user-api-key",
    "apiSecret": "user-api-secret"
  },
  "method": "getMovementInfo",
  "params": {
    "id": 12345678
  }
}

Response example:

{
  "jsonrpc": "2.0",
  "result": {
    "id": 12345678,
    "currency": "UST",
    "currencyName": "TETHERUSE",
    "remark": "0x123456789a12abc1abcde1234ab1a1234abcefg1, canceled by User",
    "mtsStarted": 1614066589000,
    "mtsUpdated": 1614066972000,
    "status": "CANCELED",
    "amount": -21.123,
    "fees": -12.321,
    "destinationAddress": "0x123456789a12abc1abcde1234ab1a1234abcefg1",
    "memo": null,
    "transactionId": null,
    "note": "test 1",
    "bankFees": 0,
    "bankRouterId": null,
    "externalBankMovId": null,
    "externalBankMovStatus": null,
    "externalBankMovDescription": null,
    "externalBankAccInfo": null,
    "_isDataFromApiV2": true
  },
  "id": null
}

Copy link
Contributor

@ezewer ezewer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants