Skip to content

Incorrect funding ticker fields bidSize and bidPeriod, askSize and askPeriod. frrAmountAvailable is missing #58

@dutu

Description

@dutu

Issue type

  • bug
  • missing functionality
  • performance
  • feature request

Brief description

Funding ticker fields bidSize and bidPeriod are swapped around.
https://github.com/bitfinexcom/bfx-api-node-models/blob/master/lib/funding_ticker.js#L9-L24

Correct position for bidSize is 4 and for bidPeriod is 3.
Similarly, correct position for askSize is 7 and for askPeriod is 6.

Also, field frrAmountAvailable is missing.

Const fields should be:

const fields = {
  symbol: 0,
  frr: 1,
  bid: 2,
  bidSize: 4,
  bidPeriod: 3,
  ask: 5,
  askSize: 7,
  askPeriod: 6,
  dailyChange: 8,
  dailyChangePerc: 9,
  lastPrice: 10,
  volume: 11,
  high: 12,
  low: 13,
  frrAmountAvailable: 14,
}

Reference: https://docs.bitfinex.com/reference#ws-public-ticker

Steps to reproduce

Additional Notes:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions