Skip to content

BestPrice

Thiago W. Alves edited this page Mar 14, 2019 · 14 revisions

Constructors:

Member Functions:


BestPrice(globalBidPrice, globalBidSize, globalAskPrice, globalAskSize, localBidPrice, localBidSize, localAskPrice, localAskSize)

Parameters

  • globalBidPrice : float

    Current best global bid price.

  • globalBidSize : int

    Current available volume at the best global bid price level (1 size = 100 shares).

  • globalAskPrice : float

    Current best global ask price.

  • globalAskSize : int

    Current available volume at the best global ask price level (1 size = 100 shares).

  • localBidPrice : float

    Current best local bid price.

  • localBidSize : int

    Current available volume at the best local bid price level (1 size = 100 shares).

  • localAskPrice : float

    Current best local ask price.

  • localAskSize : int

    Current available volume at the best local ask price level (1 size = 100 shares).

Return Value

None


getBidPrice()

This method returns the best bid price.

Parameters

NA

Return Value

float : Current best bid price, among both global and local order books.


getBidSize()

This method returns the available volume at the best bid price level.

Parameters

NA

Return Value

int : Current available volume at the best bid price level, among both global and local order books (1 size = 100 shares).


getAskPrice()

This method returns the best ask price.

Parameters

NA

Return Value

float : Current best ask price, among both global and local order books.


getAskSize()

This method returns the available volume at the best ask price level.

Parameters

NA

Return Value

int : Current available volume at the best ask price level, among both global and local order books (1 size = 100 shares).


getGlobalBidPrice()

This method returns the best global bid price.

Parameters

NA

Return Value

float : Current best global bid price.


getGlobalBidSize()

This method returns the available volume at the best global bid price level.

Parameters

NA

Return Value

int : Current available volume at the best global bid price level (1 size = 100 shares).


getGlobalAskPrice()

This method returns the best global ask price.

Parameters

NA

Return Value

float : Current best global ask price.


getGlobalAskSize()

This method returns the available volume at the best global ask price level.

Parameters

NA

Return Value

int : Current available volume at the best global ask price level (1 size = 100 shares).


getLocalBidPrice()

This method returns the best local bid price.

Parameters

NA

Return Value

float : Current best local bid price.


getLocalBidSize()

This method returns the available volume at the best local bid price level.

Parameters

NA

Return Value

int : Current available volume at the best local bid price level (1 size = 100 shares).


getLocalAskPrice()

This method returns the best local ask price.

Parameters

NA

Return Value

float : Current best local ask price.


getLocalAskSize()

This method returns the available volume at the best local ask price level.

Parameters

NA

Return Value

int : Current available volume at the best local ask price level (1 size = 100 shares).

Clone this wiki locally