:py:mod:`koapy.backtrader.KiwoomOpenApiPlusStore`
=================================================

.. py:module:: koapy.backtrader.KiwoomOpenApiPlusStore


Module Contents
---------------

Classes
~~~~~~~

.. autoapisummary::

   koapy.backtrader.KiwoomOpenApiPlusStore.HistoricalPriceRecord
   koapy.backtrader.KiwoomOpenApiPlusStore.API
   koapy.backtrader.KiwoomOpenApiPlusStore.MetaSingleton
   koapy.backtrader.KiwoomOpenApiPlusStore.MetaKiwoomOpenApiPlusStore
   koapy.backtrader.KiwoomOpenApiPlusStore.KiwoomOpenApiPlusStore




.. py:exception:: KiwoomOpenApiPlusJsonError(code, message=None)

   Bases: :py:obj:`koapy.backend.kiwoom_open_api_plus.core.KiwoomOpenApiPlusError.KiwoomOpenApiPlusNegativeReturnCodeError`

   Common base class for all non-exit exceptions.

   .. py:method:: error_response(description=None)



.. py:exception:: KiwoomOpenApiPlusTimeFrameError

   Bases: :py:obj:`KiwoomOpenApiPlusJsonError`

   Common base class for all non-exit exceptions.


.. py:class:: HistoricalPriceRecord

   Bases: :py:obj:`collections.namedtuple`\ (\ :py:obj:`'HistoricalPriceRecord'`\ , [\ :py:obj:`'time'`\ , :py:obj:`'open'`\ , :py:obj:`'high'`\ , :py:obj:`'low'`\ , :py:obj:`'close'`\ , :py:obj:`'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.

   .. py:method:: from_tuple(tup)
      :classmethod:


   .. py:method:: records_from_dataframe(df)
      :classmethod:


   .. py:method:: dict_records_from_dataframe(df)
      :classmethod:



.. py:class:: API(context)

   .. py:method:: get_instruments_original(account, instruments)


   .. py:method:: get_instruments(account, instruments)


   .. py:method:: get_history(trcode, inputs, dtbegin=None, dtend=None)


   .. py:method:: get_positions(account)


   .. py:method:: get_account(account)


   .. py:method:: create_order(account, **kwargs)


   .. py:method:: close_order(account, oid, size, dataname)


   .. py:method:: get_today_quotes_by_code(codes=None)



.. py:class:: MetaSingleton(clsname, bases, dct)

   Bases: :py:obj:`backtrader.metabase.MetaParams`


.. py:class:: MetaKiwoomOpenApiPlusStore(clsname, bases, dct)

   Bases: :py:obj:`type`\ (\ :py:obj:`Logging`\ ), :py:obj:`MetaSingleton`


.. py:class:: KiwoomOpenApiPlusStore(context=None)

   Bases: :py:obj:`koapy.utils.logging.Logging.Logging`

   .. py:attribute:: BrokerCls
      

      

   .. py:attribute:: DataCls
      

      

   .. py:attribute:: params
      :annotation: = [['account', ''], ['account_tmout', 60.0]]

      

   .. py:method:: getdata(*args, **kwargs)
      :classmethod:


   .. py:method:: getbroker(*args, **kwargs)
      :classmethod:


   .. py:method:: start(data=None, broker=None)


   .. py:method:: initial_today_historical_msg(data=None)


   .. py:method:: stop()


   .. py:method:: put_notification(msg, *args, **kwargs)


   .. py:method:: get_notifications()


   .. py:method:: timeoffset()


   .. py:method:: get_granularity(timeframe, compression, default=None)


   .. py:method:: get_instrument(dataname)


   .. py:method:: streaming_events(tmout=None)


   .. py:method:: candles(dataname, dtbegin, dtend, timeframe, compression)


   .. py:method:: streaming_prices(dataname, tmout=None)


   .. py:method:: get_cash()


   .. py:method:: get_value()


   .. py:method:: get_positions()


   .. py:method:: broker_threads()


   .. py:method:: order_create(order, stopside=None, takeside=None, **kwargs)


   .. py:method:: order_cancel(order)



