Options
All
  • Public
  • Public/Protected
  • All
Menu

Module quote

Index

Functions

Const getAskBidPrices

  • getAskBidPrices(symbolObj: SymbolObject, callback?: TigerBridge.Callback): Promise<Response & object>
  • 获取买卖盘信息

    Parameters

    • symbolObj: SymbolObject
    • Optional callback: TigerBridge.Callback

    Returns Promise<Response & object>

Const getChartData

  • getChartData(opts: object, callback?: TigerBridge.Callback): Promise<Response & object>
  • 获取订阅分时图表数据, 切换类型时要记得先取消订阅

    Parameters

    • opts: object
      • Optional beginTime?: Date
      • Optional endTime?: Date
      • Optional market?: undefined | string
      • period: string
      • symbol: string
      • Optional tradingStatus?: undefined | number
    • Optional callback: TigerBridge.Callback

    Returns Promise<Response & object>

Const getCurrent

  • getCurrent(callback?: TigerBridge.Callback): Promise<Response & object>
  • 获取订阅当前打开的quote数据

    Parameters

    • Optional callback: TigerBridge.Callback

    Returns Promise<Response & object>

Const getDeepAskBidPrices

  • getDeepAskBidPrices(opts: object, callback?: TigerBridge.Callback): Promise<Response & object>
  • 获取美股Level2深度买卖盘信息 type: 报价来源:交易所名称 arca / open-book / total-view level: 档位 买卖几档 5、10、40 props: askBidDepth / askBidHist / askBidBig三个任意组合 逗号分隔

    Parameters

    • opts: object
      • level: number
      • market: string
      • props: string
      • symbol: string
      • type: string
    • Optional callback: TigerBridge.Callback

    Returns Promise<Response & object>

Const getDetail

  • 获取订阅股票详细数据

    Parameters

    • opts: SymbolObject
    • Optional callback: TigerBridge.Callback

    Returns Promise<Response & object>

Const getFUTPricePoints

  • getFUTPricePoints(opts: object, callback?: TigerBridge.Callback): Promise<Response & object>
  • 获取期货行情分价图数据

    Parameters

    • opts: object
      • Optional size?: undefined | number
      • sortType: number
      • symbol: string
    • Optional callback: TigerBridge.Callback

    Returns Promise<Response & object>

Const getFUTRelateQuotes

  • getFUTRelateQuotes(opts: object, callback?: TigerBridge.Callback): Promise<Response & object>
  • 获取期货的关联行情

    Parameters

    • opts: object
      • secType: string
      • symbol: string
      • symbolId: string
    • Optional callback: TigerBridge.Callback

    Returns Promise<Response & object>

Const getFundamental

  • getFundamental(opts: object, callback?: TigerBridge.Callback): Promise<Response & object>
  • 获取个股统计信息,主要指标等

    Parameters

    • opts: object
      • Optional expire?: undefined | string
      • Optional isEtf?: undefined | false | true
      • Optional market?: undefined | string
      • Optional right?: undefined | string
      • Optional secType?: undefined | string
      • Optional strike?: undefined | string
      • symbol: string
    • Optional callback: TigerBridge.Callback

    Returns Promise<Response & object>

Const getFutKChartData

  • getFutKChartData(opts: object, callback?: TigerBridge.Callback): Promise<Response & object>
  • 获取订阅分时图表数据, 切换类型时要记得先取消订阅

    Parameters

    • opts: object
      • contractCode: string
      • Optional index?: undefined | number
      • Optional offset?: undefined | number
      • period: string
      • Optional time?: Date
    • Optional callback: TigerBridge.Callback

    Returns Promise<Response & object>

Const getKChartData

  • getKChartData(opts: SymbolObject & object, callback?: TigerBridge.Callback): Promise<Response & object>
  • 获取订阅非期货K线图表数据, 切换类型时要记得先取消订阅

    Parameters

    • opts: SymbolObject & object
    • Optional callback: TigerBridge.Callback

    Returns Promise<Response & object>

Const getMarketStatus

  • getMarketStatus(market: string, callback?: TigerBridge.Callback): Promise<Response & object>
  • 获取市场状态

    Parameters

    • market: string

      市场代码

    • Optional callback: TigerBridge.Callback

    Returns Promise<Response & object>

Const getPricePoints

  • 获取股票分价图数据

    Parameters

    • opts: SymbolObject
    • Optional callback: TigerBridge.Callback

    Returns Promise<Response & object>

Const getRecentViewList

  • getRecentViewList(callback?: TigerBridge.Callback): Promise<Response & object>
  • 获取用户最近浏览

    Parameters

    • Optional callback: TigerBridge.Callback

    Returns Promise<Response & object>

Const getRelateStocks

  • getRelateStocks(opts: object, callback?: TigerBridge.Callback): Promise<Response & object>
  • 获取个股的关联股票

    Parameters

    • opts: object
      • market: string
      • symbol: string
    • Optional callback: TigerBridge.Callback

    Returns Promise<Response & object>

Const getTradeTick

  • getTradeTick(opts: object, callback?: TigerBridge.Callback): Promise<Response & object>
  • 获取逐笔成交列表

    Parameters

    • opts: object
      • Optional beginIndex?: undefined | number
      • Optional count?: undefined | number
      • Optional endIndex?: undefined | number
      • market: string
      • symbol: string
    • Optional callback: TigerBridge.Callback

    Returns Promise<Response & object>

Const open

  • 打开一个股票、期权、涡轮、指数、ETF、期货等

    Parameters

    Returns Promise<Response & object>