Sen descrición

skyffire 3cec30eb5a 分数计算公式调整24。 hai 1 ano
exchanges 1de36d1d97 1.添加订阅数据部分 hai 1 ano
global 1de36d1d97 1.添加订阅数据部分 hai 1 ano
src 3cec30eb5a 分数计算公式调整24。 hai 1 ano
standard 1de36d1d97 1.添加订阅数据部分 hai 1 ano
.gitignore 6a6c5f59ce 初始化 hai 1 ano
Cargo.toml 6ff160551e 允许跨域 hai 1 ano
README.MD 3904176be4 分数计算公式调整15。 hai 1 ano
restart_data_center.sh.sample 39d7a7bf63 启动脚本 hai 1 ano
update.sh.sample 39d7a7bf63 启动脚本 hai 1 ano

README.MD

/rk/get_rank_list 获取分数排行榜

请求参数
名称 类型 必选
exchange String
response
{
    "query": {},                            // 你的查询参数,用于接口联调       
    "message": "hello",                     // 后台提醒
    "code": 200,                            // 200 就是对的
    "data": [                               // 排行榜结果
        {
            "symbol": "BTC_USDT",           // 币对
            "score": "205",                 // 总评分
            "msv_score": "157",             // 波动分数
            "liquidity_score": "33",        // 交易量分数
            "frequency_score": "15",        // 交易频次分数
            "msv_abs_total": "17.2",        // Sum(Abs(波动率))
            "msv_abs_max": "1.2",           // 最大Abs(波动率)
            "msv_abs_avg": "0.2",           // 平均Abs(波动率)
            "coverted_open_base": "0.007",  // 转换后的基础开仓值(0.007代表0.7%)
            "epr_total": "7.2",             // Sum(预期利润)
            "effective_count": "10",        // 有效波动次数
            "liquidity_avg": "3000",        // 平均行情推动量
        },
        ...
    ],
}
评分规则
score = msv_score + liquity_score + frequency_score

1. msv_score计算规则
当msv_abs_total > 0时, msv_score = effective_count * (epr_total / msv_abs_total) * 60 * msv_abs_avg
当msv_abs_total = 0时, msv_score = 0
   
2. liquity_score计算规则
liquidity_score = (liquidity_avg / 1000) * 20

3. frequency_score计算规则
frequency_score = (effective_count / 100) * 20

/rk/get_exchanges 获取交易所

response
{
    "msg": "查询成功",
    "query": null,
    "data": [
        "gate_usdt_swap",
        "bitget_usdt_swap",
        "binance_usdt_swap"
    ],
    "code": 200
}