Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tensorchen/quant
https://github.com/tensorchen/quant
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/tensorchen/quant
- Owner: tensorchen
- License: apache-2.0
- Created: 2024-03-02T04:10:31.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-04-13T09:50:17.000Z (10 months ago)
- Last Synced: 2024-11-09T21:34:59.585Z (3 months ago)
- Language: Go
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# quant
## 安装
```bash
go install github.com/tensorchen/quant/cmd/quant@latest
```## 配置
```yaml
tquant:
port:
token:long_bridge:
app_key:
app_secret:
access_token:discord:
id:
token:
```## 使用
| 字段 | 解释 | 备注 |
|--------------------------------|------|----|
| token | 密钥 | |
| trade.ticker | 股票代码 | |
| trade.exchange | 交易所 | |
| trade.strategy.order.action | 交易操作 | |
| trade.strategy.order.contracts | 交易数量 | |```json
{
"token": "{{token}}",
"trade": {
"ticker": "{{ticker}}",
"exchange":"{{exchange}}",
"strategy": {
"order": {
"action": "{{strategy.order.action}}",
"contracts": "{{strategy.order.contracts}}"
}
}
}
}
```