CollarSwap API

DRAFT COLLARSWAP DOCS - SUBJECT TO CHANGE WITHOUT NOTICE.

CollarSwap.io General API

You’ll find some of the general requirements from CollarSwap.io to ensure smooth integration and data availability. We provide publicly accessible, no-authentication API endpoints, with reasonable rate limits to ensure tickers/pairs list, market data, orderbook data can be queried on a minute basis. Data is available in JSON format. A whitelist IP address may be granted to connecting partners where necessary. Spot Exchanges - Endpoints Overview CollarSwap offers the following 4 separate endpoints:

Endpoint 1 - /pairs

The /pairs endpoint provides a summary of cryptoasset trading pairs available on the exchange. For example, for Dog Collar (COLLAR):

{ “ticker_id”: “COLLAR_ETH”, "base": "COLLAR", "target": "ETH", } /pairs endpoint response description:

Reference: https://api.collarswap.io/api/stake/pairs

Endpoint 2 - /tickers (Market Info)

The /tickers endpoint provides 24-hour pricing and volume information on each market pair available on an exchange.

{ "ticker_id": "COLLAR_ETH", "base_currency": "COLLAR", "target_currency": "ETH", "last_price":"50.0", "base_volume":"10", "target_volume":"500", "bid":"49.9", "ask":"50.1", "high":”51.3”, “low”:”49.2”, }

/tickers endpoint response description:

Reference: (Nov 21, 2022 will be added soon) Endpoint 3 - /orderbook (Order book depth details)

The /orderbook/ticker_id endpoint is to provide order book information with at least depth = 100 (50 each side) returned for a given market pair/ticker.

Endpoint parameters:

Example query: .../api/orderbook?ticker_id=COLLAR_ETH&depth=200

{ "ticker_id": "COLLAR_ETH", "timestamp":"1700050000", "bids":[ [ "49.8", "0.50000000" ], [ "49.9", "6.40000000" ] ], "asks":[ [ "50.1", "9.20000000" ], [ "50.2", "7.9000000" ] ] } Order book response descriptions:

Reference: (Nov 21, 2022 will be added soon)

Last updated