Skip to content

FuturesPartialDepth #519

Open
Open
@hdmark

Description

@hdmark

Great project btw!

In the index.d.ts , futuresPartialDepth takes in a depth: PartialDepth in the callback, but then it returns something different.
I changed it and it seemed to work for me :

 futuresPartialDepth: (
      options: { symbol: string; level: number } | { symbol: string; level: number }[],
      callback: (depth: FuturesPartialDepth) => void,
      transform?: boolean,
    ) => ReconnectingWebSocketHandler

and added

  export interface FuturesPartialDepth {
    level: number,
    eventType: string,
    eventTime:  number,
    transactionTime: number,
    symbol: string,
    firstUpdateId: number,
    finalUpdateId: number,
    prevFinalUpdateId: number,
    bidDepth:  BidDepth[],
    askDepth:  BidDepth[],
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions