mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 06:44:22 +01:00
funding auto renew
This commit is contained in:
21
examples/rest/funding_auto_renew.py
Normal file
21
examples/rest/funding_auto_renew.py
Normal file
@@ -0,0 +1,21 @@
|
||||
# python -c "import examples.rest.funding_auto_renew"
|
||||
|
||||
import os
|
||||
|
||||
from bfxapi.client import Client, Constants
|
||||
|
||||
bfx = Client(
|
||||
REST_HOST=Constants.REST_HOST,
|
||||
API_KEY=os.getenv("BFX_API_KEY"),
|
||||
API_SECRET=os.getenv("BFX_API_SECRET")
|
||||
)
|
||||
|
||||
notification = bfx.rest.auth.submit_funding_toggle_auto_renew(
|
||||
status=True,
|
||||
currency="USD",
|
||||
amount="150",
|
||||
rate="0",
|
||||
period=2
|
||||
)
|
||||
|
||||
print("Renew toggle notification:", notification)
|
||||
Reference in New Issue
Block a user