{
  "opencollection": "1.0.0",
  "info": {
    "name": "Phemex Contract Trading Account Sub-Account Transfers API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "x-phemex-access-token",
      "value": "{{x-phemex-access-token}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Sub-Account Transfers",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get spot sub-account transfer history",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.phemex.com/assets/spots/sub-accounts/transfer",
            "params": [
              {
                "name": "currency",
                "value": "",
                "type": "query"
              },
              {
                "name": "start",
                "value": "",
                "type": "query"
              },
              {
                "name": "end",
                "value": "",
                "type": "query"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Query spot sub-account to main account transfer history."
        },
        {
          "info": {
            "name": "Transfer from spot sub-account",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.phemex.com/assets/spots/sub-accounts/transfer",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Transfer assets from a sub-account to the main account (spot)."
        },
        {
          "info": {
            "name": "Get futures sub-account transfer history",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.phemex.com/assets/futures/sub-accounts/transfer",
            "params": [
              {
                "name": "currency",
                "value": "",
                "type": "query"
              },
              {
                "name": "start",
                "value": "",
                "type": "query"
              },
              {
                "name": "end",
                "value": "",
                "type": "query"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Query futures sub-account to main account transfer history."
        },
        {
          "info": {
            "name": "Transfer from futures sub-account",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.phemex.com/assets/futures/sub-accounts/transfer",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Transfer assets from a sub-account to the main account (futures)."
        }
      ]
    }
  ],
  "bundled": true
}