| 1234567891011121314151617181920212223242526 |
- using DeepCore.IO;
- namespace OpenCards.Core.Data
- {
- /// <summary>交易所账单条目</summary>
- [MessageType(Constants.TOKEN_EXCHANGE_START + 1)] // 0x40701
- public class TokenExchangeLogEntry : ISerializable
- {
- public int recordId; //交易id
- public long tradeTime; // 成交时间 ms
- public float unitPrice; // 成交单价(两位小数)
- public int tokenAmount; // 代币数量(100 整数倍)
- public int tearStoneAmount; // 买入= 泪滴石消耗;卖出=实际到账
- public int grossTearStone; // 卖出毛收入,买入填 0
- public int feeAmount; // 卖出手续费,买入填 0
- }
- /// <summary>交易所界面快照(Info/Buy/Sell 响应共用)</summary>
- [MessageType(Constants.TOKEN_EXCHANGE_START + 2)] // 0x40702
- public class TokenExchangeSnapshot : ISerializable
- {
- public float unitPrice; // 当前单价
- public long nextAdjustTime; // 下次调价时间 ms
- public int maxBuyAmount; // floor(泪滴石/(单价*100))*100
- public int maxSellAmount; // floor(代币/100)*100
- }
- }
|