Add database and redis settings
Этот коммит содержится в:
@@ -14,6 +14,8 @@ class Settings(BaseSettings):
|
|||||||
coinex_api_base: str = 'https://api.coinex.com/v2'
|
coinex_api_base: str = 'https://api.coinex.com/v2'
|
||||||
coinex_ws_spot: str = 'wss://socket.coinex.com/v2/spot'
|
coinex_ws_spot: str = 'wss://socket.coinex.com/v2/spot'
|
||||||
default_market: str = 'BTCUSDT'
|
default_market: str = 'BTCUSDT'
|
||||||
|
database_url: str = 'sqlite:///./trade.db'
|
||||||
|
redis_url: str = 'redis://localhost:6379/0'
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def live_enabled(self) -> bool:
|
def live_enabled(self) -> bool:
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user