You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
528 B
16 lines
528 B
package data
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
// InitContract
|
|
//
|
|
// @Description: 外汇交易
|
|
// @param data
|
|
func InitForex(data *Data) {
|
|
go SubscribeQuotesForex(context.Background(), data, forexWh) // 外汇下单交易对行情订阅
|
|
go InitSubscribeQuotesForex(forexWh) // 检查交易订单订阅标识状态机
|
|
go ForexTransactionEntrust(context.Background()) // 监控外汇挂单缓存队列
|
|
go ForexTransactionPosition(context.Background()) // 监控外汇持仓缓存队列
|
|
}
|
|
|