mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-20 07:14:20 +01:00
Add support for GET conf/pub:{Action}:{Object}:{Detail} endpoint. Add bfxapi/rest/enums.py script. Add Configs enumeration in enums.py.
This commit is contained in:
@@ -5,7 +5,9 @@ from http import HTTPStatus
|
||||
from typing import List, Union, Literal, Optional, Any
|
||||
|
||||
from . import serializers
|
||||
|
||||
from .typings import *
|
||||
from .enums import Configs
|
||||
from .exceptions import RequestParametersError, ResourceNotFound
|
||||
|
||||
class BfxRestInterface(object):
|
||||
@@ -155,4 +157,7 @@ class BfxRestInterface(object):
|
||||
|
||||
data = self.__GET(f"funding/stats/{symbol}/hist", params=params)
|
||||
|
||||
return [ serializers.FundingStat.parse(*subdata) for subdata in data ]
|
||||
return [ serializers.FundingStat.parse(*subdata) for subdata in data ]
|
||||
|
||||
def conf(self, config: Configs) -> Any:
|
||||
return self.__GET(f"conf/{config}")[0]
|
||||
Reference in New Issue
Block a user