. Decorator for api endpoints error handling

. Input validation in api parameters
. credentials.py import fallback
This commit is contained in:
Nicolás Sánchez 2026-06-04 15:07:47 -03:00
parent ca817b6a13
commit e888ee0c78
3 changed files with 289 additions and 322 deletions

View File

@ -3,7 +3,9 @@
. Minor fixes to string handling
. Fixed misplaced lock
. Fixed config dict mutation
. Decorator for api endpoints error handling
. Input validation in api parameters
. credentials.py import fallback
2026.06.03:
. Fixed tp mode 2 non-functional

View File

@ -1,6 +1,5 @@
import collections
import time
import credentials
import sqlite3
from contextlib import contextmanager
from requests import get as requests_get
@ -8,6 +7,11 @@ from json import load, dumps
from copy import deepcopy
from urllib.parse import quote
try:
import credentials
except ModuleNotFoundError:
print("ERROR: credentials.py not found. Copy credentials.py.example to credentials.py and fill in your API keys")
raise
class Broker:
def __init__(self,exchange,broker_config,config_filename):

601
main.py

File diff suppressed because it is too large Load Diff