File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
src/main/kotlin/org/rationalityfrontline/ktrader/datatype Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ plugins {
88}
99
1010group = " org.rationalityfrontline.ktrader"
11- version = " 1.0.0 "
11+ version = " 1.0.1 "
1212val NAME = " ktrader-datatype"
1313val DESC = " KTrader Datatype"
1414val GITHUB_REPO = " ktrader-tech/ktrader-datatype"
Original file line number Diff line number Diff line change @@ -94,6 +94,16 @@ data class Bar(
9494 var extras : MutableMap <String , Any >? = null ,
9595)
9696
97+ /* *
98+ * Bar 的信息
99+ * @param code 证券代码
100+ * @param interval Bar 的时长,以秒为单位。如 300 代表该 Bar 时长为 5 分钟,3600 代表 1 小时, 86400 代表 1 天
101+ */
102+ data class BarInfo (
103+ val code : String ,
104+ val interval : Int ,
105+ )
106+
97107/* *
98108 * Order
99109 * @param accountId 资金账号
@@ -186,7 +196,7 @@ data class Trade(
186196 * @param optionsStrikePrice 期权行权价格
187197 * @param extras 额外数据
188198 */
189- data class Security (
199+ data class SecurityInfo (
190200 val code : String ,
191201 val type : SecurityType ,
192202 val productId : String = " " ,
You can’t perform that action at this time.
0 commit comments