LiquidityResult#

API documentation for tradingstrategy.liquidity.LiquidityResult Python class in Trading Strategy framework.

class LiquidityResult[source]#

Bases: object

Server-reply for live queried liquidity data.

__init__(liquidity_events)#
Parameters:

liquidity_events (List[XYLiquidity]) –

Return type:

None

Methods

__init__(liquidity_events)

from_dict(kvs, *[, infer_missing])

from_json(s, *[, parse_float, parse_int, ...])

schema(*[, infer_missing, only, exclude, ...])

sort_by_timestamp()

In-place sorting of candles by their timestamp.

to_dict([encode_json])

to_json(*[, skipkeys, ensure_ascii, ...])

Attributes

liquidity_events

A bunch of candles.

liquidity_events: List[XYLiquidity]#

A bunch of candles. Candles are unordered and subject to client side sorting. Multiple pairs and chains may be present in candles.

sort_by_timestamp()[source]#

In-place sorting of candles by their timestamp.

__init__(liquidity_events)#
Parameters:

liquidity_events (List[XYLiquidity]) –

Return type:

None