mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 23:04:21 +01:00
Remove skip parameter in _Serializer::parse, add flat argument in _Serializer::__init__. Add _Serializer::__flatten class method. Fix small bugs in bfxapi.rest.endpoints.rest_public_endpoints and bfxapi.rest.endpoints.rest_authenticated_endpoints.
This commit is contained in:
@@ -20,7 +20,7 @@ class PlatformStatus(_Type):
|
||||
|
||||
@dataclass
|
||||
class TradingPairTicker(_Type):
|
||||
symbol: Optional[str]
|
||||
symbol: str
|
||||
bid: float
|
||||
bid_size: float
|
||||
ask: float
|
||||
@@ -34,7 +34,7 @@ class TradingPairTicker(_Type):
|
||||
|
||||
@dataclass
|
||||
class FundingCurrencyTicker(_Type):
|
||||
symbol: Optional[str]
|
||||
symbol: str
|
||||
frr: float
|
||||
bid: float
|
||||
bid_period: int
|
||||
@@ -114,7 +114,7 @@ class Candle(_Type):
|
||||
|
||||
@dataclass
|
||||
class DerivativesStatus(_Type):
|
||||
key: Optional[str]
|
||||
key: str
|
||||
mts: int
|
||||
deriv_price: float
|
||||
spot_price: float
|
||||
@@ -466,7 +466,7 @@ class Movement(_Type):
|
||||
|
||||
@dataclass
|
||||
class SymbolMarginInfo(_Type):
|
||||
symbol: Optional[str]
|
||||
symbol: str
|
||||
tradable_balance: float
|
||||
gross_balance: float
|
||||
buy: float
|
||||
|
||||
Reference in New Issue
Block a user