Increase Position Margin

POST /fund

Assign additional margin to a position, decreasing the leverage. Only relevant for Isolated Margin users.

Responses

  • 200

    OK

    Hide response attributes Show response attributes object
    • code integer

      Response code

    • msg string

      Diagnostic message

    • result object

      Request result

      Hide result attributes Show result attributes
      • balances object

        Account balances

        Hide balances attribute Show balances attribute
        • ETH object

          ETH balance

          Hide ETH attributes Show ETH attributes
          • free number

            Available ETH balance

          • locked number

            ETH balance in use for open orders

          • ETH balance in use for pending withdrawals

          • pnl number

            ETH P&L. This number is updated every time you close an ETH-related position.

          • margin number

            ETH position margin.

          • fees number

            Fees paid since account creation.

      • Account positions

        Hide positions attribute Show positions attribute
  • 503

    Error

    Hide response attributes Show response attributes object
POST /fund
curl \
 -X POST https://api.everstrike.io/fund \
 -H "x-api-key: $API_KEY"
Response examples (200)
{
  "code": 200,
  "msg": "string",
  "result": {
    "balances": {
      "BTC": {
        "free": 21,
        "locked": 2,
        "withdrawn": 0
      }
    },
    "positions": {
      "USD_BTCCALL_PERP": {
        "size": 1,
        "free": 1,
        "locked": 0,
        "realized": 0,
        "stats": {
          "size": 1,
          "notional": 0.14,
          "margin": 1,
          "pnl": 0,
          "equity": 1,
          "roe": 0,
          "mark": 2.1,
          "avg_entry": 3.4,
          "leverage": 2.82,
          "lp": 3.7,
          "bankrupt": 3.78,
          "direction": "BUY"
        }
      }
    }
  }
}
Response examples (503)
{
  "code": 503,
  "msg": "Invalid request",
  "result": {}
}