mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 14:54:21 +01:00
21 lines
422 B
Python
21 lines
422 B
Python
# python -c "import examples.rest.funding_auto_renew"
|
|
|
|
import os
|
|
|
|
from bfxapi.client import Client, REST_HOST
|
|
|
|
bfx = Client(
|
|
REST_HOST=REST_HOST,
|
|
API_KEY=os.getenv("BFX_API_KEY"),
|
|
API_SECRET=os.getenv("BFX_API_SECRET")
|
|
)
|
|
|
|
notification = bfx.rest.auth.toggle_auto_renew(
|
|
status=True,
|
|
currency="USD",
|
|
amount="150",
|
|
rate="0", # FRR
|
|
period=2
|
|
)
|
|
|
|
print("Renew toggle notification:", notification) |