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

# Update Instrument Spread

> Updates the spread (in basis points) for a trade venue instrument. Only accessible by the OTC org.



## OpenAPI

````yaml /openapi.yaml put /trade/instrument/{id}/spread
openapi: 3.1.0
info:
  contact:
    email: support@boomfi.xyz
    name: API Support
  description: >-
    The BoomFi Merchants API provides a set of endpoints for merchants to manage
    their accounts, transactions, and more. Hosts differ per brand/environment;
    use the brand-specific base URL from the docs.
  title: ZBX Merchants API
  version: '1.0'
servers:
  - url: https://mapi.zbx.boomfi.xyz/v1
    description: Production
security: []
tags:
  - description: Payment links
    name: Paylinks
  - description: Billing plans
    name: Plans
  - description: Subscriptions
    name: Subscriptions
  - description: Customer records
    name: Customers
  - description: Invoices
    name: Invoices
  - description: Payments
    name: Payments
  - description: Organisation events
    name: Events
  - description: Organisation profile and display settings
    name: Organisation
  - description: Webhook and request-signing secrets
    name: Secrets
  - description: Settlement accounts
    name: Accounts
  - name: Bank Address Book
  - description: Managed virtual accounts, balances, pay-in, and payout
    name: Virtual Accounts
  - description: Partner-managed accounts, virtual accounts, pay-in, and payout
    name: Partners
  - description: Partner virtual account automations and run history
    name: Partner Automations
  - description: Partner maintain-balance automations
    name: Partner Balance Monitoring
  - description: Tradeable currencies, instruments, and swap targets
    name: Instruments
  - description: RFQ quotes
    name: Quotes
  - description: RFQ orders and one-click trades
    name: Orders
  - description: Executed trades
    name: Trades
paths:
  /trade/instrument/{id}/spread:
    put:
      tags:
        - Instruments
      summary: Update Instrument Spread
      description: >-
        Updates the spread (in basis points) for a trade venue instrument. Only
        accessible by the OTC org.
      parameters:
        - description: Unique trade venue instrument identifier
          in: path
          name: id
          required: true
          schema:
            type: integer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/trade.UpdateInstrumentSpreadRequest'
        description: Spread update request
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/internal.Response-models_TradeVenueInstrument
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal.ErrorResponse'
        '403':
          description: Not authorised - OTC org only
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal.ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal.ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal.ErrorResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    trade.UpdateInstrumentSpreadRequest:
      properties:
        spread_bps:
          description: Spread applied to this instrument in basis points.
          minimum: 0
          type: integer
      required:
        - spread_bps
      type: object
    internal.Response-models_TradeVenueInstrument:
      properties:
        data:
          allOf:
            - $ref: '#/components/schemas/models.TradeVenueInstrument'
          description: Response payload when the request succeeded.
        error:
          description: True when the request failed.
          type: boolean
        message:
          description: Human-readable status or error message.
          type: string
      type: object
    internal.ErrorResponse:
      properties:
        error:
          allOf:
            - $ref: '#/components/schemas/internal.ErrorStruct'
          description: Error details including HTTP-style code and message.
      type: object
    models.TradeVenueInstrument:
      properties:
        base:
          description: Base asset symbol of the trading instrument.
          type: string
        base_chain:
          description: Chain ID for the instrument base asset.
          type: integer
        estimated_cost_bps:
          description: Estimated execution cost in basis points.
          type: integer
        estimated_delay_ms:
          description: Estimated execution delay in milliseconds.
          type: integer
        id:
          description: Unique resource identifier.
          type: integer
        last_price:
          description: Last traded or marked price for the instrument.
          type: number
        last_price_at:
          description: When last_price was observed (RFC3339).
          type: string
        last_reverse_price:
          description: Last reverse (quote/base) price for the instrument.
          type: number
        max_size:
          description: Maximum trade size for the instrument.
          type: number
        min_size:
          description: Minimum trade size for the instrument.
          type: number
        properties:
          description: Additional properties as a key-value map.
          items:
            type: integer
          type: array
        quote:
          description: Quote associated with this accept response.
          type: string
        quote_chain:
          description: Chain ID for the instrument quote asset.
          type: integer
        spread_bps:
          description: Spread applied to this instrument in basis points.
          type: integer
        venue_id:
          description: Trading venue identifier for this instrument.
          type: integer
      type: object
    internal.ErrorStruct:
      properties:
        code:
          description: |-
            Error code
            Example: 400
          example: 400
          type: integer
        errors:
          description: List of errors
          items:
            $ref: '#/components/schemas/internal.SingleError'
          type: array
        message:
          description: |-
            Error message
            Example: Insufficient quantity
          example: Insufficient quantity
          type: string
      type: object
    internal.SingleError:
      properties:
        domain:
          description: |-
            Domain
            Example: orders
          example: orders
          type: string
        reason:
          description: |-
            Error Reason
            Example: InsufficientQuantity
          example: InsufficientQuantity
          type: string
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: X-API-KEY
      type: apiKey

````