Compare commits
2 Commits
ca552f5a7a
...
505ba1a42d
Author | SHA1 | Date | |
---|---|---|---|
|
505ba1a42d | ||
|
7fd61d13e5 |
4
app.py
4
app.py
@ -61,8 +61,8 @@ def get_inference(token, period):
|
||||
|
||||
def convert_period_to_seconds(period):
|
||||
"""Конвертируем период в секунды."""
|
||||
if period.endswith("min"):
|
||||
return int(period[:-3]) * 60
|
||||
if period.endswith("m"):
|
||||
return int(period[:-1]) * 60
|
||||
elif period.endswith("h"):
|
||||
return int(period[:-1]) * 3600
|
||||
elif period.endswith("d"):
|
||||
|
60
config.json
60
config.json
@ -11,32 +11,50 @@
|
||||
"submitTx": false
|
||||
},
|
||||
"worker": [
|
||||
{
|
||||
{
|
||||
"topicId": 1,
|
||||
"inferenceEntrypointName": "api-worker-reputer",
|
||||
"loopSeconds": 5,
|
||||
"parameters": {
|
||||
"InferenceEndpoint": "http://inference:8000/inference/{Token}",
|
||||
"Token": "ETH"
|
||||
}
|
||||
"inferenceEntrypointName": "api-worker-reputer", "loopSeconds": 5,
|
||||
"parameters": { "InferenceEndpoint": "http://inference:8080/inference/ETH/10m", "Token": "ETH" }
|
||||
},
|
||||
{
|
||||
{
|
||||
"topicId": 2,
|
||||
"inferenceEntrypointName": "api-worker-reputer",
|
||||
"loopSeconds": 5,
|
||||
"parameters": {
|
||||
"InferenceEndpoint": "http://inference:8000/inference/{Token}",
|
||||
"Token": "ETH"
|
||||
}
|
||||
"inferenceEntrypointName": "api-worker-reputer", "loopSeconds": 5,
|
||||
"parameters": { "InferenceEndpoint": "http://inference:8080/inference/ETH/24h", "Token": "ETH" }
|
||||
},
|
||||
{
|
||||
{
|
||||
"topicId": 3,
|
||||
"inferenceEntrypointName": "api-worker-reputer", "loopSeconds": 5,
|
||||
"parameters": { "InferenceEndpoint": "http://inference:8080/inference/BTC/10m", "Token": "BTC" }
|
||||
},
|
||||
{
|
||||
"topicId": 4,
|
||||
"inferenceEntrypointName": "api-worker-reputer", "loopSeconds": 5,
|
||||
"parameters": { "InferenceEndpoint": "http://inference:8080/inference/BTC/24h", "Token": "BTC" }
|
||||
},
|
||||
{
|
||||
"topicId": 5,
|
||||
"inferenceEntrypointName": "api-worker-reputer", "loopSeconds": 5,
|
||||
"parameters": { "InferenceEndpoint": "http://inference:8080/inference/SOL/10m", "Token": "SOL" }
|
||||
},
|
||||
{
|
||||
"topicId": 6,
|
||||
"inferenceEntrypointName": "api-worker-reputer", "loopSeconds": 5,
|
||||
"parameters": { "InferenceEndpoint": "http://inference:8080/inference/SOL/24h", "Token": "SOL" }
|
||||
},
|
||||
{
|
||||
"topicId": 7,
|
||||
"inferenceEntrypointName": "api-worker-reputer",
|
||||
"loopSeconds": 5,
|
||||
"parameters": {
|
||||
"InferenceEndpoint": "http://inference:8000/inference/{Token}",
|
||||
"Token": "ETH"
|
||||
}
|
||||
"inferenceEntrypointName": "api-worker-reputer", "loopSeconds": 5,
|
||||
"parameters": { "InferenceEndpoint": "http://inference:8080/inference/ETH/20m", "Token": "ETH" }
|
||||
},
|
||||
{
|
||||
"topicId": 8,
|
||||
"inferenceEntrypointName": "api-worker-reputer", "loopSeconds": 5,
|
||||
"parameters": { "InferenceEndpoint": "http://inference:8080/inference/BNB/20m", "Token": "BNB" }
|
||||
},
|
||||
{
|
||||
"topicId": 9,
|
||||
"inferenceEntrypointName": "api-worker-reputer", "loopSeconds": 5,
|
||||
"parameters": { "InferenceEndpoint": "http://inference:8080/inference/ARB/20m", "Token": "ARB" }
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user