mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 06:44:22 +01:00
13 lines
340 B
Python
13 lines
340 B
Python
import requests
|
|
from . import serializers
|
|
from .typings import PlatformStatus
|
|
|
|
class BfxRestInterface(object):
|
|
def __init__(self, host):
|
|
self.host = host
|
|
|
|
def platform_status(self) -> PlatformStatus:
|
|
return serializers.PlatformStatus.parse(
|
|
*requests.get(f"{self.host}/platform/status").json()
|
|
)
|