189 lines
5.8 KiB
INI
189 lines
5.8 KiB
INI
@var CONFIG_SVC_HOST=cloud16.cvtt.vpn
|
|
@var ResultPath=/tmp
|
|
|
|
{
|
|
"refdata": @inc=http://${CONFIG_SVC_HOST}:6789/refdata/refdata
|
|
, "redis": @inc=http://${CONFIG_SVC_HOST}:6789/apps/redis
|
|
, "active_instruments": @inc=http://${CONFIG_SVC_HOST}:6789/apps/active_instruments
|
|
, "cvttcomm": {
|
|
"type": "redis"
|
|
, "redis_settings": "cvtt-prod-02"
|
|
}
|
|
|
|
, "books": {
|
|
"ALPACA_BK02": {}
|
|
}
|
|
# --------------------------------------------------------------------
|
|
, "trader": {
|
|
"app_channel": "TRDR" active_exchanges_: str
|
|
|
|
, "is_short_allowed": false
|
|
, "algo": "TRDALGO_001"
|
|
, "exchanges_settings": {
|
|
"*": {
|
|
"mkt_data": {
|
|
"enabled": true
|
|
, "streaming": true
|
|
},
|
|
}
|
|
}
|
|
, "algos": {
|
|
"TRDALGO_001": {
|
|
"class": "cvttpy.trading.algos.simple.SimpleTradingAlgo"
|
|
, "params": {}
|
|
}
|
|
}
|
|
, "trading_pos_diff_pct_trigger": 10.0
|
|
, "trading_depth": {
|
|
"BTC": 0.001
|
|
# "BTC": 0.1
|
|
}
|
|
}
|
|
# --------------------------------------------------------------------
|
|
"executor": {
|
|
"app_channel": "EXEC"
|
|
, "exchanges_settings": {
|
|
"COINBASE_AT": {
|
|
"order_entry": {
|
|
"enabled": true
|
|
, "streaming": true
|
|
},
|
|
"mkt_data": {
|
|
"enabled": false
|
|
, "streaming": false
|
|
},
|
|
"accounting": {
|
|
"enabled": false
|
|
, "streaming": false
|
|
}
|
|
, "credentials_key": {
|
|
"read_only": "COINBASE_ADV_RO"
|
|
, "trade": "COINBASE_ADV_TRD"
|
|
}
|
|
}
|
|
, "ALPACA_SNDBX": {
|
|
"order_entry": {
|
|
"enabled": true
|
|
, "streaming": true
|
|
},
|
|
"mkt_data": {
|
|
"enabled": false
|
|
, "streaming": false
|
|
},
|
|
"accounting": {
|
|
"enabled": false
|
|
, "streaming": false
|
|
}
|
|
, "credentials_key": {
|
|
"read_only": "ALPACA_SANDBOX"
|
|
, "trade": "ALPACA_SANDBOX"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
# --------------------------------------------------------------------
|
|
, "quant": {
|
|
"app_channel": "QUANT"
|
|
# , "strategy": "CVTT_QST001"
|
|
# , "strategy": "VWAP001"
|
|
, "strategy": "DAILY_STOCK_001"
|
|
, "strategies": {
|
|
"CVTT_QST001": {
|
|
"class": "cvttpy.trading.strategies.test_strat.SeesawTestStrategy"
|
|
, "params": {
|
|
"dummy": "dummy"
|
|
}
|
|
}
|
|
, "VWAP001": {
|
|
"class": "cvttpy.trading.strategies.vwap_strat.VWAP001"
|
|
, "params": {
|
|
"vwap_interval": "1 hour"
|
|
, "hist_md_database": {
|
|
"class": "cvttpy.tools.db.timescale.tsdb_client.TimescaleDbClient"
|
|
, "cred_key": "TSDB_MD_CVTTDATA_RO"
|
|
, "data_type": "OHLCV"
|
|
}
|
|
}
|
|
}
|
|
, "DAILY_STOCK_001": {
|
|
"class": "cvttpy.trading.strategies.daily_stocks_strat.DailyStocksStrategy"
|
|
, "params": {
|
|
}
|
|
}
|
|
}
|
|
, "exchanges_settings": {
|
|
"*": {
|
|
"mkt_data": {
|
|
"enabled": true
|
|
, "streaming": true
|
|
},
|
|
}
|
|
, "COINBASE_AT": {
|
|
"mkt_data": {
|
|
"enabled": true
|
|
, "streaming": true
|
|
},
|
|
}
|
|
}
|
|
}
|
|
# --------------------------------------------------------------------
|
|
, "risk_manager": {
|
|
"app_channel": "RMGR"
|
|
, "books": {
|
|
"CVTT_BK01": {}
|
|
}
|
|
, "db": {
|
|
"positions_table": "prod.cvtt_positions"
|
|
, "cred_key": {
|
|
"write": "TSDB_TRD_CVTTDATA"
|
|
, "read_only": "TSDB_TRD_CVTTDATA"
|
|
}
|
|
}
|
|
, "positions": {
|
|
"load_interval_sec": 10.0
|
|
, "to_store_zero_positions": false
|
|
, "to_save_unchanged_positions": false
|
|
}
|
|
, "publish_value_interval": 10.0
|
|
, "exchanges_settings": {
|
|
"*": {
|
|
"mkt_data": {
|
|
"enabled": true
|
|
, "streaming": true
|
|
},
|
|
"accounting": {
|
|
"enabled": true
|
|
, "streaming": false
|
|
}
|
|
, "credentials_key": {
|
|
"trade": "ALPACA_SANDBOX"
|
|
, "read_only": "ALPACA_SANDBOX"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
, "trading_recorder": {
|
|
# "format": "CSV"
|
|
# "format": "TSDB"
|
|
"format": "SQLite"
|
|
, "csv_settings": {
|
|
"order_events_file_path": "%T.order_events.csv"
|
|
"position_events_file_path": "%T.position_events.csv"
|
|
}
|
|
, "tsdb_settings": {
|
|
"db": {
|
|
"class": "cvttpy.tools.db.timescale.tsdb_client.TimescaleDbClient"
|
|
, "cred_key": "TSDB_TRD_CVTTDATA_DB_TEST"
|
|
}
|
|
, "order_events_table": "backtest.trading_orders"
|
|
, "trade_events_table": "backtest.trading_trades"
|
|
, "trading_md_summary_table": "backtest.trading_md"
|
|
}
|
|
, "sqlite_settings": {
|
|
# "file_name": "/tmp/%T.cvtt_backtest.db"
|
|
"file_name": "/tmp/%T.cvtt_alpaca_sandbox.db"
|
|
}
|
|
}
|
|
}
|
|
|