mcpField
B
blofin-account-manager

blofin-account-manager

github.com/blofinOther881 installsUpdated 32w ago
Repository

About blofin-account-manager

A skill for managing BloFin futures account data and settings through blofin-mcp. It covers balance and position checks as well as changes to leverage and account modes, with confirmation and risk checks for changes.

Key features

  1. 01View futures balances and unrealized PnL
  2. 02Inspect open positions and liquidation prices
  3. 03Check and change leverage settings
  4. 04Manage margin and position modes
  5. 05Review account configuration

Use cases

  1. 01Check available funds before trading
  2. 02Review position exposure and unrealized PnL
  3. 03Adjust leverage after confirming the change
  4. 04Switch margin or position mode

MCP support

It uses tools exposed through blofin-mcp to access the authenticated BloFin futures account.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/blofin/blofin-skills-hub --skill blofin-account-manager

After installing, type/blofin-account-managerin Claude Code to confirm it loaded.

Details

From the project README

BloFin Account Manager

Manage your BloFin futures trading account — balances, positions, leverage, margin mode, and account configuration. All tools require authenticated API access.

Available Tools (via blofin-mcp)

get_balance — Futures Account Balance

Check your futures trading account balance.

Use get_balance to check account funds.

Key response fields:

  • totalEquity — Total account equity in USD
  • isolatedEquity — Equity in isolated margin positions
  • details array per currency:
    • currency, equity, balance, availableEquity, available
    • frozen, orderFrozen — Funds locked in orders
    • unrealizedPnl — Current unrealized profit/loss
    • isolatedUnrealizedPnl — Isolated position unrealized PnL

Example prompts:

  • "What's my BloFin account balance?"
  • "How much available margin do I have?"
  • "Show my unrealized PnL"

get_positions — Open Positions

View all currently open positions.

Use get_positions to see current open positions.

Parameters:

ParameterTypeRequiredDescription
instIdStringNoFilter by instrument, e.g. BTC-USDT

Key response fields:

  • instId — Instrument
  • positionSide — long, short, or net
  • positions — Position size (contracts)
  • availablePositions — Closeable position size
  • averagePrice — Average entry price
  • unrealizedPnl — Unrealized profit/loss
  • unrealizedPnlRatio — PnL percentage
  • leverage — Current leverage
  • marginMode — cross or isolated
  • liquidationPrice — Estimated liquidation price
  • margin — Position margin
  • markPrice — Current mark price

Example prompts:

  • "Show all my open positions"
  • "What's my BTC position?"
  • "Am I in profit or loss?"
  • "How close am I to liquidation?"

get_leverage_info — View Leverage

Check current leverage settings for an instrument.

Use get_leverage_info to see the current leverage configuration.

Parameters:

ParameterTypeRequiredDescription
instIdStringYesInstrument ID, e.g. BTC-USDT
marginModeStringYescross or isolated

Example prompts:

  • "What leverage am I using for BTC-USDT?"
  • "Show my leverage settings"

set_leverage — Adjust Leverage

Change the leverage for a specific instrument.

Use set_leverage to adjust leverage. Confirm with the user before applying changes.

Parameters:

ParameterTypeRequiredDescription
instIdStringYesInstrument ID, e.g. BTC-USDT
leverageStringYesLeverage value, e.g. 10
marginModeStringYescross or isolated
positionSideStringNolong or short (for hedge mode)

Important constraints:

  • Max leverage varies by instrument (check via get_instruments → maxLeverage)
  • Cannot change leverage while there are pending cross orders (error 110006)
  • May need to cancel open orders and close positions first (error 110019)

Example prompts:

  • "Set my BTC-USDT leverage to 10x"
  • "Lower my ETH leverage to 5x isolated"
  • "What's the maximum leverage I can use for SOL-USDT?"

get_margin_mode / set_margin_mode — Margin Mode

View or change between cross and isolated margin modes.

Use get_margin_mode / set_margin_mode to manage margin mode.
Always confirm with the user before switching margin mode.

Parameters (set):

ParameterTypeRequiredDescription
instIdStringYesInstrument ID
marginModeStringYescross or isolated

Margin mode comparison:

FeatureCrossIsolated
Margin sharingShared across positionsPer-position
Liquidation riskAll positions affectedOnly the isolated position
Capital efficiencyHigherLower
Risk controlLess granularMore granular

Example prompts:

  • "Switch BTC-USDT to isolated margin"
  • "What margin mode am I using for ETH?"

get_position_mode / set_position_mode — Position Mode

View or change between one-way and hedge position modes.

Use get_position_mode / set_position_mode to manage position mode.
Always confirm with the user before switching.

Parameters (set):

ParameterTypeRequiredDescription
positionModeStringYeslong_short_mode (hedge) or net_mode (one-way)

Position mode comparison:

ModeDescription
net_modeOne-way mode. Can only hold one direction per instrument.
long_short_modeHedge mode. Can hold both long and short positions simultaneously.

get_account_config — Account Configuration

Get the overall account configuration settings.

Use get_account_config to review account settings.

Example prompts:

  • "Show my BloFin account configuration"
  • "What position mode am I using?"

Safety Rules

  1. Always confirm with the user before changing leverage, margin mode, or position mode
  2. Warn about liquidation risk when leverage is set above 20x
  3. Check for open positions before changing margin mode (may fail with existing positions)
  4. Display unrealized PnL prominently when showing positions — users need to know their current risk exposure

Comments

Markdown supported