📝 docs(tsl): sync api skill with corrected codegen
Mirror docs/tsl/codegen into the bundled tsl-api-reference skill and rebuild the function index. Remove invalid duplicate API entries for cb_delistedbydate, createhttpsession, exportJsonString, and Anova_Bartlett so exact lookup returns the canonical entries.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# 算法交易 / 交易指令扩展及算法交易
|
||||
|
||||
### `tsAtGetParamterandDefaultValue(argv, name)`
|
||||
## `TS_ATGetParamterandDefaultValue(argv, name)`
|
||||
|
||||
获得指定策略的缺省参数
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
返回:array
|
||||
|
||||
### `tsAtQuery(user_id, password, end_t, query_type, time_out)`
|
||||
## `TS_ATQuery(user_id, password, end_t, query_type, time_out)`
|
||||
|
||||
查询账号相关信息,包括资金,持仓等
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
返回:array
|
||||
|
||||
### `tsAtQueryByOrderId(user_id, password, end_t, order_id, query_type, time_out)`
|
||||
## `TS_ATQueryByOrderId(user_id, password, end_t, order_id, query_type, time_out)`
|
||||
|
||||
策略执行结果详情查询(按订单号)
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
|
||||
返回:array
|
||||
|
||||
### `tsAtStart(h, time_out, err_str)`
|
||||
## `TS_ATStart(h, time_out, err_str)`
|
||||
|
||||
启动指定策略
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
|
||||
返回:string
|
||||
|
||||
### `tsAtStop(h, order_id, time_out)`
|
||||
## `TS_ATStop(h, order_id, time_out)`
|
||||
|
||||
按照订单号停止指定策略
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
|
||||
返回:any
|
||||
|
||||
### `tsOrderFuturePosition(addr, broker_id, account, password, stkid, position, cancel_threshold, comment)`
|
||||
## `TSOrder_FuturePosition(addr, broker_id, account, password, stkid, position, cancel_threshold, comment)`
|
||||
|
||||
函数会自动维护指定品种的头寸。用户不需要进行复杂的事务处理、交易下单、交易撤单等,大大简化了应用开发。 委托价格是品种的当前价格。当委托价格偏离最新价格指定阀值(cancel_threshold)时撤单;cancel_threshold< 0 不撤单(禁用撤单功能) 服务器模式:每间隔指定时间(循环中),调用行情信号模块——计算当前头寸,同时调用本指令维护头寸。 客户端模式:每间隔指定时间(循环中),调用行情信号模块——计算当前头寸,同时使用RDO2调用本指令维护头寸(交易在客户端)。
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
|
||||
返回:any
|
||||
|
||||
### `tsOrderFuturePositionCep(addr, broker_id, account, password, stkid, position, cancel_threshold, comment, act)`
|
||||
## `TSOrder_FuturePosition_CEP(addr, broker_id, account, password, stkid, position, cancel_threshold, comment, act)`
|
||||
|
||||
本函数是对TSOrder_FuturePosition进行CEP封装,会每间隔1秒调用一次。 本指令每间隔1秒调用TSOrder_FuturePosition检查、维护指定品种头寸;运行参数为最后一次调用本函数(act=1设置头寸)的参数表。 服务器模式:本指令需要天软CEP(复杂事务处理)支持。可以订购指定品种行情事件、Timer事件,每当行情变动或定时器事件时,调用行情信号模块——计算当前头寸,同时调用本指令维护头寸。 客户端模式:天软客户端集成CEP(复杂事务处理),本指令可以通过RDO2推送到客户端运行。可以订购Timer事件(目前客户端暂不支持实时行情事件),每当定时器事件时,调用本指令维护头寸。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user