text: #pragma once
  #include "../WtCore/HftStraBaseCtx.h"
  
  USING_NS_WTP;
  
  class ExpHftContext : public HftStraBaseCtx
  {
  public:
  	ExpHftContext(WtHftEngine* engine, const char* name, bool bAgent):HftStraBaseCtx(engine, name, bAgent){}
  	virtual ~ExpHftContext(){}
  
  public:
  	virtual void on_bar(const char* code, const char* period, uint32_t times, WTSBarStruct* newBar) override;
  
  	virtual void on_channel_lost() override;
  
  	virtual void on_channel_ready() override;
  
  	virtual void on_entrust(uint32_t localid, const char* stdCode, bool bSuccess, const char* message) override;
  
  	virtual void on_init() override;
  
  	virtual void on_session_begin(uint32_t uTDate) override;
  
  	virtual void on_session_end(uint32_t uTDate) override;
  
  	virtual void on_order(uint32_t localid, const char* stdCode, bool isBuy, double totalQty, double leftQty, double price, bool isCanceled) override;
  
  	virtual void on_tick(const char* code, WTSTickData* newTick) override;
  
  	virtual void on_order_queue(const char* stdCode, WTSOrdQueData* newOrdQue) override;
  
  	virtual void on_order_detail(const char* stdCode, WTSOrdDtlData* newOrdDtl) override;
  
  	virtual void on_transaction(const char* stdCode, WTSTransData* newTrans) override;
  
  	virtual void on_trade(uint32_t localid, const char* stdCode, bool isBuy, double vol, double price) override;
  
  	virtual void on_position(const char* stdCode, bool isLong, double prevol, double preavail, double newvol, double newavail, uint32_t tradingday) override;
  };
  
  