人工智能(Artificial Intelligence,简称AI)是指计算机系统在完成类似人类智力所需的任务时所表现出来的能力。它是一种复杂的技术,通过将大量的数据输入到算法中进行学习,不断调整和改进自己的算法,从而不断优化其性能。
数字藏品是指使用区块链技术,对应特定的作品、艺术品生成的唯一数字凭证,在保护其数字版权的基础上,实现真实可信的数字化发行、购买、收藏和使用
case SHORT_TYPE:{
this->__unlockShort();
this->tqz_marketMaking(this->getLongOffsetValue(),this->getShortOffsetValue());
break;
}
case COVER_TYPE:{关于区块链项目技术开发唯:MrsFu123,代币发行、dapp智能合约开发、链游开发、多链钱包开发
交易所开发、量化合约开发、互助游戏开发、Nft数字藏品开发、众筹互助开发、元宇宙开发、swap开发、
链上合约开发、ido开发、商城开发等,开发过各种各样的系统模式,更有多种模式、制度、案例、后台等,成熟技术团队,欢迎实体参考。
std::string orderComment(this->_re_connect_ready?"code_coverOrder_reSend":"code_coverOrder_reConnect_reSend");
if(this->_code_cover_lock)//re send code cover order.
this->tqz_cover(this->_code,UNIT,OPEN_CLOSE_POSITION_OFFSET_TICKS,orderComment.c_str());
break;
}开发数字藏品案例I35逻辑7O98开发O7I8
default:
break;
}
}else{
this->_ctx->stra_log_text("[WtHftStraDemo::on_order]localid is not code,stdCode:%s,localid:%d",stdCode,localid);
}
}
void WtHftStraDemo::on_channel_ready(HftStraBaseCtx*ctx){
std::cout<<"HFT_strategy code:"<<this->_code<<"nn"<<std::endl;
this->_tradeChange_log_filename=this->__tqz_getLogFileName(TRADE_CHANGE_TYPE);
this->_channel_ready=true;
this->__initSessionStatus(RE_CONNECT_STATUS);
}
void WtHftStraDemo::on_entrust(uint32_t localid,bool bSuccess,const charmessage,const charuserTag){
this->_ctx->stra_log_text("WtHftStraDemo::on_entrust bSuccess:%d,message:%snn",bSuccess,message);
TQZOrderType orderType=this->__tqz_getOrderType(localid);
switch(orderType){
case BUY_TYPE:
this->__unlockBuy();
break;
case SELL_TYPE:
this->__unlockSell();
break;
case SHORT_TYPE:
this->__unlockShort();
break;
case COVER_TYPE:
this->__unlockCover();
break;
default:
break;
}
}
void WtHftStraDemo::on_channel_lost(HftStraBaseCtx*ctx){
this->_channel_ready=false;
}
void WtHftStraDemo::on_bar(HftStraBaseCtxctx,const charcode,const charperiod,uint32_t times,WTSBarStructnewBar){
}
void WtHftStraDemo::on_position(HftStraBaseCtxctx,const charstdCode,bool isLong,double prevol,double preavail,double newvol,double newavail){
}
void WtHftStraDemo::tqz_buy(const std::string code,const double lots,const int offsetTicks,const std::string orderComment){
if(!this->__isEntrustable(code))
return;
this->__lockBuy();
//send buy order&update local var.
double buyOrderPrice=this->__tqz_getLongPrice(code,offsetTicks);
uint32_t buyOrderLocalid=this->_ctx->stra_enter_long(code.c_str(),buyOrderPrice,lots,orderComment.c_str());
std::string currentMarketTimeString=this->__tqz_getCurrentMarketTime();
std::string sendOrderTimeString=this->__tqz_getCurrentTime();
this->_code_buy_order=buyOrderLocalid;
this->_code_buy_orders.insert(buyOrderLocalid);
if(this->_record_hft_log)//recode log or not.
this->_log_message_map[buyOrderLocalid]=this->__tqz_getNewLogMessage(
code,
buyOrderLocalid,
this->_ctx->stra_get_price(code.c_str()),
buyOrderPrice,
"buy_order",
currentMarketTimeString,
sendOrderTimeString,
orderComment
);
}