PYTHON SDK
Manage your positions and bot with Mizar Python SDK
Install the Mizar client and follow the instruction below.
Open Position
from mizar import Mizar
mizar_client = Mizar()
mizar_client.dca_bot_open_position(
bot_id=1,
base_asset="BTC",
quote_asset="USDT",
)
It is allowed to override the take profit and stop loss of the bot for
mizar_client.dca_bot_open_position(
bot_id=1,
base_asset="BTC",
quote_asset="USDT",
take_profit_pct=0.05
stop_loss_pct=0.10
)Expected response
Close Position
Expected response
Shift Safety Orders
Expected response
Close All Positions
Expected response
Stop Bot and Close all positions
Expected response
Get Open Positions
Expected response
Get Safety Orders
Expected response
Get Active Safety Orders
Expected response
Get Inactive Safety Orders
Expected response
Get Take Profit Orders
Expected response
Last updated