increase position

This commit is contained in:
itsdeka
2023-01-25 20:14:00 +01:00
committed by Davide Casale
parent 05827ff5d1
commit 374f65d660
4 changed files with 76 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
# python -c "import examples.rest.increase_position"
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")
)
increase_info = bfx.rest.auth.get_increase_position_info(symbol="tBTCUSD", amount=0.0001)
print(increase_info)
# increase a margin position
notification = bfx.rest.auth.increase_position(symbol="tBTCUSD", amount=0.0001)
print(notification.NOTIFY_INFO)