|
|
@@ -0,0 +1,239 @@
|
|
|
+package cn.muchinfo.rma.global.data
|
|
|
+
|
|
|
+import android.os.Parcel
|
|
|
+import android.os.Parcelable
|
|
|
+
|
|
|
+/**
|
|
|
+ * 委托单查询请求(合约市场)
|
|
|
+ */
|
|
|
+data class ContractTradeOrderDetailData(
|
|
|
+ val accountid : String? = "",//账户ID[报价币种]
|
|
|
+ val buildtype : String? = "",//委托单据类型 1:建仓 2:平仓 3:先平后建
|
|
|
+ val buyorsell : String? = "",//方向 - 0:买 1:卖
|
|
|
+ val cancelorderid : String? = "",//撤单单号(撤单时填写)
|
|
|
+ val cancelqty : String? = "",//撤单数量
|
|
|
+ val clientordertime : String? = "",//客户端委托时间
|
|
|
+ val clientticket : String? = "",//客户端流水号
|
|
|
+ val clienttype : String? = "",//客户端类型 - 0:保留为未填终端类型 1:PC管理端 2:PC交易端 3:手机客户端安卓 4:网页客户端 5:微信客户端 6:手机客户端苹果 7:网上开户客户端 8:无效终端编号 9:报价终端(中江)
|
|
|
+ val closeexchagechargevalue : String? = "",//平仓交易所手续费设置值
|
|
|
+ val closefeealgorithm : String? = "",//平仓手续费收取方式 1:比率 2:固定
|
|
|
+ val closefreezecharge : String? = "",//平仓冻结手续费(先建后平操作,需要记录)
|
|
|
+ val closememberchargevalue : String? = "",//平仓会员手续费设置值
|
|
|
+ val enableqty : String? = "",//可用数量 = 委托数量 - 成交数量 - 撤单数量
|
|
|
+ val closeqty : String? = "",//平仓数量(先建后平操作 需要记录)
|
|
|
+ val closetradeqty : String? = "",//平仓成交数量(先建后平操作,需要记录)
|
|
|
+ val closeunfreezecharge : String? = "",//平仓解冻手续费(先建后平操作,需要记录)
|
|
|
+ val delistingtype : String? = "",//摘牌类型 - 1:价格最优 2:点选成交
|
|
|
+ val freezecharge : String? = "",//冻结手续费
|
|
|
+ val freezemargin : String? = "",//冻结保证金(冻结交易金额)
|
|
|
+ val gcaccountid : String? = "",//账户ID[合约币种]
|
|
|
+ val goodscode : String? = "",//商品代码
|
|
|
+ val goodsid : String? = "",//商品ID
|
|
|
+ val goodsname : String? = "",//商品名称
|
|
|
+ val histradedate : String? = "",//历史交易日
|
|
|
+ val isconfirmexercise : String? = "",//是否确认行权- 0:否 1:是
|
|
|
+ val ispreexercise : String? = "",//是否预申报- 0:否 1:是
|
|
|
+ val isvaliddata : String? = "",//是否有效 - 0:无效 1:有效
|
|
|
+ val listingselecttype : String? = "",//挂牌点选类型 - 1:挂牌 2:摘牌 3:先摘后挂
|
|
|
+ val marginalgorithm : String? = "",//保证金收取方式 1:比率 2:固定
|
|
|
+ val marginvalue : String? = "",//即市保证金设置值
|
|
|
+ val marketid : String? = "",//市场ID
|
|
|
+ val marketmaxsub : String? = "",//市价最大偏移范围
|
|
|
+ val marketname : String? = "",//市场名称
|
|
|
+ val memberuserid : String? = "",//所属会员UserID
|
|
|
+ val openexchagechargevalue : String? = "",//建仓交易所手续费设置值
|
|
|
+ val openfeealgorithm : String? = "",//建仓手续费收取方式 1:比率 2:固定
|
|
|
+ val openfreezecharge : String? = "",//开仓冻结手续费(先建后平操作,需要记录)
|
|
|
+ val openmemberchargevalue : String? ="",//建仓会员手续费设置值
|
|
|
+ val openqty : String? ="",//开仓数量(先建后平操作,需要记录)
|
|
|
+ val opentradeqty : String? = "",//开仓成交数量(先建后平操作,需要记录)
|
|
|
+ val openunfreezecharge : String? = "",//开仓解冻手续费(先建后平操作,需要记录)
|
|
|
+ val operatetype : String? = "",//操作类型 - 1:正常下单 2:斩仓 3:转单 4:结算撤单 5:系统卖出(适用于先平后建的卖出) 6:行情源报价 7:(结算)到期强平 8:(结算)协议转让 9:系统对冲单 10:(结算)到期无效 11:交割协议转让 12:交割协议平仓 13:交割成交(所有权) 14:管理端强行平仓 15:管理端协议转让
|
|
|
+ val operatorid : String? = "",//登录账号(LoginID)
|
|
|
+ val optiontype : String? = "",//期权类型 - 1:认购(看涨) 2:认沽(看跌)
|
|
|
+ val orderid : String? = "",//委托单号(100+Unix秒时间戳(10位)+2位(MarketServiceID)+xxx
|
|
|
+ val orderprice : String? = "",//委托价格
|
|
|
+ val orderqty : String? = "",//委托数量
|
|
|
+ val ordersrc : String? = "",//委托来源 - 1:客户端 2:管理端 3:风控服务 4:交割服务 5:交易服务 6:交易日结 7:商品强平 8:管理端商品退市强平 9:交易接口 10:交割服务商被动(受托竞价) 11:预埋触发
|
|
|
+ val orderstatus : String? = "",//委托状态 - 1: 委托请求 2:待冻结 3:委托成功 4: 委托失败 5:配对成功 6: 已撤销 7:部分成交 8:已成交 9:部成部撤 10:成交失败 11:已拒绝 12:经过摘牌(先摘后挂专用-先摘后挂已摘过) 13:冻结成功(通道交易专用) 14:通道已撤 15:通道部成部撤 16:成交失败违约(荷兰式竞拍专用)
|
|
|
+ val ordertime : String? = "",//委托时间
|
|
|
+ val preexerciseprice : String? = "",//预申报价格
|
|
|
+ val premium : String? ="",//权利金
|
|
|
+ val preorderid : String? = "",//关联预埋单号(止盈止损单时填写)
|
|
|
+ val pricemode : String? = "",//取价方式 - 1:市价 2: 限价
|
|
|
+ val quoteid : String? ="",//报价单ID
|
|
|
+ val relatedid : String? ="",//关联单号(交割单)
|
|
|
+ val retcode : String? ="",//错误代码
|
|
|
+ val sessionid : String? = "",//会话ID
|
|
|
+ val tradedate : String? = "",//交易日(yyyyMMdd)
|
|
|
+ val trademode : String? ="",//交易模式
|
|
|
+ val tradeproperty : String? ="",//交易属性
|
|
|
+ val tradeqty : String? = "",//成交数量
|
|
|
+ val unfreezecharge : String? = "",//解冻手续费
|
|
|
+ val unfreezemargin : String? = "",//解冻保证金
|
|
|
+ val updatetime: String? ="",//更新时间
|
|
|
+ val uuid : String? = "",//发起端唯一id
|
|
|
+ val validtime : String? = "",//有效期限
|
|
|
+ val validtype : String? = "",//有效类型 - 1当日有效 2本周有效 3指定日期有效 4一直有效 5指定时间有效
|
|
|
+ val volumetype : String? =""//当时间有效类型为 “立即执行否则取消 IOC” 时,需要此项 - 0:任意量 1:最小量(暂时不支持) 2:全部量
|
|
|
+) : Parcelable{
|
|
|
+ constructor(parcel: Parcel) : this(
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString(),
|
|
|
+ parcel.readString()
|
|
|
+ ) {
|
|
|
+ }
|
|
|
+
|
|
|
+ override fun writeToParcel(parcel: Parcel, flags: Int) {
|
|
|
+ parcel.writeString(accountid)
|
|
|
+ parcel.writeString(buildtype)
|
|
|
+ parcel.writeString(buyorsell)
|
|
|
+ parcel.writeString(cancelorderid)
|
|
|
+ parcel.writeString(cancelqty)
|
|
|
+ parcel.writeString(clientordertime)
|
|
|
+ parcel.writeString(clientticket)
|
|
|
+ parcel.writeString(clienttype)
|
|
|
+ parcel.writeString(closeexchagechargevalue)
|
|
|
+ parcel.writeString(closefeealgorithm)
|
|
|
+ parcel.writeString(closefreezecharge)
|
|
|
+ parcel.writeString(closememberchargevalue)
|
|
|
+ parcel.writeString(enableqty)
|
|
|
+ parcel.writeString(closeqty)
|
|
|
+ parcel.writeString(closetradeqty)
|
|
|
+ parcel.writeString(closeunfreezecharge)
|
|
|
+ parcel.writeString(delistingtype)
|
|
|
+ parcel.writeString(freezecharge)
|
|
|
+ parcel.writeString(freezemargin)
|
|
|
+ parcel.writeString(gcaccountid)
|
|
|
+ parcel.writeString(goodscode)
|
|
|
+ parcel.writeString(goodsid)
|
|
|
+ parcel.writeString(goodsname)
|
|
|
+ parcel.writeString(histradedate)
|
|
|
+ parcel.writeString(isconfirmexercise)
|
|
|
+ parcel.writeString(ispreexercise)
|
|
|
+ parcel.writeString(isvaliddata)
|
|
|
+ parcel.writeString(listingselecttype)
|
|
|
+ parcel.writeString(marginalgorithm)
|
|
|
+ parcel.writeString(marginvalue)
|
|
|
+ parcel.writeString(marketid)
|
|
|
+ parcel.writeString(marketmaxsub)
|
|
|
+ parcel.writeString(marketname)
|
|
|
+ parcel.writeString(memberuserid)
|
|
|
+ parcel.writeString(openexchagechargevalue)
|
|
|
+ parcel.writeString(openfeealgorithm)
|
|
|
+ parcel.writeString(openfreezecharge)
|
|
|
+ parcel.writeString(openmemberchargevalue)
|
|
|
+ parcel.writeString(openqty)
|
|
|
+ parcel.writeString(opentradeqty)
|
|
|
+ parcel.writeString(openunfreezecharge)
|
|
|
+ parcel.writeString(operatetype)
|
|
|
+ parcel.writeString(operatorid)
|
|
|
+ parcel.writeString(optiontype)
|
|
|
+ parcel.writeString(orderid)
|
|
|
+ parcel.writeString(orderprice)
|
|
|
+ parcel.writeString(orderqty)
|
|
|
+ parcel.writeString(ordersrc)
|
|
|
+ parcel.writeString(orderstatus)
|
|
|
+ parcel.writeString(ordertime)
|
|
|
+ parcel.writeString(preexerciseprice)
|
|
|
+ parcel.writeString(premium)
|
|
|
+ parcel.writeString(preorderid)
|
|
|
+ parcel.writeString(pricemode)
|
|
|
+ parcel.writeString(quoteid)
|
|
|
+ parcel.writeString(relatedid)
|
|
|
+ parcel.writeString(retcode)
|
|
|
+ parcel.writeString(sessionid)
|
|
|
+ parcel.writeString(tradedate)
|
|
|
+ parcel.writeString(trademode)
|
|
|
+ parcel.writeString(tradeproperty)
|
|
|
+ parcel.writeString(tradeqty)
|
|
|
+ parcel.writeString(unfreezecharge)
|
|
|
+ parcel.writeString(unfreezemargin)
|
|
|
+ parcel.writeString(updatetime)
|
|
|
+ parcel.writeString(uuid)
|
|
|
+ parcel.writeString(validtime)
|
|
|
+ parcel.writeString(validtype)
|
|
|
+ parcel.writeString(volumetype)
|
|
|
+ }
|
|
|
+
|
|
|
+ override fun describeContents(): Int {
|
|
|
+ return 0
|
|
|
+ }
|
|
|
+
|
|
|
+ companion object CREATOR : Parcelable.Creator<ContractTradeOrderDetailData> {
|
|
|
+ override fun createFromParcel(parcel: Parcel): ContractTradeOrderDetailData {
|
|
|
+ return ContractTradeOrderDetailData(parcel)
|
|
|
+ }
|
|
|
+
|
|
|
+ override fun newArray(size: Int): Array<ContractTradeOrderDetailData?> {
|
|
|
+ return arrayOfNulls(size)
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+}
|