> ## Documentation Index
> Fetch the complete documentation index at: https://docs.yield.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Execute an action

> Build the unsigned transactions for a perps action such as opening a position, and return them for the wallet to sign.

Returns `200` with an action whose `transactions[]` you sign and submit in the order returned, using [Submit a transaction](https://docs.yield.xyz/api-reference/perps-api/actions/submit-transaction.md), then poll [Get an action](https://docs.yield.xyz/api-reference/perps-api/actions/get-action.md). Nothing executes until a signed payload is submitted. All 14 [action types](https://docs.yield.xyz/api-reference/perps-api/objects.md#action-types) are accepted; each provider's `supportedActions` and argument schemas come from `GET /v1/providers`.

Beyond the requested action, the response can contain [transactions returned before it](https://docs.yield.xyz/api-reference/perps-api/objects.md#transaction-types), such as `APPROVE_BUILDER_FEE` and `SET_USER_ABSTRACTION`. Sign every transaction returned, in order, even if you did not request it. Required arguments per action are in [Action arguments](https://docs.yield.xyz/api-reference/perps-api/objects.md#action-arguments).

```json Open a limit order theme={null}
{
  "providerId": "hyperliquid",
  "address": "0xYOUR_WALLET_ADDRESS",
  "action": "open",
  "args": {
    "marketId": "YOUR_MARKET_ID",
    "side": "long",
    "amount": "100",
    "leverage": 5,
    "marginMode": "cross",
    "limitPrice": 2000
  }
}
```

Errors use the `details.code` envelope described in [Errors and retries](https://docs.yield.xyz/api-reference/errors-retries.md). Codes specific to this route:

| Status | `details.code` | Cause |
| - | - | - |
| 400 | `EXECUTE_INVALID_PROVIDER` | Unknown or unsupported `providerId` |
| 400 | `EXECUTE_INVALID_ARGUMENT` | An argument failed validation, for example a notional below 10 USD |
| 400 | `EXECUTE_MISSING_ARGUMENTS` | A required argument for the action is missing |
| 403 | `EXECUTE_FORBIDDEN` | Caller region is blocked, or the project is explicitly disabled for the provider or for Perps |
| 404 | `EXECUTE_NOT_FOUND` | A referenced resource, such as the market, was not found |
| 412 | `EXECUTE_PRECONDITION_FAILED` | A precondition for the action is not met |
| 500 | `EXECUTE_INTERNAL` | Unexpected server error |
| 503 | `EXECUTE_SERVICE_UNAVAILABLE` | The provider is temporarily unavailable |

> [!WARNING]
>
> `POST /v1/actions` is the only Perps route behind the geolocation guard; it returns `403` for blocked regions. Read the [perpetuals disclaimer](https://docs.yield.xyz/legal/perpetuals-disclaimer.md) before integrating.


## OpenAPI

````yaml openapi-perps.json POST /v1/actions
openapi: 3.0.0
info:
  title: 'Yield API: Trade (Perps)'
  description: >-
    API Documentation. Errors follow a uniform envelope with `details.code` from
    the public catalog (https://docs.yield.xyz). ValidationPipe failures use
    `validation.message: string[]`.
  version: '1.0'
  contact: {}
servers:
  - url: https://perps.yield.xyz
    description: Production
security: []
tags:
  - name: Discovery
    description: Browse and discover perps markets, networks, and providers
  - name: Portfolio
    description: User-specific positions, orders, and balances
  - name: Actions
    description: Generate transactions to open, close, and manage positions
externalDocs:
  description: For more information
  url: https://docs.yield.xyz
paths:
  /v1/actions:
    post:
      tags:
        - Actions
        - Actions
      summary: Execute an action
      description: >-
        Generate unsigned transactions for a trading action (open/close
        positions, manage leverage, set stop loss/take profit, fund/withdraw).
        Returns transaction data ready to be signed by the user.
      operationId: ActionsController_executeAction_v1
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ActionRequestDto'
      responses:
        '200':
          description: Action created with unsigned transactions ready for signing
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActionDto'
        '400':
          description: >-
            See https://docs.yield.xyz for `details.code` values. ValidationPipe
            failures use `validation.message: string[]` in place of `details`.
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    required:
                      - statusCode
                      - timestamp
                      - path
                      - message
                      - validation
                    properties:
                      statusCode:
                        type: number
                      timestamp:
                        type: string
                        format: date-time
                      path:
                        type: string
                      message:
                        type: string
                      validation:
                        type: object
                        required:
                          - message
                        properties:
                          message:
                            type: array
                            items:
                              type: string
                            description: Class-validator constraint messages.
                  - type: object
                    required:
                      - statusCode
                      - timestamp
                      - path
                      - message
                    properties:
                      statusCode:
                        type: number
                      timestamp:
                        type: string
                        format: date-time
                      path:
                        type: string
                      message:
                        type: string
                      details:
                        type: object
                        properties:
                          code:
                            type: string
                            enum:
                              - EXECUTE_INVALID_PROVIDER
                              - EXECUTE_INVALID_ARGUMENT
                              - EXECUTE_MISSING_ARGUMENTS
                            description: >-
                              Public error code — see https://docs.yield.xyz for
                              the full list.
                          error:
                            type: string
                            description: HTTP status text (e.g. "Bad Request").
                          message:
                            type: string
                            description: Domain message when present.
                          reason:
                            type: string
                            description: Provider reason when present.
                          retryAfter:
                            type: number
                            description: >-
                              Seconds to wait before retrying (rate-limit
                              responses only).
                      validation:
                        type: object
                        description: >-
                          Present on ValidationPipe failures instead of
                          `details`.
                        properties:
                          message:
                            type: array
                            items:
                              type: string
                            description: Class-validator constraint messages.
        '401':
          description: Invalid or missing API key
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    example: 401
                  timestamp:
                    type: string
                    example: '2026-05-04T12:00:00.000Z'
                  path:
                    type: string
                    example: /v1/actions
                  message:
                    type: string
                    example: Invalid API key
                  details:
                    type: object
                    properties:
                      message:
                        type: string
                        example: Invalid API key
                      code:
                        type: string
                        example: AUTH_INVALID_API_KEY
        '403':
          description: >-
            See https://docs.yield.xyz for `details.code` values. ValidationPipe
            failures use `validation.message: string[]` in place of `details`.


            Access denied due to geolocation restrictions
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Access denied from US (US-CA)
                  error:
                    type: string
                    example: Forbidden
                  statusCode:
                    type: number
                    example: 403
        '404':
          description: >-
            See https://docs.yield.xyz for `details.code` values. ValidationPipe
            failures use `validation.message: string[]` in place of `details`.
          content:
            application/json:
              schema:
                type: object
                required:
                  - statusCode
                  - timestamp
                  - path
                  - message
                properties:
                  statusCode:
                    type: number
                  timestamp:
                    type: string
                    format: date-time
                  path:
                    type: string
                  message:
                    type: string
                  details:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - EXECUTE_NOT_FOUND
                        description: >-
                          Public error code — see https://docs.yield.xyz for the
                          full list.
                      error:
                        type: string
                        description: HTTP status text (e.g. "Bad Request").
                      message:
                        type: string
                        description: Domain message when present.
                      reason:
                        type: string
                        description: Provider reason when present.
                      retryAfter:
                        type: number
                        description: >-
                          Seconds to wait before retrying (rate-limit responses
                          only).
                  validation:
                    type: object
                    description: Present on ValidationPipe failures instead of `details`.
                    properties:
                      message:
                        type: array
                        items:
                          type: string
                        description: Class-validator constraint messages.
        '412':
          description: >-
            See https://docs.yield.xyz for `details.code` values. ValidationPipe
            failures use `validation.message: string[]` in place of `details`.
          content:
            application/json:
              schema:
                type: object
                required:
                  - statusCode
                  - timestamp
                  - path
                  - message
                properties:
                  statusCode:
                    type: number
                  timestamp:
                    type: string
                    format: date-time
                  path:
                    type: string
                  message:
                    type: string
                  details:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - EXECUTE_PRECONDITION_FAILED
                        description: >-
                          Public error code — see https://docs.yield.xyz for the
                          full list.
                      error:
                        type: string
                        description: HTTP status text (e.g. "Bad Request").
                      message:
                        type: string
                        description: Domain message when present.
                      reason:
                        type: string
                        description: Provider reason when present.
                      retryAfter:
                        type: number
                        description: >-
                          Seconds to wait before retrying (rate-limit responses
                          only).
                  validation:
                    type: object
                    description: Present on ValidationPipe failures instead of `details`.
                    properties:
                      message:
                        type: array
                        items:
                          type: string
                        description: Class-validator constraint messages.
        '429':
          description: Rate limit exceeded
          headers:
            x-ratelimit-limit:
              description: Request limit per window
              schema:
                type: string
            x-ratelimit-remaining:
              description: Remaining requests (will be 0)
              schema:
                type: string
            x-ratelimit-reset:
              description: Unix timestamp when window resets
              schema:
                type: string
            retry-after:
              description: Seconds to wait before retrying
              schema:
                type: string
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    example: 429
                  timestamp:
                    type: string
                    example: '2026-05-04T12:00:00.000Z'
                  path:
                    type: string
                    example: /v1/actions
                  message:
                    type: string
                    example: Rate limit exceeded
                  details:
                    type: object
                    properties:
                      message:
                        type: string
                        example: Rate limit exceeded
                      code:
                        type: string
                        example: RATE_LIMIT_EXCEEDED
                      error:
                        type: string
                        example: Too Many Requests
                      retryAfter:
                        type: number
                        example: 30
        '500':
          description: >-
            See https://docs.yield.xyz for `details.code` values. ValidationPipe
            failures use `validation.message: string[]` in place of `details`.
          content:
            application/json:
              schema:
                type: object
                required:
                  - statusCode
                  - timestamp
                  - path
                  - message
                properties:
                  statusCode:
                    type: number
                  timestamp:
                    type: string
                    format: date-time
                  path:
                    type: string
                  message:
                    type: string
                  details:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - EXECUTE_INTERNAL
                        description: >-
                          Public error code — see https://docs.yield.xyz for the
                          full list.
                      error:
                        type: string
                        description: HTTP status text (e.g. "Bad Request").
                      message:
                        type: string
                        description: Domain message when present.
                      reason:
                        type: string
                        description: Provider reason when present.
                      retryAfter:
                        type: number
                        description: >-
                          Seconds to wait before retrying (rate-limit responses
                          only).
                  validation:
                    type: object
                    description: Present on ValidationPipe failures instead of `details`.
                    properties:
                      message:
                        type: array
                        items:
                          type: string
                        description: Class-validator constraint messages.
        '503':
          description: >-
            See https://docs.yield.xyz for `details.code` values. ValidationPipe
            failures use `validation.message: string[]` in place of `details`.
          content:
            application/json:
              schema:
                type: object
                required:
                  - statusCode
                  - timestamp
                  - path
                  - message
                properties:
                  statusCode:
                    type: number
                  timestamp:
                    type: string
                    format: date-time
                  path:
                    type: string
                  message:
                    type: string
                  details:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - EXECUTE_SERVICE_UNAVAILABLE
                        description: >-
                          Public error code — see https://docs.yield.xyz for the
                          full list.
                      error:
                        type: string
                        description: HTTP status text (e.g. "Bad Request").
                      message:
                        type: string
                        description: Domain message when present.
                      reason:
                        type: string
                        description: Provider reason when present.
                      retryAfter:
                        type: number
                        description: >-
                          Seconds to wait before retrying (rate-limit responses
                          only).
                  validation:
                    type: object
                    description: Present on ValidationPipe failures instead of `details`.
                    properties:
                      message:
                        type: array
                        items:
                          type: string
                        description: Class-validator constraint messages.
      security:
        - ApiKey: []
components:
  schemas:
    ActionRequestDto:
      type: object
      properties:
        providerId:
          type: string
          description: Provider identifier
          example: hyperliquid
        address:
          type: string
          description: User wallet address
          example: 0x1234...
        action:
          description: Action to execute
          example: open
          allOf:
            - $ref: '#/components/schemas/PerpActionTypes'
        args:
          description: Action arguments (validated via Zod in chains)
          allOf:
            - $ref: '#/components/schemas/ArgumentsDto'
      required:
        - providerId
        - address
        - action
        - args
    ActionDto:
      type: object
      properties:
        id:
          type: string
          description: Unique action identifier (UUID)
          example: 550e8400-e29b-41d4-a716-446655440000
        providerId:
          type: string
          description: Provider identifier
          example: hyperliquid
        action:
          description: Action type executed
          example: open
          allOf:
            - $ref: '#/components/schemas/PerpActionTypes'
        status:
          description: Current action status
          example: CREATED
          allOf:
            - $ref: '#/components/schemas/ActionStatus'
        summary:
          description: Human-readable breakdown of what this action does
          nullable: true
          type: object
          allOf:
            - $ref: '#/components/schemas/ActionSummaryDto'
        signedMetadata:
          type: object
          description: >-
            TLV-encoded, secp256k1-signed metadata.


            Hex string of concatenated TLV fields. Each field: Tag (1 byte) +
            Length (1 byte) + Value (N bytes). Tags > 0x7f use a 3-byte header:
            0x81 prefix + Tag (1 byte) + Length (1 byte).


            Fields in order: STRUCTURE_TYPE (0x01), VERSION (0x02), ACTION_TYPE
            (0x81 0xd0, u8: order=0x00 modify=0x01 cancel=0x02
            updateLeverage=0x03 close=0x04 updateIsolatedMargin=0x05), ASSET_ID
            (0x81 0xd1, uint32 BE), ASSET_TICKER (0x24, UTF-8), NETWORK_TYPE
            (0x81 0xd2), BUILDER_ADDRESS (0x81 0xd3, 20 bytes, optional), MARGIN
            (0x81 0xd4, u64 big-endian, USD value with 6 decimal precision, e.g.
            87500000 = $87.50, optional), LEVERAGE (0x81 0xd5, u32 big-endian,
            optional), SIGNATURE (0x15, DER-encoded secp256k1 over SHA-256 of
            preceding bytes).
          example: 01012b02010181d0010081d1040000000b24034152421547...
        transactions:
          description: Unsigned transactions to sign and submit
          type: array
          items:
            $ref: '#/components/schemas/TransactionDto'
        createdAt:
          type: string
          description: When the action was created
          format: date-time
          example: '2026-02-19T10:23:45.000Z'
        completedAt:
          type: string
          description: When the action completed (null if still in progress)
          format: date-time
          nullable: true
          example: '2026-02-19T10:23:48.000Z'
      required:
        - id
        - providerId
        - action
        - status
        - summary
        - transactions
        - createdAt
        - completedAt
    PerpActionTypes:
      type: string
      enum:
        - open
        - close
        - updateLeverage
        - stopLoss
        - takeProfit
        - cancelOrder
        - editOrder
        - fund
        - withdraw
        - approveAgent
        - approveBuilderFee
        - updateMargin
        - setTpAndSl
        - setUnifiedAccount
      description: Supported action types
    ArgumentsDto:
      type: object
      properties:
        marketId:
          type: string
          description: Market identifier
          example: hyperliquid-eth-usdc
        side:
          description: Position side - long (buy) or short (sell)
          example: long
          allOf:
            - $ref: '#/components/schemas/PositionSide'
        amount:
          type: string
          description: 'Margin/collateral amount in USD (alternative to size). Min: $10'
          example: '100'
        size:
          type: string
          description: 'Position size in USD (alternative to amount). Min: $10'
          example: '1000'
        leverage:
          type: number
          description: Leverage multiplier
          example: 10
        marginMode:
          description: >-
            Margin mode - isolated (dedicated collateral) or cross (shared
            collateral)
          example: isolated
          allOf:
            - $ref: '#/components/schemas/MarginMode'
        limitPrice:
          type: number
          description: >-
            Limit price. If provided, order will be placed as a limit order at
            this price. If not provided, order executes immediately as a market
            order.
          example: 2000
        stopLossPrice:
          type: number
          description: Stop loss trigger price
          example: 1800
        takeProfitPrice:
          type: number
          description: Take profit trigger price
          example: 2200
        orderId:
          type: string
          description: >-
            Order ID (for cancelOrder, or for updating existing
            stopLoss/takeProfit)
          example: '12345'
        orderIds:
          description: Order IDs for batch cancelOrder
          example:
            - '12345'
            - '67890'
          type: array
          items:
            type: string
        assetIndex:
          type: number
          description: Asset index (internal)
          example: 0
        fromToken:
          description: >-
            Source token for cross-chain funding (bridge/swap from another
            chain)
          allOf:
            - $ref: '#/components/schemas/TokenIdentifierDto'
        agentAddress:
          type: string
          description: Agent wallet address to approve (for approveAgent action)
          example: '0x1234567890abcdef1234567890abcdef12345678'
        agentName:
          type: string
          description: >-
            Name for the agent wallet (for approveAgent action). If not
            provided, defaults to "key".
          example: My Trading Bot
        validUntil:
          type: number
          description: >-
            Unix timestamp (seconds) when agent approval expires. If not
            provided, never expires.
          example: 1735689600
        stopLossOrderId:
          type: string
          description: >-
            Existing stop loss order ID (for updating via SET_TP_AND_SL bundled
            action)
          example: '12345'
        takeProfitOrderId:
          type: string
          description: >-
            Existing take profit order ID (for updating via SET_TP_AND_SL
            bundled action)
          example: '12346'
        skipApproval:
          type: boolean
          description: Skip the ERC20 approval transaction.
          example: true
        fundingMethod:
          description: >-
            Funding method: "bridge2" for direct Hyperliquid Bridge2 (Arbitrum
            USDC only), "lifi" for LiFi bridging (any token/network). If not
            provided, defaults to bridge2 for Arbitrum USDC and lifi for others.
          example: bridge2
          allOf:
            - $ref: '#/components/schemas/FundingMethod'
        enabled:
          type: boolean
          description: >-
            Enable or disable Unified Account Mode (setUnifiedAccount action).
            When true, collateral is unified across Hyperliquid venues.
          example: true
    ActionStatus:
      type: string
      enum:
        - CANCELED
        - CREATED
        - WAITING_FOR_NEXT
        - PROCESSING
        - FAILED
        - SUCCESS
        - STALE
      description: Current action status
    ActionSummaryDto:
      type: object
      properties:
        type:
          type: string
          description: Human-readable action label
          enum:
            - Open Position
            - Close Position
            - Stop Loss
            - Take Profit
            - Set TP & SL
            - Set Unified Account
            - Cancel Order
            - Edit Order
            - Update Leverage
            - Update Margin
            - Fund Account
            - Withdraw
            - Approve Agent
            - Approve Builder Fee
          example: Open Position
        assetId:
          type: number
          example: 11
        orderType:
          type: string
          enum:
            - market
            - limit
          example: market
        direction:
          type: string
          enum:
            - long
            - short
          example: long
        asset:
          type: string
          example: ETH
        price:
          type: number
          example: 3500
        size:
          type: string
          example: '0.5'
        leverage:
          type: number
          example: 40
        collateral:
          type: string
          example: '87.50'
        fee:
          type: string
          description: Fee rate as decimal string
          example: '0.001'
        orderValue:
          type: number
          description: >-
            Actual position notional value after size quantization (orderPrice ×
            quantizedSize)
          example: 1750.25
        stopLoss:
          type: number
          example: 3200
        takeProfit:
          type: number
          example: 4000
        oldLiquidationPrice:
          type: number
          description: 'Update Margin: liquidation price before this margin change.'
          example: 1850.5
        estimatedLiquidationPrice:
          type: number
          description: Approximation — actual value depends on exchange mechanics
          example: 1920.3
        oldStopLoss:
          type: number
          example: 3000
        oldTakeProfit:
          type: number
          example: 4200
        marginMode:
          type: string
          enum:
            - cross
            - isolated
          example: isolated
        orderId:
          type: string
          example: '12345'
        orderIds:
          example:
            - '12345'
            - '67890'
          type: array
          items:
            type: string
        cancelledOrderTypes:
          type: array
          description: >-
            Cancel order: trigger order types cancelled when they can be
            inferred
          example:
            - tp
            - sl
          items:
            type: string
            enum:
              - tp
              - sl
        amount:
          type: string
          example: '100'
        fromToken:
          $ref: '#/components/schemas/TokenIdentifierDto'
        method:
          type: string
          example: bridge2
        agentAddress:
          type: string
          example: 0x1234...
        agentName:
          type: string
          example: Trading Bot 1
        enabled:
          type: boolean
          description: >-
            Set Unified Account: whether unified account mode is being enabled
            (true) or disabled (false).
          example: true
        closedPrice:
          type: number
          description: >-
            Close position: expected close price at submission (limit price if
            limit close, else mark price)
          example: 1000
        pnl:
          type: string
          description: >-
            Close position: unrealized Pnl on the positon at submission
            (expected PnL if fully closing at mark)
          example: '100'
        margin:
          type: string
          description: >-
            Close position: deposited margin for the position at submission
            (isolated margin only, excludes unrealized PnL)
          example: '450.00'
        entryPrice:
          type: number
          example: 3500
        exitPrice:
          type: number
          example: 3500
      required:
        - type
    TransactionDto:
      type: object
      properties:
        id:
          type: string
          description: Transaction ID for API tracking (UUID)
          example: 550e8400-e29b-41d4-a716-446655440000
        network:
          description: Network identifier
          example: hyperliquid
          allOf:
            - $ref: '#/components/schemas/Networks'
        chainId:
          type: string
          description: Chain ID
          example: '1337'
        type:
          description: Transaction type
          example: OPEN_POSITION
          allOf:
            - $ref: '#/components/schemas/PerpTransactionType'
        status:
          description: Current transaction status
          example: CREATED
          allOf:
            - $ref: '#/components/schemas/PerpTransactionStatus'
        address:
          type: string
          description: User address
          example: 0x123...
        args:
          description: Action arguments
          allOf:
            - $ref: '#/components/schemas/ArgumentsDto'
        signingFormat:
          description: Signing format required
          example: EIP712_TYPED_DATA
          allOf:
            - $ref: '#/components/schemas/SigningFormat'
        signablePayload:
          type: object
          description: Unsigned transaction payload to sign
          example:
            domain:
              name: Hyperliquid
              version: '1'
              chainId: 1337
            types: {}
            message: {}
        rawPayload:
          type: object
          description: >-
            Raw action payload with nonce that this transaction commits to. Use
            it to independently recompute the EIP-712 connectionId and verify
            transaction integrity. Present for L1 transactions; undefined for
            standard EVM transactions where signablePayload is self-describing.
          example:
            type: order
            orders:
              - a: 4
                b: true
                p: '3500.0'
                s: '0.5'
                r: false
                t:
                  limit:
                    tif: Gtc
            grouping: na
            nonce: 1706198400000
        explorerUrls:
          description: >-
            Block explorer URLs derived from timeline fills for this
            transaction’s venue order ids (distinct L1 settlements, sorted).
            Falls back to a single URL from `hash` when no matching timeline
            rows yet.
          example:
            - >-
              https://app.hyperliquid.xyz/explorer/tx/0x8a3fb2c1d4e5f67890abcdef12345678
          type: array
          items:
            type: string
      required:
        - id
        - network
        - chainId
        - type
        - status
        - address
        - explorerUrls
    PositionSide:
      type: string
      enum:
        - long
        - short
      description: Position side
    MarginMode:
      type: string
      enum:
        - cross
        - isolated
      description: Margin mode
    TokenIdentifierDto:
      type: object
      properties:
        network:
          description: The blockchain network where the token is located
          example: ethereum
          allOf:
            - $ref: '#/components/schemas/Networks'
        address:
          type: string
          description: Token contract address. Leave empty for native tokens like ETH.
          example: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'
      required:
        - network
    FundingMethod:
      type: string
      enum:
        - bridge2
        - lifi
      description: >-
        Funding method: "bridge2" for direct Hyperliquid Bridge2 (Arbitrum USDC
        only), "lifi" for LiFi bridging (any token/network). If not provided,
        defaults to bridge2 for Arbitrum USDC and lifi for others.
    Networks:
      type: string
      enum:
        - ethereum
        - ethereum-goerli
        - ethereum-holesky
        - ethereum-sepolia
        - ethereum-hoodi
        - arbitrum
        - base
        - base-sepolia
        - gnosis
        - optimism
        - polygon
        - polygon-amoy
        - starknet
        - zksync
        - linea
        - unichain
        - plume
        - monad-testnet
        - monad
        - robinhood
        - robinhood-testnet
        - arc-testnet
        - arc
        - avalanche-c
        - avalanche-c-atomic
        - avalanche-p
        - binance
        - celo
        - fantom
        - harmony
        - moonriver
        - okc
        - viction
        - core
        - sonic
        - plasma
        - katana
        - hyperevm
        - tempo
        - pharos
        - agoric
        - akash
        - axelar
        - band-protocol
        - bitsong
        - canto
        - chihuahua
        - comdex
        - coreum
        - cosmos
        - crescent
        - cronos
        - cudos
        - desmos
        - dydx
        - evmos
        - fetch-ai
        - gravity-bridge
        - injective
        - irisnet
        - juno
        - kava
        - ki-network
        - mars-protocol
        - nym
        - okex-chain
        - onomy
        - osmosis
        - persistence
        - quicksilver
        - regen
        - secret
        - sentinel
        - sommelier
        - stafi
        - stargaze
        - stride
        - teritori
        - tgrade
        - umee
        - sei
        - mantra
        - celestia
        - saga
        - zetachain
        - dymension
        - humansai
        - neutron
        - polkadot
        - kusama
        - westend
        - bittensor
        - aptos
        - binancebeacon
        - cardano
        - near
        - solana
        - solana-devnet
        - stellar
        - stellar-testnet
        - sui
        - tezos
        - tron
        - ton
        - ton-testnet
        - hyperliquid
      description: Blockchain network
    PerpTransactionType:
      type: string
      enum:
        - APPROVAL
        - OPEN_POSITION
        - CLOSE_POSITION
        - UPDATE_LEVERAGE
        - STOP_LOSS
        - TAKE_PROFIT
        - CANCEL_ORDER
        - EDIT_ORDER
        - FUND
        - WITHDRAW
        - APPROVE_BUILDER_FEE
        - ENABLE_DEX_ABSTRACTION
        - APPROVE_AGENT
        - UPDATE_MARGIN
        - SET_TP_AND_SL
        - SET_USER_ABSTRACTION
      description: Transaction type
    PerpTransactionStatus:
      type: string
      enum:
        - CREATED
        - QUEUED
        - BROADCASTED
        - CONFIRMED
        - FAILED
        - NOT_FOUND
      description: Current transaction status
    SigningFormat:
      type: string
      enum:
        - EVM_TRANSACTION
        - EIP712_TYPED_DATA
        - SOLANA_TRANSACTION
        - COSMOS_TRANSACTION
      description: Signing format required
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: x-api-key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.