created new config lib
This commit is contained in:
parent
bc14acaeba
commit
68a4c2d550
36 changed files with 2681 additions and 134 deletions
71
config/default.json
Normal file
71
config/default.json
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
{
|
||||
"app": {
|
||||
"name": "stock-bot",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
"service": {
|
||||
"name": "default-service",
|
||||
"port": 3000,
|
||||
"environment": "development"
|
||||
},
|
||||
"database": {
|
||||
"postgres": {
|
||||
"host": "localhost",
|
||||
"port": 5432,
|
||||
"database": "trading_bot",
|
||||
"username": "trading_user",
|
||||
"password": "trading_pass_dev",
|
||||
"maxConnections": 10
|
||||
},
|
||||
"questdb": {
|
||||
"host": "localhost",
|
||||
"httpPort": 9000,
|
||||
"pgPort": 8812,
|
||||
"database": "questdb"
|
||||
},
|
||||
"mongodb": {
|
||||
"uri": "mongodb://trading_admin:trading_mongo_dev@localhost:27017/stock?authSource=admin",
|
||||
"database": "stock",
|
||||
"connectionTimeout": 30000,
|
||||
"serverSelectionTimeout": 5000
|
||||
},
|
||||
"dragonfly": {
|
||||
"host": "localhost",
|
||||
"port": 6379,
|
||||
"password": "",
|
||||
"db": 0,
|
||||
"keyPrefix": "stock-bot:"
|
||||
}
|
||||
},
|
||||
"logging": {
|
||||
"level": "info",
|
||||
"format": "json",
|
||||
"prettyPrint": true
|
||||
},
|
||||
"providers": {
|
||||
"yahoo": {
|
||||
"enabled": true,
|
||||
"rateLimit": 5,
|
||||
"timeout": 30000
|
||||
},
|
||||
"quoteMedia": {
|
||||
"enabled": false,
|
||||
"apiKey": "",
|
||||
"baseUrl": "https://app.quotemedia.com/data",
|
||||
"rateLimit": 10,
|
||||
"timeout": 30000
|
||||
},
|
||||
"interactiveBrokers": {
|
||||
"enabled": false,
|
||||
"host": "localhost",
|
||||
"port": 7497,
|
||||
"clientId": 1
|
||||
}
|
||||
},
|
||||
"features": {
|
||||
"realtime": true,
|
||||
"backtesting": true,
|
||||
"paperTrading": true,
|
||||
"notifications": false
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue