koapy.backtrader.KiwoomOpenApiPlusStore

Module Contents

Classes

HistoricalPriceRecord

Built-in immutable sequence.

API

MetaSingleton

MetaKiwoomOpenApiPlusStore

KiwoomOpenApiPlusStore

exception koapy.backtrader.KiwoomOpenApiPlusStore.KiwoomOpenApiPlusJsonError(code, message=None)[source]

Bases: koapy.backend.kiwoom_open_api_plus.core.KiwoomOpenApiPlusError.KiwoomOpenApiPlusNegativeReturnCodeError

Common base class for all non-exit exceptions.

error_response(description=None)[source]
exception koapy.backtrader.KiwoomOpenApiPlusStore.KiwoomOpenApiPlusTimeFrameError[source]

Bases: KiwoomOpenApiPlusJsonError

Common base class for all non-exit exceptions.

class koapy.backtrader.KiwoomOpenApiPlusStore.HistoricalPriceRecord[source]

Bases: collections.namedtuple('HistoricalPriceRecord', ['time', 'open', 'high', 'low', 'close', 'volume'])

Built-in immutable sequence.

If no argument is given, the constructor returns an empty tuple. If iterable is specified the tuple is initialized from iterable’s items.

If the argument is a tuple, the return value is the same object.

classmethod from_tuple(tup)[source]
classmethod records_from_dataframe(df)[source]
classmethod dict_records_from_dataframe(df)[source]
class koapy.backtrader.KiwoomOpenApiPlusStore.API(context)[source]
get_instruments_original(account, instruments)[source]
get_instruments(account, instruments)[source]
get_history(trcode, inputs, dtbegin=None, dtend=None)[source]
get_positions(account)[source]
get_account(account)[source]
create_order(account, **kwargs)[source]
close_order(account, oid, size, dataname)[source]
get_today_quotes_by_code(codes=None)[source]
class koapy.backtrader.KiwoomOpenApiPlusStore.MetaSingleton(clsname, bases, dct)[source]

Bases: backtrader.metabase.MetaParams

class koapy.backtrader.KiwoomOpenApiPlusStore.MetaKiwoomOpenApiPlusStore(clsname, bases, dct)[source]

Bases: type(Logging), MetaSingleton

class koapy.backtrader.KiwoomOpenApiPlusStore.KiwoomOpenApiPlusStore(context=None)[source]

Bases: koapy.utils.logging.Logging.Logging

BrokerCls[source]
DataCls[source]
params = [['account', ''], ['account_tmout', 60.0]][source]
classmethod getdata(*args, **kwargs)[source]
classmethod getbroker(*args, **kwargs)[source]
start(data=None, broker=None)[source]
initial_today_historical_msg(data=None)[source]
stop()[source]
put_notification(msg, *args, **kwargs)[source]
get_notifications()[source]
timeoffset()[source]
get_granularity(timeframe, compression, default=None)[source]
get_instrument(dataname)[source]
streaming_events(tmout=None)[source]
candles(dataname, dtbegin, dtend, timeframe, compression)[source]
streaming_prices(dataname, tmout=None)[source]
get_cash()[source]
get_value()[source]
get_positions()[source]
broker_threads()[source]
order_create(order, stopside=None, takeside=None, **kwargs)[source]
order_cancel(order)[source]