the instrument for which data is requested. For a list of all
available instruments for historical data, use
get_instruments_for_candles().
If the value is equal to ‘’ (default), offer_id must have a value.
If both, instrument and offer_id are given, the value of instrument
is used.

offer_id: integer (default None):

the id of the instrument for which data is requested as given in the
offer trading table as given by get_offers(). If offer_id is equal
to None (default), the parameter instrument must have a value.
If both, instrument and offer_id are given, the value of instrument
is used.

period: string,

the granularity of the data. Must be one of
‘m1’, ‘m5’, ‘m15’, ‘m30’, ‘H1’, ‘H2’, ‘H3’, ‘H4’, ‘H6’, ‘H8’,
‘D1’, ‘W1’, or ‘M1’.

number: integer (default 10),

the number of candles to receive.

start: datetime.datetime, datetime.date or string (defaut None),

the first date to receive data for. If it is a string, the date is
in format ‘YYYY-MM-DD hh:mm’ or ‘YYYY-MM-DD’.

end: datetime.datetime, datetime.date or string (default None),

the last date to receive data for. If it is a string, the date is
in format ‘YYYY-MM-DD hh:mm’ or ‘YYYY-MM-DD’.

with_index: boolean (default True),

whether the column ‘date’ should server as index in the resulting
pandas.DataFrame.

columns: list (default list()),

a list of column labels the result should include. If empty, all
columns are returned.

the model, must be one of [‘Offer’, ‘Account’, ‘Order’,
‘OpenPosition’, ‘ClosedPosition’, ‘Summary’, ‘Properties’,
‘LeverageProfile’].

add_callbacks: list of callables,

all methods in that list will be called for every incoming dataset
of the model. Such a method has to accept two positional
arguments, data and dataframe, say. The first should be a json like
object with the new data received by the stream and the second
should be a Pandas DataFrame with the collected data.

the symbol of the instrument in question as given by
get_instruments().

add_callbacks: list of callables,

all methods in that list will be called for every incoming dataset
of the instrument. Such a method has to accept two positional
arguments, data and dataframe, say. The first should be a json like
object with the new price data received by the stream and the
second should be a Pandas DataFrame with the collected price data
as given by get_prices().