moving redis to comm

This commit is contained in:
Cryptoval Trading Technologies 2024-10-26 00:18:37 +00:00
parent 641b083a49
commit d468bdfd79
23 changed files with 106 additions and 131 deletions

View File

@ -1,11 +1,11 @@
{ {
"type": "redis", "type": "redis",
"redis_settings": "localhost" "comm_settings": "/comm/pubsub/redis/localhost"
, "app_channels": { , "app_channels": {
"executor": "EXEC" "executor": "EXEC"
, "risk_manager": "RMGR" , "risk_manager": "RMGR"
, "trader": "TRDR" , "trader": "TRDR"
, "quant": "QUANT" , "quant": "QUANT"
} }
} }

View File

@ -1,7 +1,7 @@
@var CONFIG_SERVICE=cloud23.cvtt.vpn:6789
{ {
"refdata": @inc=http://cloud11.cvtt.vpn:6789/refdata/refdata "refdata": @inc=http://${CONFIG_SERVICE}/refdata/refdata
, "redis": @inc=http://cloud11.cvtt.vpn:6789/apps/common/redis , "comm": @inc=http://${CONFIG_SERVICE}/apps/common/comm
, "cvttcomm": @inc=http://cloud11.cvtt.vpn:6789/apps/cvttcomm
, "exchanges_settings": { , "exchanges_settings": {
"COINBASE_AT": { "COINBASE_AT": {
"order_entry": { "order_entry": {

View File

@ -2,8 +2,7 @@
{ {
"refdata": @inc=http://${CONFIG_SERVICE}/refdata/refdata "refdata": @inc=http://${CONFIG_SERVICE}/refdata/refdata
, "redis": @inc=http://${CONFIG_SERVICE}/apps/common/redis , "comm": @inc=http://${CONFIG_SERVICE}/apps/common/comm
, "cvttcomm": @inc=http://${CONFIG_SERVICE}/apps/cvttcomm
, "quant": { , "quant": {
"books": { "books": {
"CVTT_BK01": {} "CVTT_BK01": {}

View File

@ -1,9 +1,7 @@
@var CONFIG_SERVICE=cloud23.cvtt.vpn:6789
{ {
"refdata": @inc=http://${CONFIG_SERVICE}/refdata/refdata
"refdata": @inc=http://cloud11.cvtt.vpn:6789/refdata/refdata , "comm": @inc=http://${CONFIG_SERVICE}/apps/common/comm
, "cvttcomm": @inc=http://cloud11.cvtt.vpn:6789/apps/cvttcomm
, "redis": @inc=http://cloud11.cvtt.vpn:6789/apps/common/redis
, "risk_manager": { , "risk_manager": {
"book": "CVTT_BK01" "book": "CVTT_BK01"
, "database": { , "database": {

View File

@ -1,7 +1,7 @@
@var CONFIG_SERVICE=cloud23.cvtt.vpn:6789
{ {
"refdata": @inc=http://cloud11.cvtt.vpn:6789/refdata/refdata "refdata": @inc=http://${CONFIG_SERVICE}/refdata/refdata
, "cvttcomm": @inc=http://cloud11.cvtt.vpn:6789/apps/cvttcomm , "comm": @inc=http://${CONFIG_SERVICE}/apps/common/comm
, "redis": @inc=http://cloud11.cvtt.vpn:6789/apps/common/redis
, "exchanges_settings": { , "exchanges_settings": {
"COINBASE_AT": { "COINBASE_AT": {
"mkt_data": { "mkt_data": {

View File

@ -3,7 +3,7 @@
"dynamic_stock_list": { "dynamic_stock_list": {
"exchange_id": "ALPACA" "exchange_id": "ALPACA"
, "list_source": "redis" , "list_source": "redis"
, "redis_settings": "cvtt-prod-eqty-01" , "comm_settings": "/comm/pubsub/redis/cvtt-prod-eqty-01"
, "redis_key": "DAY_STOCK_LIST" , "redis_key": "DAY_STOCK_LIST"
} }
} }

View File

@ -3,7 +3,7 @@
@var SourcePath=/home/oleg/develop/cvtt2/tmp @var SourcePath=/home/oleg/develop/cvtt2/tmp
{ {
"refdata": @inc=http://${CONFIG_SERVICE}/refdata/refdata "refdata": @inc=http://${CONFIG_SERVICE}/refdata/refdata
, "redis": @inc=http://${CONFIG_SERVICE}/apps/common/redis , "comm": @inc=http://${CONFIG_SERVICE}/apps/common/comm
, "algos": @inc=http://${CONFIG_SERVICE}/apps/common/algos , "algos": @inc=http://${CONFIG_SERVICE}/apps/common/algos
, "session_type": "CALENDAR" , "session_type": "CALENDAR"

View File

@ -1,35 +1,43 @@
# INTENDED TO REPLACE redis.cfg # /comm
{ {
"redis": { "pubsub" : {
"localhost": { "redis": {
"url": "redis://localhost" "localhost": {
, "read_timeout" : 0.01 "url": "redis://localhost"
, "ping_timeout_secs": 2.0 , "type": "redis"
} , "read_timeout" : 0.01
, "cvttdata": { , "ping_timeout_secs": 2.0
"url": "redis://cvttdata.cvtt.vpn" }
, "read_timeout" : 0.01 , "cvttdata": {
, "ping_timeout_secs": 2.0 "url": "redis://cvttdata.cvtt.vpn"
} , "type": "redis"
, "cvtt-testserver": { , "read_timeout" : 0.01
"url": "redis://cvtt-testserver.cvtt.vpn" , "ping_timeout_secs": 2.0
, "read_timeout" : 0.01 }
, "ping_timeout_secs": 2.0 , "cvtt-testserver": {
} "url": "redis://cvtt-testserver.cvtt.vpn"
, "cvtt-prod-eqty-01": { , "type": "redis"
"url": "redis://cvtt-prod-eqty-01.cvtt.vpn" , "read_timeout" : 0.01
, "read_timeout" : 0.01 , "ping_timeout_secs": 2.0
, "ping_timeout_secs": 2.0 }
} , "cvtt-prod-eqty-01": {
, "cvtt-prod-03": { "url": "redis://cvtt-prod-eqty-01.cvtt.vpn"
"url": "redis://cvtt-prod-03.cvtt.vpn" , "type": "redis"
, "read_timeout" : 0.01 , "read_timeout" : 0.01
, "ping_timeout_secs": 2.0 , "ping_timeout_secs": 2.0
} }
, "cvtt-prod-eqty-01": { , "cvtt-prod-03": {
"url": "redis://cvtt-prod-eqty-01.cvtt.vpn" "url": "redis://cvtt-prod-03.cvtt.vpn"
, "read_timeout" : 0.01 , "type": "redis"
, "ping_timeout_secs": 2.0 , "read_timeout" : 0.01
, "ping_timeout_secs": 2.0
}
, "cvtt-prod-eqty-01": {
"url": "redis://cvtt-prod-eqty-01.cvtt.vpn"
, "type": "redis"
, "read_timeout" : 0.01
, "ping_timeout_secs": 2.0
}
} }
} }
} }

View File

@ -1,32 +0,0 @@
{
"localhost": {
"url": "redis://localhost"
, "read_timeout" : 0.01
, "ping_timeout_secs": 2.0
}
, "cvttdata": {
"url": "redis://cvttdata.cvtt.vpn"
, "read_timeout" : 0.01
, "ping_timeout_secs": 2.0
}
, "cvtt-testserver": {
"url": "redis://cvtt-testserver.cvtt.vpn"
, "read_timeout" : 0.01
, "ping_timeout_secs": 2.0
}
, "cvtt-prod-eqty-01": {
"url": "redis://cvtt-prod-eqty-01.cvtt.vpn"
, "read_timeout" : 0.01
, "ping_timeout_secs": 2.0
}
, "cvtt-prod-03": {
"url": "redis://cvtt-prod-03.cvtt.vpn"
, "read_timeout" : 0.01
, "ping_timeout_secs": 2.0
}
, "cvtt-prod-eqty-01": {
"url": "redis://cvtt-prod-eqty-01.cvtt.vpn"
, "read_timeout" : 0.01
, "ping_timeout_secs": 2.0
}
}

View File

@ -3,12 +3,13 @@
{ {
"refdata": @inc=http://${CONFIG_SERVICE}/refdata/refdata "refdata": @inc=http://${CONFIG_SERVICE}/refdata/refdata
, "redis": @inc=http://${CONFIG_SERVICE}/apps/common/redis , "comm": @inc=http://${CONFIG_SERVICE}/apps/common/comm
, "cvttcomm": { , "comm_settings": "/comm/pubsub/redis/cloud17"
"type": "redis" # , "cvttcomm": {
# , "redis_settings": "localhost" # "type": "redis"
, "redis_settings": "cloud17" # # , "comm_settings": "/comm/pubsub/redis/localhost"
} # , "comm_settings": "/comm/pubsub/redis/cloud17"
# }
, "session_type": "PERMANENT" , "session_type": "PERMANENT"
, "books": { , "books": {
"CVTT_BK01": {} "CVTT_BK01": {}

View File

@ -3,12 +3,11 @@
{ {
"refdata": @inc=http://${CONFIG_SERVICE}/refdata/refdata "refdata": @inc=http://${CONFIG_SERVICE}/refdata/refdata
, "redis": @inc=http://${CONFIG_SERVICE}/apps/common/redis , "comm": @inc=http://${CONFIG_SERVICE}/apps/common/comm
, "cvttcomm": { , "comm_settings": "/comm/pubsub/redis/cloud17"
"type": "redis" # , "cvttcomm": {
# , "redis_settings": "localhost" # "type": "redis"
, "redis_settings": "cloud17" # }
}
, "session_type": "PERMANENT" , "session_type": "PERMANENT"
, "books": { , "books": {
"CVTT_BK01": {} "CVTT_BK01": {}

View File

@ -3,12 +3,9 @@
{ "___dummy___": null { "___dummy___": null
, "refdata": @inc=http://${CONFIG_SERVICE}/refdata/refdata , "refdata": @inc=http://${CONFIG_SERVICE}/refdata/refdata
, "redis": @inc=http://${CONFIG_SERVICE}/apps/common/redis , "comm": @inc=http://${CONFIG_SERVICE}/apps/common/comm
, "active_instruments": @inc=http://${CONFIG_SERVICE}/apps/active_instruments , "active_instruments": @inc=http://${CONFIG_SERVICE}/apps/active_instruments
, "cvttcomm": { , "comm_settings": "/comm/pubsub/redis/cvtt-prod-eqty-01"
"type": "redis"
, "redis_settings": "cvtt-prod-eqty-01"
}
, "session_type": "CALENDAR" , "session_type": "CALENDAR"
, "calendar_session": { , "calendar_session": {
"trading_hours_url": [ "trading_hours_url": [

View File

@ -3,5 +3,5 @@
{ {
# ---------------------------------- # ----------------------------------
"refdata": @inc=http://${CONFIG_SERVICE}/refdata/refdata "refdata": @inc=http://${CONFIG_SERVICE}/refdata/refdata
, "redis": @inc=http://${CONFIG_SERVICE}/apps/common/redis , "comm": @inc=http://${CONFIG_SERVICE}/apps/common/comm
} }

View File

@ -2,15 +2,16 @@
{ {
"refdata": @inc=http://${CONFIG_SERVICE}/refdata/refdata "refdata": @inc=http://${CONFIG_SERVICE}/refdata/refdata
, "redis": @inc=http://${CONFIG_SERVICE}/apps/common/redis , "comm": @inc=http://${CONFIG_SERVICE}/apps/common/comm
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
// This is used only for dynamically loaded instrument lists (as for Alpaca) // This is used only for dynamically loaded instrument lists (as for Alpaca)
, "active_instruments": @inc=http://${CONFIG_SERVICE}/apps/active_instruments , "active_instruments": @inc=http://${CONFIG_SERVICE}/apps/active_instruments
, "cvttcomm": { , "comm_settings": "/comm/pubsub/redis/cvtt-prod-eqty-01"
"type": "redis" # , "cvttcomm": {
, "redis_settings": "cvtt-prod-eqty-01" # "type": "redis"
} # , "comm_settings": "/comm/pubsub/redis/cvtt-prod-eqty-01"
# }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
, "md_recorder": { , "md_recorder": {

View File

@ -9,9 +9,10 @@
}, },
} }
} }
, "cvttcomm": { , "comm_settings": "/comm/pubsub/redis/localhost"
"type": "redis" # , "cvttcomm": {
, "redis_settings": "localhost" # "type": "redis"
} # , "comm_settings": "/comm/pubsub/redis/localhost"
# }
} }

View File

@ -15,9 +15,10 @@
}, },
} }
} }
, "cvttcomm": { , "comm_settings": "/comm/pubsub/redis/localhost"
"type": "redis" # , "cvttcomm": {
, "redis_settings": "localhost" # "type": "redis"
} # , "comm_settings": "/comm/pubsub/redis/localhost"
# }
} }

View File

@ -7,9 +7,9 @@
{ {
"refdata": @inc=http://${CONFIG_SERVICE}/refdata/refdata "refdata": @inc=http://${CONFIG_SERVICE}/refdata/refdata
, "redis": @inc=http://${CONFIG_SERVICE}/apps/common/redis
, "comm": @inc=http://${CONFIG_SERVICE}/apps/common/comm , "comm": @inc=http://${CONFIG_SERVICE}/apps/common/comm
, "redis_settings": "localhost" , "comm": @inc=http://${CONFIG_SERVICE}/apps/common/comm
, "comm_settings": "/comm/pubsub/redis/localhost"
, "simulation": { , "simulation": {
# "speed_factor": 1.0, # "speed_factor": 1.0,
"speed_factor": 0.0, "speed_factor": 0.0,

View File

@ -32,6 +32,6 @@
} }
} }
, "refdata": @inc=http://${CONFIG_SERVICE}/refdata/refdata , "refdata": @inc=http://${CONFIG_SERVICE}/refdata/refdata
, "redis": @inc=http://${CONFIG_SERVICE}/apps/common/redis , "comm": @inc=http://${CONFIG_SERVICE}/apps/common/comm
} }

View File

@ -23,6 +23,6 @@
} }
} }
, "refdata": @inc=http://${CONFIG_SERVICE}/refdata/refdata , "refdata": @inc=http://${CONFIG_SERVICE}/refdata/refdata
, "redis": @inc=http://${CONFIG_SERVICE}/apps/common/redis , "comm": @inc=http://${CONFIG_SERVICE}/apps/common/comm
} }

View File

@ -1,7 +1,7 @@
@var CONFIG_SERVICE=cloud23.cvtt.vpn:6789 @var CONFIG_SERVICE=cloud23.cvtt.vpn:6789
{ {
"refdata": @inc=http://${CONFIG_SERVICE}/refdata/refdata "refdata": @inc=http://${CONFIG_SERVICE}/refdata/refdata
, "redis": @inc=http://${CONFIG_SERVICE}/apps/common/redis , "comm": @inc=http://${CONFIG_SERVICE}/apps/common/comm
, "active_instruments": @inc=http://${CONFIG_SERVICE}/apps/active_instruments , "active_instruments": @inc=http://${CONFIG_SERVICE}/apps/active_instruments
"exchanges_settings": { "exchanges_settings": {
"*": { "*": {
@ -19,7 +19,7 @@
} }
# , "cvttcomm": { # , "cvttcomm": {
# "type": "redis" # "type": "redis"
# , "redis_settings": "localhost" # , "comm_settings": "/comm/pubsub/redis/localhost"
# } # }
} }

View File

@ -1,7 +1,7 @@
@var CONFIG_SERVICE=cloud23.cvtt.vpn:6789 @var CONFIG_SERVICE=cloud23.cvtt.vpn:6789
{ {
"refdata": @inc=http://${CONFIG_SERVICE}/refdata/refdata "refdata": @inc=http://${CONFIG_SERVICE}/refdata/refdata
, "redis": @inc=http://${CONFIG_SERVICE}/apps/common/redis , "comm": @inc=http://${CONFIG_SERVICE}/apps/common/comm
, "active_instruments": @inc=http://${CONFIG_SERVICE}/apps/active_instruments , "active_instruments": @inc=http://${CONFIG_SERVICE}/apps/active_instruments
, "exchanges_settings": { , "exchanges_settings": {
"*": { "*": {
@ -11,10 +11,11 @@
}, },
} }
} }
, "cvttcomm": { , "comm_settings": "/comm/pubsub/redis/cvtt-prod-eqty-01"
"type": "redis" # , "cvttcomm": {
, "redis_settings": "cvtt-prod-eqty-01" # "type": "redis"
} # , "comm_settings": "/comm/pubsub/redis/cvtt-prod-eqty-01"
# }
, "md_portal": { , "md_portal": {
"app_channel": "MD_PORTAL" "app_channel": "MD_PORTAL"
} }

View File

@ -1,13 +1,14 @@
@var CONFIG_SERVICE=cloud23.cvtt.vpn:6789 @var CONFIG_SERVICE=cloud23.cvtt.vpn:6789
{ {
"refdata": @inc=http://${CONFIG_SERVICE}/refdata/refdata "refdata": @inc=http://${CONFIG_SERVICE}/refdata/refdata
, "redis": @inc=http://${CONFIG_SERVICE}/apps/common/redis , "comm": @inc=http://${CONFIG_SERVICE}/apps/common/comm
, "cvttcomm": { , "comm_settings": "/comm/pubsub/redis/cvtt-prod"
"type": "redis" # , "cvttcomm": {
# , "redis_settings": "localhost" # "type": "redis"
, "redis_settings": "cvtt-prod" # # , "comm_settings": "/comm/pubsub/redis/localhost"
} # , "comm_settings": "/comm/pubsub/redis/cvtt-prod"
# }
, "executor": { , "executor": {
"app_channel": "EXEC" "app_channel": "EXEC"
} }

View File

@ -435,7 +435,7 @@
, "mktdata" : { , "mktdata" : {
"class": "cvttpy.exchanges.proxies.md_portal_clnt.mkt_data.MktDataPortalFeed" "class": "cvttpy.exchanges.proxies.md_portal_clnt.mkt_data.MktDataPortalFeed"
, "redis_settings": "cvtt-prod-eqty-01" , "comm_settings": "/comm/pubsub/redis/cvtt-prod-eqty-01"
, "channel_prefix": "MD_ALPACA_SNDBX" , "channel_prefix": "MD_ALPACA_SNDBX"
} }
} }
@ -446,7 +446,7 @@
, "mktdata" : { , "mktdata" : {
"class": "cvttpy.exchanges.proxies.md_portal_clnt.mkt_data.MktDataPortalFeed" "class": "cvttpy.exchanges.proxies.md_portal_clnt.mkt_data.MktDataPortalFeed"
, "redis_settings": "cvtt-prod-03" , "comm_settings": "/comm/pubsub/redis/cvtt-prod-03"
, "channel_prefix": "MD_ALPACA_03" , "channel_prefix": "MD_ALPACA_03"
} }
} }