Plaxswap Price alerts API
One Telegram message when a rate crosses a number.
One Telegram message when a rate crosses a number.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/plaxswap-com:plaxswap-com-price-alerts-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Plaxswap Price alerts API
version: 1.0.0
summary: Quote and create crypto swaps that pay out straight to your user's address.
description: 'JSON over HTTPS. Coin amounts are decimal strings in coin units ("0.015"), never floats. US dollar values are numbers. Times are ISO 8601 in UTC.
A coin on one network is a method, with an id such as btc, eth-base or usdt-tron: use those ids for from and to.
Partners: send your API key in x-api-key (or Authorization: Bearer) and the end user''s public IP address in x-user-ip, so the country rules apply to that person. Requests without a key act as a regular visitor with no commission.
Errors: every error is { "error": { "code", "message", "details"? } } with a matching HTTP status. The message is plain English and safe to show.
Rate limits are per IP address (the end user''s for partners): each operation lists its limit in x-rate-limit. Going over returns 429 rate_limited.
Sandbox: a build in sim mode simulates every chain. POST /api/dev/deposit and POST /api/dev/mine move test orders forward there (not part of this API).'
contact:
email: support@plaxswap.com
servers:
- url: https://plaxswap.com
description: This deployment
security: []
tags:
- name: Price alerts
description: One Telegram message when a rate crosses a number.
paths:
/api/v1/alerts:
post:
operationId: createAlert
summary: Create a price alert, delivered on Telegram
description: The alert waits until a Telegram chat opens its connectUrl, then sends one message when the rate crosses targetRate.
tags:
- Price alerts
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateAlertRequest'
example:
from: btc
to: eth
direction: above
targetRate: '30'
responses:
'201':
description: The alert and the rate right now.
content:
application/json:
schema:
$ref: '#/components/schemas/CreateAlertResponse'
'400':
description: bad_request (details.field names the field).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: Limits reached or the pair is unavailable.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: 'rate_limited: 10 per 10 minutes.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security: []
x-rate-limit: 10 per 10 minutes
get:
operationId: listAlerts
summary: The alerts with these ids
description: The browser that created alerts keeps their ids; an alert's id is its secret.
tags:
- Price alerts
parameters:
- name: ids
in: query
required: false
description: Comma-separated alert ids, at most 20.
schema:
type: string
maxLength: 1000
responses:
'200':
description: The alerts that exist.
content:
application/json:
schema:
$ref: '#/components/schemas/AlertsResponse'
'400':
description: 'bad_request: too many ids.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: rate_limited.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security: []
x-rate-limit: 60 per minute
/api/v1/alerts/{id}:
get:
operationId: getAlert
summary: One price alert
tags:
- Price alerts
parameters:
- $ref: '#/components/parameters/AlertId'
responses:
'200':
description: The alert.
content:
application/json:
schema:
$ref: '#/components/schemas/AlertResponse'
'404':
description: not_found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: rate_limited.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security: []
x-rate-limit: 60 per minute
delete:
operationId: cancelAlert
summary: Cancel a price alert
tags:
- Price alerts
parameters:
- $ref: '#/components/parameters/AlertId'
responses:
'200':
description: The cancelled alert.
content:
application/json:
schema:
$ref: '#/components/schemas/AlertResponse'
'404':
description: not_found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: rate_limited.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security: []
x-rate-limit: 30 per minute
components:
parameters:
AlertId:
name: id
in: path
required: true
description: Price alert id.
schema:
type: string
maxLength: 64
schemas:
Error:
type: object
description: Every error has this shape, with an HTTP status code that matches.
properties:
error:
type: object
properties:
code:
type: string
description: Stable, machine-readable code, for example "quote_expired".
message:
type: string
description: Plain English, safe to show to the person.
details:
description: Extra data for some errors, for example { field } or { min, max }.
required:
- code
- message
required:
- error
AlertCoinRef:
type: object
properties:
id:
type: string
description: Method id, for example "btc".
assetId:
type: string
label:
type: string
required:
- id
- assetId
- label
AlertsResponse:
type: object
properties:
alerts:
type: array
items:
$ref: '#/components/schemas/AlertView'
required:
- alerts
CreateAlertRequest:
type: object
properties:
from:
type: string
description: Method id.
pattern: ^[a-z0-9-]{2,24}$
to:
type: string
description: Method id.
pattern: ^[a-z0-9-]{2,24}$
direction:
type: string
enum:
- above
- below
targetRate:
type: string
description: A number written as text, for example "30".
maxLength: 40
required:
- from
- to
- direction
- targetRate
AlertResponse:
type: object
properties:
alert:
$ref: '#/components/schemas/AlertView'
required:
- alert
AlertView:
type: object
properties:
id:
type: string
description: 'The alert''s id is also its secret: only the browser that created it knows it.'
from:
$ref: '#/components/schemas/AlertCoinRef'
to:
$ref: '#/components/schemas/AlertCoinRef'
direction:
type: string
enum:
- above
- below
targetRate:
type: string
description: Triggers when the rate (units of to for 1 from) reaches this number.
pattern: ^\d+(\.\d+)?$
examples:
- '0.015'
status:
type: string
description: 'pending: waiting for a Telegram chat to connect it.'
enum:
- pending
- active
- triggered
- cancelled
connected:
type: boolean
createdAt:
type: string
format: date-time
triggeredAt:
type:
- string
- 'null'
format: date-time
connectBy:
type:
- string
- 'null'
description: Pending alerts are cancelled if no Telegram chat connects them by this time.
format: date-time
connectUrl:
type:
- string
- 'null'
description: https://t.me/<bot>?start=a_<id>, while pending and the bot is set up.
required:
- id
- from
- to
- direction
- targetRate
- status
- connected
- createdAt
- triggeredAt
- connectBy
- connectUrl
CreateAlertResponse:
type: object
properties:
alert:
$ref: '#/components/schemas/AlertView'
currentRate:
type: string
description: The rate when the alert was created.
pattern: ^\d+(\.\d+)?$
examples:
- '0.015'
required:
- alert
- currentRate
securitySchemes:
partnerKey:
type: apiKey
in: header
name: x-api-key
description: Partner API key, pxk_<prefix>_<secret>. Created in the admin console and shown once. A wrong or switched-off key gets 401 invalid_api_key.
partnerBearer:
type: http
scheme: bearer
description: 'The same API key as Authorization: Bearer pxk_<prefix>_<secret>.'
merchantBearer:
type: http
scheme: bearer
description: 'Payment gateway merchant key as Authorization: Bearer pxs_live_<prefix>_<secret> (or pxs_test_... for test mode). Shown once at sign-up.'
merchantCookie:
type: apiKey
in: cookie
name: px_merchant
description: 'Merchant owner session after Google or Telegram login. Writes also require x-px-merchant: 1 and the site Origin. API keys cannot manage accounts, credentials or withdrawals.'
merchantKey:
type: apiKey
in: header
name: x-api-key
description: The same merchant key in x-api-key.
accountCookie:
type: apiKey
in: cookie
name: px_acct
description: The browser's account key (HttpOnly). Set by POST /api/v1/account or /api/v1/account/restore.
externalDocs:
url: https://plaxswap.com/developers
description: Guides, flows and the widget