mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 23:04:21 +01:00
Add barebone files for rest section.
This commit is contained in:
12
bfxapi/rest/BfxRestInterface.py
Normal file
12
bfxapi/rest/BfxRestInterface.py
Normal file
@@ -0,0 +1,12 @@
|
||||
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()
|
||||
)
|
||||
Reference in New Issue
Block a user