funding_bot配置信息

admin2023-11-27量化交易417
import datetime as dt

from .base import Configuration
from typing import Optional, List, Dict


class AccountConfiguration(Configuration):
    @classmethod
    def get_api_key(cls) -> str:
        # Bitfinex API Key
        return "J5lnR4*************************************91o2m"

    @classmethod
    def get_api_secret_key(cls) -> str:
        # Bitfinex API Secret Key
        return "Qmkt8Lq71************************yXYJzleTxgexfi5"

    @classmethod
    def get_telegram_chat_id(cls) -> Optional[str]:
        return '5895585220'

    @classmethod
    def get_dynamodb_table_name(cls) -> Optional[str]:
        return None

    @classmethod
    def get_funding_start_date(cls) -> Optional["dt.date"]:
        # Must be supplied unless dynamodb is setup to contain the initial balance info
        return '26-11-2023'

    @classmethod
    def get_initial_balance(cls) -> Dict[str, float]:
        # Must be supplied unless dynamodb is setup to contain the initial balance info
        return {"fUSD": 199.72852}

    @classmethod
    def get_telegram_api_key(cls) -> Optional[str]:
        return '6944884778540:*********************************************'

    @classmethod
    def get_funding_currencies(cls) -> List[str]:
        return ["fUSD"]

    @classmethod
    def get_minimum_lending_rate(cls) -> Dict[str, int]:
        # 年化收益率 如果填8,表示最低年化8
        return {"fUSD": 8}

    @classmethod
    def get_maximum_lending_amount(cls) -> Dict[str, int]:
        # 可借出总额
        return {"fUSD": 999999}

    @classmethod
    def get_sentry_dsn(cls) -> Optional[str]:
        return None


__all__ = [
    "AccountConfiguration",
]