. Decorator for api endpoints error handling
. Input validation in api parameters . credentials.py import fallback
This commit is contained in:
parent
ca817b6a13
commit
e888ee0c78
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue