| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 |
- //----------------------------------------------------------------
- //Module Name: IQueryService
- //Purpose:
- //CopyRight: Muchinfo
- //History:
- //----------------------------------------------------------------
- //DateTime Author Description
- //----------------------------------------------------------------
- //2014-03-22 deng.yinping Create
- //----------------------------------------------------------------
- using System;
- using Muchinfo.MTPClient.Data;
- using Muchinfo.MTPClient.Data.DTO;
- using Muchinfo.MTPClient.Data.Enums;
- using Muchinfo.MTPClient.Data.Model;
- using Muchinfo.MTPClient.Data.Model.Account;
- using System.Collections.Generic;
- using System.Collections.ObjectModel;
- using Muchinfo.MTPClient.Data.Model.GoodRules;
- namespace Muchinfo.MTPClient.IService
- {
- public interface IGoodsService
- {
- /// <summary>
- /// 获取交易所列表
- /// </summary>
- /// <returns>Dictionary{System.StringSystem.String}.</returns>
- Dictionary<int, string> GetExchanges();
- /// <summary>
- /// 生成交易所商品树
- /// </summary>
- /// <returns>ObservableCollection{TreeViewEntity}.</returns>
- ObservableCollection<TreeViewEntity> GetExchangeTree();
- /// <summary>
- /// 获取商品信息By商品代码
- /// </summary>
- /// <param name="goodsCodeList">The goods code list.</param>
- /// <returns>ObservableCollection{QuoteGoods}.</returns>
- ObservableCollection<QuoteGoods> GetQuoteGoodsByCodes(List<string> goodsCodeList);
- /// <summary>
- /// 获取命令行商品
- /// </summary>
- /// <param name="commandType">Type of the command.</param>
- /// <param name="additionalInfo">The additional info.</param>
- /// <returns>IEnumerable{QuoteGoods}.</returns>
- ObservableCollection<QuoteGoods> GetGoodsInfoList(MenuCommandType commandType, string additionalInfo);
- ///// <summary>
- ///// 更新商品盘面信息
- ///// </summary>
- ///// <param name="goodsList">The goods list.</param>
- //void UpdateFromDayQuote(List<QuoteGoods> goodsList);
- /// <summary>
- /// 获取所有商品
- /// </summary>
- /// <returns>返回所有商品信息</returns>
- ObservableCollection<QuoteGoods> GetAllGoods();
- /// <summary>
- /// 更新的昨日结算价
- /// </summary>
- /// <param name="goodses">商品</param>
- /// <param name="account">账号</param>
- void UpdateLastReckonPrice(List<QuoteGoods> goodses, TradeAccount account);
- /// <summary>
- /// 更新的交收价
- /// </summary>
- /// <param name="goodses">商品</param>
- /// <param name="account">账号</param>
- void UpdateDeliveryPrice(List<QuoteGoods> goodses, TradeAccount account);
- /// <summary>
- /// 查询商品交易参数增量
- /// </summary>
- /// <param name="ContRightCode">内容权限</param>
- /// <param name="goodsCode">商品代码</param>
- /// <param name="IsBidMarket">即期或竞价</param>
- List<ParameterRule> QueryParameterRule(int ContRightCode, string goodsCode, bool IsBidMarket, string loginCode);
- /// <summary>
- /// 商品开市
- /// </summary>
- /// <param name="goodsCodes">商品代码</param>
- void MarketOpenUpdateDayQuote(string[] goodsCodes);
- /// <summary>
- /// 根据symbol获取商品
- /// </summary>
- /// <param name="symbol">The symbol.</param>
- /// <returns>QuoteGoods.</returns>
- QuoteGoods GetQuoteGoodsBySymbol(string symbol);
- /// <summary>
- /// 获取商品DTO对象集合
- /// </summary>
- /// <param name="commandType">Type of the command.</param>
- /// <param name="additionalInfo">The additional info.</param>
- /// <returns>IEnumerable{QuoteGoods}.</returns>
- ObservableCollection<QuoteGoodsDTO> GetQuoteGoodsDTOList(MenuCommandType commandType, MarketsInfoModel goodsGroup);
- /// <summary>
- /// 获取商品交易规则按市场类型与规则类型查询
- /// </summary>
- /// <param name="goodsId">商品id</param>
- /// <param name="marketType">商品所属的市场类型</param>
- /// <param name="ruletype">按市场区分的规则类型</param>
- /// <returns></returns>
- GoodsFeeType GetGoodsParamerRule(int goodsId, eTradeMode tradeMode, GoodsTradeConts ruletype);
- /// <summary>
- /// 获取交易费用类型
- /// </summary>
- /// <param name="tradeMode"></param>
- /// <returns></returns>
- eTradeFee GetTradeFee(eTradeMode tradeMode,eTradeFeeType feeType);
- /// <summary>
- /// 转换行情显示商品与行情商品
- /// </summary>
- /// <param name="goodses"></param>
- /// <returns></returns>
- ObservableCollection<QuoteGoodsDTO> ConvertGoodsDtos(List<QuoteGoods> goodses);
- /// <summary>
- /// 查询市场结算信息
- /// </summary>
- /// <param name="MarkerTypeID">市场类型ID</param>
- /// <param name="successAction"></param>
- /// <param name="errorAction"></param>
- void QueryMarketReckonInfo(int MarkerTypeID, Action<List<MarketReckon>> successAction,
- Action<ErrorEntity> errorAction);
- /// <summary>
- /// 委托预埋单数量查询
- /// </summary>
- /// <param name="AccountId"></param>
- /// <param name="successAction"></param>
- /// <param name="errorAction"></param>
- void QueryPrePostDetailQty(ulong AccountId, Action<List<PreOrderParameter>> successAction, Action<ErrorEntity> errorAction);
- /// <summary>
- /// 根据外部交易所ID获取商品列表
- /// </summary>
- /// <param name="exExchangeId">The ex exchange identifier.</param>
- /// <returns>List{QuoteGoods}.</returns>
- List<QuoteGoods> GetGoodsListByExExchangeId(uint exExchangeId);
- }
- }
|