//----------------------------------------------------------------
//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
{
///
/// 即期下单委托
///
/// 委托内容
/// 成功回应
/// 失败回应
void MakeMarketEntrustOrder(NewEntrustOrder entrustOrder, Action successAction,
Action errorAction);
///
/// 竞价下单委托
///
/// 委托内容
/// 成功回应
/// 失败回应
void BidMarketEntrustOrder(NewEntrustOrder entrustOrder, Action successAction,
Action errorAction);
///
/// 混合修改止损止盈
///
/// 委托下单
///
///
void MixModifyEntrustOrder(NewEntrustOrder entrustOrder, Action successAction,
Action errorAction);
///
/// 混合下单委托
///
/// 委托内容
/// 成功回应
/// 失败回应
void MixMarketEntrustOrder(NewEntrustOrder entrustOrder, Action successAction,
Action errorAction);
///
/// 撤单
///
///
///
///
void CancelOrder(NewEntrustOrder entrustOrder, Action successAction,
Action errorAction);
void CancelOrderWithoutResult(NewEntrustOrder entrustOrder);
///
/// 查询持仓单,更新本地缓存
///
/// sqlId
/// 参数
/// 成功返回
/// 失败返回
void QueryHoldingPosistion(string statement, List queryCommonParams, Action> successAction, Action errorAction);
///
/// 查询持仓汇总
///
///
///
///
///
void QueryHoldingSummarys(string statement, List queryCommonParams,
Action> successAction, Action errorAction);
///
/// 委托单查询,
///
/// sql id
/// 通用查询参数
/// 成功查询回调
/// 失败返回回调
void QueryEntrustOrder(string statement, List queryCommonParams,
Action> successAction, Action errorAction);
///
/// 根据持仓汇总查询持仓明细
///
///
///
///
///
void QueryHoldLstBySummary(string statement, List queryCommonParams, Action> successAction, Action errorAction);
///
/// 成交单查询
///
/// sql id
/// 通用查询参数
/// 成功返回
/// 错误返回
void QueryComplateOrders(string statement, List queryCommonParams,
Action> successAction, Action errorAction);
///
/// 成交单查询
///
/// sql id
/// 通用查询参数
/// 成功返回
/// 错误返回
void QueryUserLogs(string statement, List queryCommonParams,
Action> successAction, Action errorAction);
///
/// 查询平仓单
///
/// 执行的Sql语句
/// 通用查询参数
/// 成功wfyf
///
void QueryCloseOrders(string statement, List queryCommonParams,
Action> successAction, Action errorAction);
///
/// 按市场类型查询平仓单
///
/// 市场类型
/// 查询参数
/// 成功回应
/// 错误回应
void QueryMarketCloseOrders(eTradeMode marketType, List queryCommonParams,
Action> successAction, Action errorAction);
///
/// 按市场类型查询建仓单
///
/// 市场类型
/// 查询参数
/// 成功回应
/// 错误回应
void QueryMarketOpenOrders(eTradeMode marketType, List queryCommonParams,
Action> successAction, Action errorAction);
///
/// 按市场类型查询预埋单
///
/// 市场类型
/// 查询参数
/// 成功回应
/// 错误回应
void QueryPrePostOrders(eTradeMode marketType, List queryCommonParams,
Action> successAction, Action errorAction);
///
/// 按市场类型查询委托单
///
/// 市场类型
/// 查询参数
/// 成功回应
/// 错误回应
void QueryMarketOrderDetails(eTradeMode marketType, List queryCommonParams,
Action> successAction, Action errorAction);
///
/// 查询 单据数量
///
///
///
///
void QueryMarketOrderCount(string searchId, List queryCommonParams,
Action> successAction, Action errorAction);
///
/// 查询会员风控信息
///
///
///
void QueryMemberMonitor(uint accountId, Action> successAction, Action errorAction);
///
/// 查询账号资金流水
///
///
///
///
///
void QueryTaAmountLog(bool isHistory,List queryCommonParams, Action> successAction, Action errorAction);
///
/// 查询协议平仓
///
/// 账号id
///
///
void QueryDealCloseSetting(ulong accountId, Action> successAction,
Action errorAction);
///
/// 协议平仓确认
///
/// 协议平仓
///
///
void DealCloseComfirm(DealCloseOrder dealClose, Action successAction,
Action errorAction);
///
/// 查询市场状态
///
///
///
///
void QueryMarketTypeStatus(Action> successAction, Action errorAction);
///
/// 查询账号所属的运营中心
///
///
///
///
void QueryAccountArea(uint AreaId, Action> successAction, Action errorAction);
///
/// 查询历史单据
///
/// 账号id
/// 单据类型
///
///
void QueryHistoryOrderBase(ulong accountId, HistoryOrder history, DateTime strarTime, DateTime endTime, Action> successAction, Action errorAction);
///
/// 资管下单委托
///
/// 委托内容
/// 成功回应
/// 失败回应
void ChannelEntrustOrder(NewEntrustOrder entrustOrder, Action successAction, Action errorAction);
///
/// 资管止盈止损下单
///
/// The entrust order.
/// The success action.
/// The error action.
void ChannelSPSLOrder(NewEntrustOrder entrustOrder, Action successAction, Action errorAction);
}
}