Skip to main content
POST
/
api
/
v1
/
spot
/
swap
Standalone swap
curl --request POST \
  --url https://api.alpha-labs.trade/api/v1/spot/swap \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "sell": "USDC",
  "buy": "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
  "amountUsd": "25.00"
}
'
{
  "data": {
    "success": true,
    "signature": "<string>",
    "inputAmountRaw": "<string>",
    "outputAmountRaw": "<string>",
    "alphaFeeUsd": "12.50",
    "error": "<string>",
    "errorCode": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Send your API key as Authorization: Bearer murmo_.... Keys are created in the Murmo app. Header-only — keys are never read from the query string. Valid for the REST API under /api/v1 only (not the GraphQL endpoint).

Body

application/json
sell
string
required

Mint address to sell, or "USDC".

Example:

"USDC"

buy
string
required

Mint address to buy, or "USDC".

amountUsd
string
required

A monetary amount as a full-precision plain decimal string in USD — never a number, never raw base units, never scientific notation, never rounded. Parse with a decimal library; round only for display.

Example:

"12.50"

Response

Swap result. On success returns the signature and raw input/output base-unit amounts (use the token's decimals to humanize).

data
object