//----------------------------------------------------------------
//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
{
///
/// 获取交易所列表
///
/// Dictionary{System.StringSystem.String}.
Dictionary GetExchanges();
///
/// 生成交易所商品树
///
/// ObservableCollection{TreeViewEntity}.
ObservableCollection GetExchangeTree();
///
/// 获取商品信息By商品代码
///
/// The goods code list.
/// ObservableCollection{QuoteGoods}.
ObservableCollection GetQuoteGoodsByCodes(List goodsCodeList);
///
/// 获取命令行商品
///
/// Type of the command.
/// The additional info.
/// IEnumerable{QuoteGoods}.
ObservableCollection GetGoodsInfoList(MenuCommandType commandType, string additionalInfo);
/////
///// 更新商品盘面信息
/////
///// The goods list.
//void UpdateFromDayQuote(List goodsList);
///
/// 获取所有商品
///
/// 返回所有商品信息
ObservableCollection GetAllGoods();
///
/// 更新的昨日结算价
///
/// 商品
/// 账号
void UpdateLastReckonPrice(List goodses, TradeAccount account);
///
/// 更新的交收价
///
/// 商品
/// 账号
void UpdateDeliveryPrice(List goodses, TradeAccount account);
///
/// 查询商品交易参数增量
///
/// 内容权限
/// 商品代码
/// 即期或竞价
List QueryParameterRule(int ContRightCode, string goodsCode, bool IsBidMarket, string loginCode);
///
/// 商品开市
///
/// 商品代码
void MarketOpenUpdateDayQuote(string[] goodsCodes);
///
/// 根据symbol获取商品
///
/// The symbol.
/// QuoteGoods.
QuoteGoods GetQuoteGoodsBySymbol(string symbol);
///
/// 获取商品DTO对象集合
///
/// Type of the command.
/// The additional info.
/// IEnumerable{QuoteGoods}.
ObservableCollection GetQuoteGoodsDTOList(MenuCommandType commandType, MarketsInfoModel goodsGroup);
///
/// 获取商品交易规则按市场类型与规则类型查询
///
/// 商品id
/// 商品所属的市场类型
/// 按市场区分的规则类型
///
GoodsFeeType GetGoodsParamerRule(int goodsId, eTradeMode tradeMode, GoodsTradeConts ruletype);
///
/// 获取交易费用类型
///
///
///
eTradeFee GetTradeFee(eTradeMode tradeMode,eTradeFeeType feeType);
///
/// 转换行情显示商品与行情商品
///
///
///
ObservableCollection ConvertGoodsDtos(List goodses);
///
/// 查询市场结算信息
///
/// 市场类型ID
///
///
void QueryMarketReckonInfo(int MarkerTypeID, Action> successAction,
Action errorAction);
///
/// 委托预埋单数量查询
///
///
///
///
void QueryPrePostDetailQty(ulong AccountId, Action> successAction, Action errorAction);
///
/// 根据外部交易所ID获取商品列表
///
/// The ex exchange identifier.
/// List{QuoteGoods}.
List GetGoodsListByExExchangeId(uint exExchangeId);
}
}