| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265 |
- //----------------------------------------------------------------
- //Module Name: IOrderService
- //Purpose:
- //CopyRight: Muchinfo
- //History:
- //----------------------------------------------------------------
- //DateTime Author Description
- //----------------------------------------------------------------
- //2014-03-22 deng.yinping Create
- //----------------------------------------------------------------
- using Muchinfo.MTPClient.Data;
- using Muchinfo.MTPClient.Data.Enums;
- using Muchinfo.MTPClient.Data.Model;
- using Muchinfo.MTPClient.Data.Model.Account;
- using System;
- using System.Collections.Generic;
- using System.Collections.ObjectModel;
- namespace Muchinfo.MTPClient.IService
- {
- public interface IOrderService
- {
-
-
- /// <summary>
- /// 即期下单委托
- /// </summary>
- /// <param name="entrustOrder">委托内容</param>
- /// <param name="successAction">成功回应</param>
- /// <param name="errorAction">失败回应</param>
- void MakeMarketEntrustOrder(NewEntrustOrder entrustOrder, Action<OrderDetail> successAction,
- Action<ErrorEntity> errorAction);
- /// <summary>
- /// 竞价下单委托
- /// </summary>
- /// <param name="entrustOrder">委托内容</param>
- /// <param name="successAction">成功回应</param>
- /// <param name="errorAction">失败回应</param>
- void BidMarketEntrustOrder(NewEntrustOrder entrustOrder, Action<OrderDetail> successAction,
- Action<ErrorEntity> errorAction);
- /// <summary>
- /// 混合修改止损止盈
- /// </summary>
- /// <param name="entrustOrder">委托下单</param>
- /// <param name="successAction"></param>
- /// <param name="errorAction"></param>
- void MixModifyEntrustOrder(NewEntrustOrder entrustOrder, Action<OrderDetail> successAction,
- Action<ErrorEntity> errorAction);
-
- /// <summary>
- /// 混合下单委托
- /// </summary>
- /// <param name="entrustOrder">委托内容</param>
- /// <param name="successAction">成功回应</param>
- /// <param name="errorAction">失败回应</param>
- void MixMarketEntrustOrder(NewEntrustOrder entrustOrder, Action<OrderDetail> successAction,
- Action<ErrorEntity> errorAction);
- /// <summary>
- /// 撤单
- /// </summary>
- /// <param name="entrustOrder"></param>
- /// <param name="successAction"></param>
- /// <param name="errorAction"></param>
- void CancelOrder(NewEntrustOrder entrustOrder, Action successAction,
- Action<ErrorEntity> errorAction);
- void CancelOrderWithoutResult(NewEntrustOrder entrustOrder);
- /// <summary>
- /// 查询持仓单,更新本地缓存
- /// </summary>
- /// <param name="statement">sqlId</param>
- /// <param name="queryCommonParams">参数</param>
- /// <param name="successAction">成功返回</param>
- /// <param name="errorAction">失败返回</param>
- void QueryHoldingPosistion(string statement, List<QueryCommonParam> queryCommonParams, Action<List<HoldingSummary>> successAction, Action<ErrorEntity> errorAction);
- /// <summary>
- /// 查询持仓汇总
- /// </summary>
- /// <param name="statement"></param>
- /// <param name="queryCommonParams"></param>
- /// <param name="successAction"></param>
- /// <param name="errorAction"></param>
- void QueryHoldingSummarys(string statement, List<QueryCommonParam> queryCommonParams,
- Action<List<HoldingSummary>> successAction, Action<ErrorEntity> errorAction);
- /// <summary>
- /// 委托单查询,
- /// </summary>
- /// <param name="statement">sql id</param>
- /// <param name="queryCommonParams">通用查询参数</param>
- /// <param name="successAction">成功查询回调</param>
- /// <param name="errorAction">失败返回回调</param>
- void QueryEntrustOrder(string statement, List<QueryCommonParam> queryCommonParams,
- Action<List<OrderDetail>> successAction, Action<ErrorEntity> errorAction);
- /// <summary>
- /// 根据持仓汇总查询持仓明细
- /// </summary>
- /// <param name="statement"></param>
- /// <param name="queryCommonParams"></param>
- /// <param name="successAction"></param>
- /// <param name="errorAction"></param>
- void QueryHoldLstBySummary(string statement, List<QueryCommonParam> queryCommonParams, Action<List<HoldingOrder20>> successAction, Action<ErrorEntity> errorAction);
- /// <summary>
- /// 成交单查询
- /// </summary>
- /// <param name="statement">sql id</param>
- /// <param name="queryCommonParams">通用查询参数</param>
- /// <param name="successAction">成功返回</param>
- /// <param name="errorAction">错误返回</param>
- void QueryComplateOrders(string statement, List<QueryCommonParam> queryCommonParams,
- Action<List<CompleteOrder>> successAction, Action<ErrorEntity> errorAction);
- /// <summary>
- /// 成交单查询
- /// </summary>
- /// <param name="statement">sql id</param>
- /// <param name="queryCommonParams">通用查询参数</param>
- /// <param name="successAction">成功返回</param>
- /// <param name="errorAction">错误返回</param>
- void QueryUserLogs(string statement, List<QueryCommonParam> queryCommonParams,
- Action<List<UserLog>> successAction, Action<ErrorEntity> errorAction);
- /// <summary>
- /// 查询平仓单
- /// </summary>
- /// <param name="statement">执行的Sql语句</param>
- /// <param name="queryCommonParams">通用查询参数</param>
- /// <param name="successAction">成功</param>wfyf
- /// <param name="errorAction"></param>
- void QueryCloseOrders(string statement, List<QueryCommonParam> queryCommonParams,
- Action<List<CloseOrder>> successAction, Action<ErrorEntity> errorAction);
- /// <summary>
- /// 按市场类型查询平仓单
- /// </summary>
- /// <param name="marketType">市场类型</param>
- /// <param name="queryCommonParams">查询参数</param>
- /// <param name="successAction">成功回应</param>
- /// <param name="errorAction">错误回应</param>
- void QueryMarketCloseOrders(eTradeMode marketType, List<QueryCommonParam> queryCommonParams,
- Action<eTradeMode,List<CloseOrder>> successAction, Action<ErrorEntity> errorAction);
-
- /// <summary>
- /// 按市场类型查询建仓单
- /// </summary>
- /// <param name="marketType">市场类型</param>
- /// <param name="queryCommonParams">查询参数</param>
- /// <param name="successAction">成功回应</param>
- /// <param name="errorAction">错误回应</param>
- void QueryMarketOpenOrders(eTradeMode marketType, List<QueryCommonParam> queryCommonParams,
- Action<eTradeMode,List<CompleteOrder>> successAction, Action<ErrorEntity> errorAction);
- /// <summary>
- /// 按市场类型查询预埋单
- /// </summary>
- /// <param name="marketType">市场类型</param>
- /// <param name="queryCommonParams">查询参数</param>
- /// <param name="successAction">成功回应</param>
- /// <param name="errorAction">错误回应</param>
- void QueryPrePostOrders(eTradeMode marketType, List<QueryCommonParam> queryCommonParams,
- Action<eTradeMode, List<PrePostDetail>> successAction, Action<ErrorEntity> errorAction);
- /// <summary>
- /// 按市场类型查询委托单
- /// </summary>
- /// <param name="marketType">市场类型</param>
- /// <param name="queryCommonParams">查询参数</param>
- /// <param name="successAction">成功回应</param>
- /// <param name="errorAction">错误回应</param>
- void QueryMarketOrderDetails(eTradeMode marketType, List<QueryCommonParam> queryCommonParams,
- Action<eTradeMode,List<OrderDetail>> successAction, Action<ErrorEntity> errorAction);
- /// <summary>
- /// 查询 单据数量
- /// </summary>
- /// <param name="queryCommonParams"></param>
- /// <param name="successAction"></param>
- /// <param name="errorAction"></param>
- void QueryMarketOrderCount(string searchId, List<QueryCommonParam> queryCommonParams,
- Action<List<MarketOrderCount>> successAction, Action<ErrorEntity> errorAction);
- /// <summary>
- /// 查询会员风控信息
- /// </summary>
- /// <param name="successAction"></param>
- /// <param name="errorAction"></param>
- void QueryMemberMonitor(uint accountId, Action<List<MemberAccountInfo>> successAction, Action<ErrorEntity> errorAction);
- /// <summary>
- /// 查询账号资金流水
- /// </summary>
- /// <param name="isHistory"></param>
- /// <param name="queryCommonParams"></param>
- /// <param name="successAction"></param>
- /// <param name="errorAction"></param>
- void QueryTaAmountLog(bool isHistory,List<QueryCommonParam> queryCommonParams, Action<List<AccountAmountLog>> successAction, Action<ErrorEntity> errorAction);
- /// <summary>
- /// 查询协议平仓
- /// </summary>
- /// <param name="accountId">账号id</param>
- /// <param name="successAction"></param>
- /// <param name="errorAction"></param>
- void QueryDealCloseSetting(ulong accountId, Action<List<DealCloseModel>> successAction,
- Action<ErrorEntity> errorAction);
- /// <summary>
- /// 协议平仓确认
- /// </summary>
- /// <param name="dealClose">协议平仓</param>
- /// <param name="successAction"></param>
- /// <param name="errorAction"></param>
- void DealCloseComfirm(DealCloseOrder dealClose, Action<DealCloseOrder> successAction,
- Action<ErrorEntity> errorAction);
- /// <summary>
- /// 查询市场状态
- /// </summary>
- /// <param name="queryCommonParams"></param>
- /// <param name="successAction"></param>
- /// <param name="errorAction"></param>
- void QueryMarketTypeStatus(Action<List<MarketTypeProperty>> successAction, Action<ErrorEntity> errorAction);
- /// <summary>
- /// 查询账号所属的运营中心
- /// </summary>
- /// <param name="queryCommonParams"></param>
- /// <param name="successAction"></param>
- /// <param name="errorAction"></param>
- void QueryAccountArea(uint AreaId, Action<List<AreaModel>> successAction, Action<ErrorEntity> errorAction);
- /// <summary>
- /// 查询历史单据
- /// </summary>
- /// <param name="accountId">账号id</param>
- /// <param name="history">单据类型</param>
- /// <param name="successAction"></param>
- /// <param name="errorAction"></param>
- void QueryHistoryOrderBase(ulong accountId, HistoryOrder history, DateTime strarTime, DateTime endTime, Action<List<OrderBase>> successAction, Action<ErrorEntity> errorAction);
- /// <summary>
- /// 资管下单委托
- /// </summary>
- /// <param name="entrustOrder">委托内容</param>
- /// <param name="successAction">成功回应</param>
- /// <param name="errorAction">失败回应</param>
- void ChannelEntrustOrder(NewEntrustOrder entrustOrder, Action<OrderDetail> successAction, Action<ErrorEntity> errorAction);
- /// <summary>
- /// 资管止盈止损下单
- /// </summary>
- /// <param name="entrustOrder">The entrust order.</param>
- /// <param name="successAction">The success action.</param>
- /// <param name="errorAction">The error action.</param>
- void ChannelSPSLOrder(NewEntrustOrder entrustOrder, Action<OrderDetail> successAction, Action<ErrorEntity> errorAction);
- }
- }
|