This commit is contained in:
Cryptoval Trading Technologies
2024-12-14 01:08:13 +00:00
parent 8b109e933c
commit c1c72b7f80
7 changed files with 148 additions and 3 deletions
@@ -0,0 +1,50 @@
@var CONFIG_SERVICE=cloud23.cvtt.vpn:6789
{
"refdata": @inc=http://${CONFIG_SERVICE}/refdata/refdata
, "comm": @inc=http://${CONFIG_SERVICE}/apps/common/comm
, "algos": @inc=http://${CONFIG_SERVICE}/apps/common/algos
, "exchanges_settings": {
"ALPACA_SIM": {
"mkt_data": {
"enabled": true
, "streaming": true
},
"order_entry": {
"enabled": true
, "streaming": true
},
"accounting": {
"enabled": true
, "streaming": false
},
},
# "ALPACA-MD-REST-ONLY": {
# "mkt_data": {
# "enabled": true
# , "streaming": false
# },
# },
# "COINBASE_SIM": {
# "mkt_data": {
# "enabled": true
# , "streaming": true
# },
# "order_entry": {
# "enabled": true
# , "streaming": true
# },
# "accounting": {
# "enabled": true
# , "streaming": false
# },
# },
}
, "trading": {
"book_id": "COINTEGR_BOOK_001"
,"algo": "TRDALGO_SIMPLE_BO"
, "usd_amount": 1000.0
, "price_offset_bps": 20
}
}
+8 -2
View File
@@ -8,6 +8,8 @@
@var ACCT_REST_PORT=10083
@var DATE=20241114
@var FROM_TIME=13:30
@var TO_TIME=20:00
{
"refdata": @inc=http://${CONFIG_SERVICE}/refdata/refdata
@@ -15,8 +17,8 @@
, "comm": @inc=http://${CONFIG_SERVICE}/apps/common/comm
, "comm_settings": "/comm/pubsub/redis/localhost"
, "simulation": {
# "speed_factor": 1.0,
"speed_factor": 0.0,
# "speed_factor": 1000.0,
"time_events_interval_ms": 0
}
, "market_simulator" : {
@@ -32,7 +34,7 @@
"sources": [
{
"loader_class": "cvttpy.trading.mkt_data.time_series.loaders.sqlite_loader.SqliteMdLoader"
, "file_name": "${DATA_DIR}/eqty/${DATE}.alpaca_sim_md.db"
, "file_name": "${DATA_DIR}/eqt/${DATE}.alpaca_sim_md.db"
, "exchange_id": "ALPACA"
, "instruments": ["STOCK-COIN", "STOCK-CAN"]
, "md_types": {
@@ -54,6 +56,8 @@
, "tape"
]
, "time_column": "tstamp"
, "from_time": "${FROM_TIME}"
, "to_time": "${TO_TIME}"
}
, "BOOK_TOP": {
"table_name": "md_quotes"
@@ -71,6 +75,8 @@
, "ask_qty as ask_quantity"
]
, "time_column": "tstamp"
, "from_time": "${FROM_TIME}"
, "to_time": "${TO_TIME}"
}
# , "HIST_BAR": {
# "table_name": "md_1min_bars"
+9
View File
@@ -21,6 +21,15 @@
"read_only": "ALPACA_SANDBOX"
}
}
, "ALPACA_PROD": {
"accounting": {
"enabled": true
, "streaming": false
}
, "credentials_key": {
"read_only": "ALPACA_PROD"
}
}
, "GEMINI-SNDBX": {
"accounting": {
"enabled": true
+9 -1
View File
@@ -21,8 +21,16 @@
"read_only": "ALPACA_SANDBOX"
}
}
, "ALPACA_PROD": {
"accounting": {
"enabled": true
, "streaming": false
}
, "credentials_key": {
"read_only": "ALPACA_PROD"
}
}
}
, "refdata": @inc=http://${CONFIG_SERVICE}/refdata/refdata
, "comm": @inc=http://${CONFIG_SERVICE}/apps/common/comm
}