|
@@ -2,60 +2,118 @@ package cn.muchinfo.rma.global.data
|
|
|
|
|
|
|
|
import android.os.Parcel
|
|
import android.os.Parcel
|
|
|
import android.os.Parcelable
|
|
import android.os.Parcelable
|
|
|
|
|
+import com.google.gson.annotations.SerializedName
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 成交单查询(合约市场)
|
|
* 成交单查询(合约市场)
|
|
|
*/
|
|
*/
|
|
|
data class ContractTradeDetailData(
|
|
data class ContractTradeDetailData(
|
|
|
|
|
+ @SerializedName("accountid")
|
|
|
val accountid : String? = "",//账户ID[报价币种]
|
|
val accountid : String? = "",//账户ID[报价币种]
|
|
|
|
|
+ @SerializedName("advanceratio")
|
|
|
|
|
+ val advanceratio : String? = "",//首付比率
|
|
|
|
|
+ @SerializedName("buildtype")
|
|
|
val buildtype : String? = "",//委托单据类型 1:建仓 2:平仓 3:先平后建
|
|
val buildtype : String? = "",//委托单据类型 1:建仓 2:平仓 3:先平后建
|
|
|
|
|
+ @SerializedName("buyorsell")
|
|
|
val buyorsell : String? = "",//方向 - 0:买 1:卖
|
|
val buyorsell : String? = "",//方向 - 0:买 1:卖
|
|
|
|
|
+ @SerializedName("charge")
|
|
|
val charge : String? = "",//手续费
|
|
val charge : String? = "",//手续费
|
|
|
|
|
+ @SerializedName("closecharge")
|
|
|
val closecharge : String? = "",//平仓手续费(支付总手续费=(交易所比率+会员比率)*成交金额)
|
|
val closecharge : String? = "",//平仓手续费(支付总手续费=(交易所比率+会员比率)*成交金额)
|
|
|
|
|
+ @SerializedName("closeexchagechargevalue")
|
|
|
val closeexchagechargevalue : String? = "",//平仓交易所手续费设置值
|
|
val closeexchagechargevalue : String? = "",//平仓交易所手续费设置值
|
|
|
|
|
+ @SerializedName("closefeealgorithm")
|
|
|
val closefeealgorithm : String? = "",//平仓手续费收取方式 1:比率 2:固定
|
|
val closefeealgorithm : String? = "",//平仓手续费收取方式 1:比率 2:固定
|
|
|
|
|
+ @SerializedName("closememberchargevalue")
|
|
|
val closememberchargevalue : String? = "",//平仓会员手续费设置值
|
|
val closememberchargevalue : String? = "",//平仓会员手续费设置值
|
|
|
|
|
+ @SerializedName("closepl")
|
|
|
val closepl : String? = "",//平仓盈亏
|
|
val closepl : String? = "",//平仓盈亏
|
|
|
|
|
+ @SerializedName("enumdicname")
|
|
|
val enumdicname : String? = "",//单位
|
|
val enumdicname : String? = "",//单位
|
|
|
|
|
+ @SerializedName("closepl2")
|
|
|
val closepl2 : String? = "",//平仓盈亏[逐笔]
|
|
val closepl2 : String? = "",//平仓盈亏[逐笔]
|
|
|
|
|
+ @SerializedName("closeqty")
|
|
|
val closeqty : String? ="",//平仓数量(先建后平操作 需要记录)
|
|
val closeqty : String? ="",//平仓数量(先建后平操作 需要记录)
|
|
|
|
|
+ @SerializedName("creditamount")
|
|
|
val creditamount : String? ="",//授信金额
|
|
val creditamount : String? ="",//授信金额
|
|
|
|
|
+ @SerializedName("gcaccountid")
|
|
|
val gcaccountid : String? = "",//账户ID[合约币种]
|
|
val gcaccountid : String? = "",//账户ID[合约币种]
|
|
|
|
|
+ @SerializedName("goodscode")
|
|
|
val goodscode : String? = "",//商品代码
|
|
val goodscode : String? = "",//商品代码
|
|
|
|
|
+ @SerializedName("goodsid")
|
|
|
val goodsid : String? ="",//商品ID
|
|
val goodsid : String? ="",//商品ID
|
|
|
|
|
+ @SerializedName("goodsname")
|
|
|
val goodsname : String? = "",//商品名称
|
|
val goodsname : String? = "",//商品名称
|
|
|
|
|
+ @SerializedName("intclosepl")
|
|
|
val intclosepl : String? = "",//整型盈亏(用于交易结算试算平衡-收益权)
|
|
val intclosepl : String? = "",//整型盈亏(用于交易结算试算平衡-收益权)
|
|
|
|
|
+ @SerializedName("isconfirmexercise")
|
|
|
val isconfirmexercise : String? ="",//是否确认行权- 0:否 1:是
|
|
val isconfirmexercise : String? ="",//是否确认行权- 0:否 1:是
|
|
|
|
|
+ @SerializedName("ismain")
|
|
|
val ismain : String? ="",//是否主单 - 0:不是 1:是
|
|
val ismain : String? ="",//是否主单 - 0:不是 1:是
|
|
|
|
|
+ @SerializedName("ispreexercise")
|
|
|
val ispreexercise : String? = "",//是否预申报- 0:否 1:是
|
|
val ispreexercise : String? = "",//是否预申报- 0:否 1:是
|
|
|
|
|
+ @SerializedName("isreckoned")
|
|
|
val isreckoned : String? = "",//是否结算 - 0:未结算 1:已结算
|
|
val isreckoned : String? = "",//是否结算 - 0:未结算 1:已结算
|
|
|
|
|
+ @SerializedName("listingselecttype")
|
|
|
val listingselecttype : String? = "",//关联委托单挂牌点选类型 - 1:挂牌 2:摘牌 3:先摘后挂
|
|
val listingselecttype : String? = "",//关联委托单挂牌点选类型 - 1:挂牌 2:摘牌 3:先摘后挂
|
|
|
|
|
+ @SerializedName("marketid")
|
|
|
val marketid : String? ="",//市场ID
|
|
val marketid : String? ="",//市场ID
|
|
|
|
|
+ @SerializedName("marketname")
|
|
|
val marketname : String? = "",//市场名称
|
|
val marketname : String? = "",//市场名称
|
|
|
|
|
+ @SerializedName("matchaccountid")
|
|
|
val matchaccountid : String? = "",//对手账号id
|
|
val matchaccountid : String? = "",//对手账号id
|
|
|
|
|
+ @SerializedName("memberuserid")
|
|
|
val memberuserid : String? ="",///会员id 个人投资者 需要填写
|
|
val memberuserid : String? ="",///会员id 个人投资者 需要填写
|
|
|
|
|
+ @SerializedName("opencharge")
|
|
|
val opencharge : String? = "",//建仓手续费(支付总手续费=(交易所比率+会员比率)*成交金额)
|
|
val opencharge : String? = "",//建仓手续费(支付总手续费=(交易所比率+会员比率)*成交金额)
|
|
|
|
|
+ @SerializedName("openexchagechargevalue")
|
|
|
val openexchagechargevalue : String? = "",//建仓交易所手续费设置值
|
|
val openexchagechargevalue : String? = "",//建仓交易所手续费设置值
|
|
|
|
|
+ @SerializedName("openfeealgorithm")
|
|
|
val openfeealgorithm : String? = "",//建仓手续费收取方式 1:比率 2:固定
|
|
val openfeealgorithm : String? = "",//建仓手续费收取方式 1:比率 2:固定
|
|
|
|
|
+ @SerializedName("openmemberchargevalue")
|
|
|
val openmemberchargevalue : String? = "",//建仓会员手续费设置值
|
|
val openmemberchargevalue : String? = "",//建仓会员手续费设置值
|
|
|
|
|
+ @SerializedName("openqty")
|
|
|
val openqty : String? = "",//开仓数量(先建后平操作 需要记录)
|
|
val openqty : String? = "",//开仓数量(先建后平操作 需要记录)
|
|
|
|
|
+ @SerializedName("optiontype")
|
|
|
val optiontype : String? = "",//期权类型 - 1:认购(看涨) 2:认沽(看跌)
|
|
val optiontype : String? = "",//期权类型 - 1:认购(看涨) 2:认沽(看跌)
|
|
|
|
|
+ @SerializedName("orderid")
|
|
|
val orderid : String? = "",//委托单号
|
|
val orderid : String? = "",//委托单号
|
|
|
|
|
+ @SerializedName("performanceplanid")
|
|
|
val performanceplanid : String? = "",//履约计划ID[期权]
|
|
val performanceplanid : String? = "",//履约计划ID[期权]
|
|
|
|
|
+ @SerializedName("performancestatus")
|
|
|
val performancestatus : String? = "",//履约状态[期权] - 0:无履约 1:未履约 2:履约中 3:履约完成
|
|
val performancestatus : String? = "",//履约状态[期权] - 0:无履约 1:未履约 2:履约中 3:履约完成
|
|
|
|
|
+ @SerializedName("preexerciseprice")
|
|
|
val preexerciseprice : String? ="",//预申报价格
|
|
val preexerciseprice : String? ="",//预申报价格
|
|
|
|
|
+ @SerializedName("premium")
|
|
|
val premium : String? = "",//权利金 - [持仓单的权利金]
|
|
val premium : String? = "",//权利金 - [持仓单的权利金]
|
|
|
|
|
+ @SerializedName("relatedouttradeid")
|
|
|
val relatedouttradeid : String? = "",//关联外部成交单ID
|
|
val relatedouttradeid : String? = "",//关联外部成交单ID
|
|
|
|
|
+ @SerializedName("status")
|
|
|
val status : String? ="",//处理状态 - 1:待处理 2:已处理 3:处理失败
|
|
val status : String? ="",//处理状态 - 1:待处理 2:已处理 3:处理失败
|
|
|
|
|
+ @SerializedName("tradeamount")
|
|
|
val tradeamount : String? = "",//成交金额[账户币种,用于所有权]
|
|
val tradeamount : String? = "",//成交金额[账户币种,用于所有权]
|
|
|
|
|
+ @SerializedName("tradedate")
|
|
|
val tradedate : String? ="",//交易日(yyyyMMdd)
|
|
val tradedate : String? ="",//交易日(yyyyMMdd)
|
|
|
|
|
+ @SerializedName("totalamount")
|
|
|
|
|
+ val totalamount : String? = "",//订单总额 = 成交金额 + 手续费
|
|
|
|
|
+ @SerializedName("payamount")
|
|
|
|
|
+ val payamount : String? = "",//支付金额(付款金额)
|
|
|
|
|
+ @SerializedName("tradeid")
|
|
|
val tradeid : String? ="",//成交单号(101+Unix秒时间戳(10位)+2位(MarketServiceID)+xxxx)
|
|
val tradeid : String? ="",//成交单号(101+Unix秒时间戳(10位)+2位(MarketServiceID)+xxxx)
|
|
|
|
|
+ @SerializedName("trademode")
|
|
|
val trademode : String? ="",//交易模式
|
|
val trademode : String? ="",//交易模式
|
|
|
|
|
+ @SerializedName("tradeprice")
|
|
|
val tradeprice : String? ="",//成交价格
|
|
val tradeprice : String? ="",//成交价格
|
|
|
|
|
+ @SerializedName("tradeproperty")
|
|
|
val tradeproperty : String? = "",//交易属性
|
|
val tradeproperty : String? = "",//交易属性
|
|
|
|
|
+ @SerializedName("tradeqty")
|
|
|
val tradeqty : String? ="",//成交数量
|
|
val tradeqty : String? ="",//成交数量
|
|
|
|
|
+ @SerializedName("isClick")
|
|
|
|
|
+ var isClick : Int = 0,//是否点击展开
|
|
|
|
|
+ @SerializedName("tradetime")
|
|
|
val tradetime : String? = "",//成交时间
|
|
val tradetime : String? = "",//成交时间
|
|
|
- val tradetype :String? = ""//成交类别 - 1:正常委托成交 2:定向做市成交(接单) 3:交割协议平仓成交 4:交割减仓成交 5:到期强平成交 6:风控斩仓成交 7:协议平仓(管理端)成交 8:仓单转持仓成交 9: 交割协议转让成交 10:受托竞价成交(接单) 11:协议转让成交 12:系统强行平仓 13:期权违约平仓
|
|
|
|
|
|
|
+ @SerializedName("tradetype")
|
|
|
|
|
+ val tradetype :String? = ""//成交类别 - 27 : 融资买入成交 28 : 提货减仓成交 1:正常委托成交 2:定向做市成交(接单) 3:交割协议平仓成交 4:交割减仓成交 5:到期强平成交 6:风控斩仓成交 7:协议平仓(管理端)成交 8:仓单转持仓成交 9: 交割协议转让成交 10:受托竞价成交(接单) 11:协议转让成交 12:系统强行平仓 13:期权违约平仓
|
|
|
) : Parcelable{
|
|
) : Parcelable{
|
|
|
constructor(parcel: Parcel) : this(
|
|
constructor(parcel: Parcel) : this(
|
|
|
parcel.readString(),
|
|
parcel.readString(),
|
|
@@ -106,12 +164,17 @@ data class ContractTradeDetailData(
|
|
|
parcel.readString(),
|
|
parcel.readString(),
|
|
|
parcel.readString(),
|
|
parcel.readString(),
|
|
|
parcel.readString(),
|
|
parcel.readString(),
|
|
|
|
|
+ parcel.readString(),
|
|
|
|
|
+ parcel.readString(),
|
|
|
|
|
+ parcel.readInt(),
|
|
|
|
|
+ parcel.readString(),
|
|
|
parcel.readString()
|
|
parcel.readString()
|
|
|
) {
|
|
) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
override fun writeToParcel(parcel: Parcel, flags: Int) {
|
|
override fun writeToParcel(parcel: Parcel, flags: Int) {
|
|
|
parcel.writeString(accountid)
|
|
parcel.writeString(accountid)
|
|
|
|
|
+ parcel.writeString(advanceratio)
|
|
|
parcel.writeString(buildtype)
|
|
parcel.writeString(buildtype)
|
|
|
parcel.writeString(buyorsell)
|
|
parcel.writeString(buyorsell)
|
|
|
parcel.writeString(charge)
|
|
parcel.writeString(charge)
|
|
@@ -153,11 +216,14 @@ data class ContractTradeDetailData(
|
|
|
parcel.writeString(status)
|
|
parcel.writeString(status)
|
|
|
parcel.writeString(tradeamount)
|
|
parcel.writeString(tradeamount)
|
|
|
parcel.writeString(tradedate)
|
|
parcel.writeString(tradedate)
|
|
|
|
|
+ parcel.writeString(totalamount)
|
|
|
|
|
+ parcel.writeString(payamount)
|
|
|
parcel.writeString(tradeid)
|
|
parcel.writeString(tradeid)
|
|
|
parcel.writeString(trademode)
|
|
parcel.writeString(trademode)
|
|
|
parcel.writeString(tradeprice)
|
|
parcel.writeString(tradeprice)
|
|
|
parcel.writeString(tradeproperty)
|
|
parcel.writeString(tradeproperty)
|
|
|
parcel.writeString(tradeqty)
|
|
parcel.writeString(tradeqty)
|
|
|
|
|
+ parcel.writeInt(isClick)
|
|
|
parcel.writeString(tradetime)
|
|
parcel.writeString(tradetime)
|
|
|
parcel.writeString(tradetype)
|
|
parcel.writeString(tradetype)
|
|
|
}
|
|
}
|
|
@@ -176,5 +242,4 @@ data class ContractTradeDetailData(
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
}
|
|
}
|