0% found this document useful (0 votes)
92 views15 pages

Stormgain Api Endpoint

The StormGain public API provides market data endpoints for spot, derivatives, and decentralized exchanges. The endpoints return data in JSON format and use a Unified Cryptoasset ID (UCID) standard. No authentication is required for the public endpoints, which provide data updated once per minute including summaries, assets, order books, trades, and more.

Uploaded by

INISSIRE FHD
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
92 views15 pages

Stormgain Api Endpoint

The StormGain public API provides market data endpoints for spot, derivatives, and decentralized exchanges. The endpoints return data in JSON format and use a Unified Cryptoasset ID (UCID) standard. No authentication is required for the public endpoints, which provide data updated once per minute including summaries, assets, order books, trades, and more.

Uploaded by

INISSIRE FHD
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

StormGain public API

SUMMARY

The public GET request endpoints are intended to allow access to market data.
Endpoints return results in JSON format. Referenced in the /assets and /ticker endpoints is a Unified
Cryptoasset ID (UCID). Please view this page for more information on the UCID.

● Section A: Spot Exchanges API endpoints


● Section B: Derivatives Exchanges API endpoints
● Section C: DEX Exchanges API endpoints

STANDARDS AND CONVENTIONS

1. No API authentication required on public market endpoints.


2. Full market queries are available every 60 seconds. Updates are available once per minute,
per market pair.
3. Data is available in JSON format
4. Versioning is guaranteed to avoid breaking changes (api/v1/asset, api/v2/asset, etc.)
5. Content encoding. Not implemented yet

1
[Section A] Spot Exchanges
ENDPOINT OVERVIEW

Name Endpoint Description

Summary /api/v1/spot/summary Summary status on crypto currencies


available on the exchange.

Endpoint A1 /api/v1/assets In depth details on crypto currencies


(Assets) available on the exchange.

Endpoint A2 /api/v1/ticker 24-hour rolling window trading volume


(Ticker) statistics for all markets.

Endpoint A3 /api/v1/orderbook/<market_pair> Market depth of a trading pair. One array


(Order Book) contains a list of ask prices and another
array contains bid prices.

Endpoint A4 /api/v1/trades/<market_pair> Recently completed trades for a given


(Trades) market. 24-hour historical full trades
available.

Endpoint A5 /api/v1/interests Deposits interests available on the exchange


(Interests) for several markets.

2
ENDPOINT SUMMARY

SUMMARY /api/v1/spot/summary
The summary endpoint is there to provide a top level summary information for each currency available
on the exchange.

[
{
"trading_pairs":
"BTC_USDT", "last_price":
"9190.86",
"lowest_ask": "9187.35",
"highest_bid": "9181.5",
"base_volume": "23.85",
"quote_volume": "219202.011",
"price_change_percent_24h": "-0.88",
"highest_price_24h": "9344.36",
"lowest_price_24h": "9170.92"
},
{
"trading_pairs":
"ETH_USDT", "last_price":
"238.105",
"lowest_ask": "238.521",
"highest_bid": "238.322",
"base_volume": "151.23",
"quote_volume": "36008.61915",
"price_change_percent_24h": "-1.96",
"highest_price_24h": "245.253",
"lowest_price_24h": "237.737"
}
]

Summary response descriptions.


Name Type Description

trading_pairs string Identifier of a ticker with delimiter to separate


base/quote, eg. BTC_USDT (Price of BTC is quoted
in USDT)
last_price decimal The price of the last executed order.
lowest_ask decimal The lowest ask order price
highest_bid decimal The highest bid order price
base_volume decimal 24-hour trading volume in base pair volume.
quote_volume decimal 24-hour trading volume in quote pair volume.
price_change_percent_24h decimal Price change for the last 24-hour period
highest_price_24h decimal 24-hour highest trade price
lowest_price_24h decimal 24-hour lowest trade price

3
ENDPOINT A1 (Assets)

ASSETS /api/v1/assets
The assets endpoint is there to provide a detailed summary for each currency available on the
exchange.

{
"BTC": {
"unified_cryptoasset_id
": 1, "name":
"Bitcoin",
"slug": "bitcoin",
"can_withdraw":
true,
"can_deposit":
true
},
"ETH":
{
"unified_cryptoasset_id":
1027, "name": "Ethereum",
"slug":
"ethereum",
"can_withdraw":
true,
"can_deposit":
true
}
}

Assets response descriptions.


Name Type Description

name string Full name of cryptocurrency.

unified_cryptoasset_id integer Unique ID of cryptocurrency assigned by Unified


Cryptoasset ID.

can_withdraw boolean Identifies whether withdrawals are enabled or disabled.

can_deposit boolean Identifies whether deposits are enabled or disabled.

4
ENDPOINT A2 (Ticker)

TICKER /api/v1/ticker
The ticker endpoint is there to provide a 24-hour pricing and volume summary for each market pair that
is available on the exchange.

{
"BTC_USDT": {
"base_id": 1,
"quote_id": 825,
"isFrozen": 0,
"last_price": "8513.29",
"base_volume": "1.5",
"quote_volume": "12769.935"
},
"LTC_USDT":
{
"base_id": 2,
"quote_id": 825,
"isFrozen": 0,
"last_price": "55.002",
"base_volume": "19.8",
"quote_volume": "1089.0396"
}
}

Ticker response descriptions.


Name Type Description

base_id integer The quote pair Unified Cryptoasset ID.

quote_id integer The base pair Unified Cryptoasset ID.

isFrozen integer Indicates if the market is currently enabled (0) or disabled (1).

last_price decimal The price of the last executed order.

base_volume decimal 24-hour trading volume in base pair volume.

quote_volume decimal 24-hour trading volume in quote pair volume.

5
ENDPOINT A3 (Order Book)

ORDERBOOK /api/v1/orderbook/market_pair
The order book endpoint is there to provide a complete level 2 order book (arranged by best asks/bids) with
depth of 10 returned for a given market pair.

Parameters.
Name Type Description

market_pair string A pair such as "BTC_USDT"

{
"timestamp":
"1579882142158", "bids": [
[
"8502.2",
"0.29"
]
,
[
"8501.35",
"0.46"
]
],
"asks": [
[
"8508.28",
"0.27"
]
,
[
"8509.13",
"0.21"
]
]
}

Order book response descriptions.


Name Type Description

timestamp integer Unix timestamp in milliseconds for when the last


updated time occurred.
bids decimal An array containing 2 elements: the offer price and quantity for
each bid order.
asks decimal An array containing 2 elements: the ask price and
quantity for each ask order.

6
ENDPOINT A4 (Trades)

TRADES /api/v1/trades/market_pair
The trades endpoint is there to return data on all recently completed trades for a given market pair.

Parameters.
Name Type Description

market_pair string A pair such as "BTC_USDT"

[
{
"trade_id": 1622833825,
"timestamp": "1579794503712",
"type": "sell",
"price": "8382.75",
"base_volume": "0.01",
"quote_volume": "83.8275"
},
...
]

Trades response descriptions.


Name Type Description

trade_id integer A unique ID associated with the trade for the currency pair
transaction.
Note: Unix timestamp does not qualify as trade_id.

timestamp integer Unix timestamp in milliseconds for when the


transaction occurred.
price decimal Transaction price in base pair volume.

base_volume decimal Transaction amount in base pair volume.

quote_volume decimal Transaction amount in quote pair volume.

type string Used to determine whether or not the transaction originated as


a buy or sell.
Buy – Identifies an ask was removed from the order book.
Sell – Identifies a bid was removed from the order book.

7
ENDPOINT A5 (Interests)

INTERESTS /api/v1/interest
Deposits interests are available on the exchange for some market pairs

[
{
"symbol": "BTC",
"rate": 0.1,
"startTime": 1572220800,
"endTime": 1603843200,
"durationDays": 30,
"minimumAmount": 0.014,
"maximumAmount": 0,
"isEarning": true
}
]

Interest response description.


Name Type Description

symbol float Annual interest rate


rate string Unix timestamp in milliseconds for when the transaction
occurred.
startTime integer Unix timestamp, when available.

endTime integer Unix timestamp, when available.

durationDays integer Number of days users have to deposit their coins, null if
unavailable.
minimumAmount float Minimum amount, null if unavailable.
maximumAmount float Maximum amount, null if unavailable.
isEarning boolean True if user get interest.

8
[Section B] Derivative Exchanges
ENDPOINT OVERVIEW

Name Endpoint Description

Endpoint B1 Summary of contracts traded on


/api/v1/contracts
(Contracts) the exchange, helps to differentiate
between different products
available.
Endpoint B2 Order book depth of any given
/api/v1/derivatives/orderbook/<market_pair>
(Orderbook) trading pair, split into two different
arrays for bid and ask orders.

9
ENDPOINT B1 (Contracts)

Endpoint B2 provides a summary of every single contract traded on the exchange.

[
{
"ticker_id":“TC-PERPUSDT",
"base_currency": "BTC",
"quote_currency": "USDT",
"last_price": "9196.72",
"base_volume": "1433.09713839",
"USD_volume": "0",
"quote_volume": "13283108.123",
"bid": "9193.25",
"ask": "9198.18",
"high": "9347.34",
"low": "9152.37",
"product_type": "Perpetual",
"open_interest": "273",
"open_interest_usd": "0",
"index_price": "9196.72",
"funding_rate": "0.00004",
"next_funding_rate": "0.00004",
"next_funding_rate_timestamp": 1594760400000,
"maker_fee": "0",
"taker_fee": "0",
"contract_type": "Vanilla",
"contract_price": "9196.72",
"contract_price_currency": "USDT"
}
]

10
Name Type Description

ticker_id string Identifier of a ticker with delimiter to separate


base/quote, eg. BTC-PERPUSD, BTC-PERPETH,
BTC-PERPEUR
base_currency string Symbol/currency code of base pair, eg. BTC
quote_currency string Symbol/currency code of quote pair, eg. ETH
last_price decimal Last transacted price of base currency based on given quote
currency
base_volume decimal 24 hour trading volume in BASE currency
USD_volume decimal 24 hour trading volume in USD (not implemented yet)
quote_volume decimal 24 hour trading volume in QUOTE currency
bid decimal Current highest bid price
ask decimal Current lowest ask price
high decimal Rolling 24-hour highest transaction price
low decimal Rolling 24-hour lowest transaction price
product_type string Futures, Perpetual, Options
open_interest decimal The number of outstanding derivatives contracts that have not
been settled
open_interest_usd decimal The sum of the Open Positions (long or short) in USD Value
of the contract (not implemented yet)
index_price decimal Last calculated index price for underlying of contract
creation_timestamp integer Start date of derivative (absent for Perpetual swaps)
expiry_timestamp integer End date of derivative (absent for Perpetual swaps)
funding_rate decimal Current funding rate
next_funding_rate decimal Upcoming predicted funding rate
next_funding_rate_timestamp integer Timestamp of the next funding rate change
maker_fee decimal Fees for filling a “maker” order (can be negative if rebate is
given)
taker_fee decimal Fees for filling a “taker” order (can be negative if rebate is
given)
contract_type string Vanilla, Inverse, Quanto
contract_price decimal The price per contract
contract_price_currency string The currency which the contract is priced in (e.g. USD, EUR,
BTC, USDT)

11
ENDPOINT B2 (Orderbook)

ORDERBOOK /api/v1/derivatives/orderbook/market_pair
Order book depth of any given trading pair, split into two different arrays for bid and ask orders. This is
similar to Endpoint A3 for spot markets.

Parameters.
Name Type Description

market_pair string A pair such as "BTC_USDT"

{
"timestamp":
"1594718312238", "bids": [
[
"9197.25",
"109.37"
]
,
[
"9196.33",
"59.17"
]
"asks": [
[
"9205.45",
"110.62"
]
,
[
"9207.87",
"54.96"
]
]
}
Name Data Type Description

ticker_id string A pair such as "BTC-PERPUSD", with delimiter between different


cryptoassets
timestamp integer Unix timestamp in milliseconds for when the last updated time
occurred.
bids decimal An array containing 2 elements. The offer price and quantity for each
bid order
asks decimal An array containing 2 elements. The ask price and quantity for each
ask order

12
[Section C] DEX Exchanges

ENDPOINT OVERVIEW

Name Endpoint Description

Endpoint C1 /api/v1/dex/contracts Summary of contracts traded on


(Contracts) the exchange, helps to
differentiate between different
products available.

Endpoint C2 /api/v1/dex/orderbook/<market_pair> Order book depth of any given


(Orderbook) trading pair, split into two
different arrays for bid and ask
orders.

ENDPOINT C1 (Contracts)

Endpoint C1 provides a summary of every single contract traded on the exchange.

[
{
"ticker_id": "BTC-PERPUSDT",
"base_currency": "BTC",
"quote_currency": "USDT",
"last_price": "9196.72",
"base_volume": "1433.09713839",
"USD_volume": "0",
"quote_volume": "13283108.123",
"bid": "9193.25",
"ask": "9198.18",
"high": "9347.34",
"low": "9152.37",
"product_type": "Perpetual",
"open_interest": "273",
"open_interest_usd": "0",
"index_price": "9196.72",
"funding_rate": "0.00004",
"next_funding_rate": "0.00004",
"next_funding_rate_timestamp": 1594760400000,
"maker_fee": "0",
"taker_fee": "0",
"contract_type": "Vanilla",
"contract_price": "9196.72",
"contract_price_currency": "USDT"
}
]
13
Name Type Description

ticker_id string Identifier of a ticker with delimiter to separate base/quote,


eg. BTC-PERPUSD, BTC-PERPETH, BTC-PERPEUR

base_currency string Symbol/currency code of base pair, eg. BTC

quote_currency string Symbol/currency code of quote pair, eg. ETH

last_price decimal Last transacted price of base currency based on given quote
currency

base_volume decimal 24 hour trading volume in BASE currency

USD_volume decimal 24 hour trading volume in USD (not implemented yet)

quote_volume decimal 24 hour trading volume in QUOTE currency

bid decimal Current highest bid price

ask decimal Current lowest ask price

high decimal Rolling 24-hour highest transaction price

low decimal Rolling 24-hour lowest transaction price

product_type string Futures, Perpetual, Options

open_interest decimal The number of outstanding derivatives contracts that have not been
settled

open_interest_usd decimal The sum of the Open Positions (long or short) in USD Value of the
contract (not implemented yet)

index_price decimal Last calculated index price for underlying of contract

creation_timestamp integer Start date of derivative (absent for Perpetual swaps)

expiry_timestamp integer End date of derivative (absent for Perpetual swaps)

funding_rate decimal Current funding rate

next_funding_rate decimal Upcoming predicted funding rate

next_funding_rate_time integer Timestamp of the next funding rate change


stamp

maker_fee decimal Fees for filling a “maker” order (can be negative if rebate is given)

taker_fee decimal Fees for filling a “taker” order (can be negative if rebate is given)

contract_type string Vanilla, Inverse, Quanto

contract_price decimal The price per contract

contract_price_currency string The currency which the contract is priced in (e.g. USD, EUR, BTC,
USDT)

14
ENDPOINT C2 (Orderbook)

ORDERBOOK /api/v1/dex/orderbook/market_pair
Order book depth of any given trading pair, split into two different arrays for bid and ask orders. This
is similar to Endpoint A3 for spot markets.

Parameters.
Name Type Description

market_pair string A pair such as "BTC_USDT"

{
"timestamp": "1594718312238",
"bids": [
[
"9197.25",
"109.37"
],
[
"9196.33",
"59.17"
]
"asks": [
[
"9205.45",
"110.62"
],
[
"9207.87",
"54.96"
]
]
}

Name Data Type Description

ticker_id string A pair such as "BTC-PERPUSD", with delimiter between


different crypto assets

timestamp integer Unix timestamp in milliseconds for when the last updated time
occurred.

bids decimal An array containing 2 elements. The offer price and quantity for
each bid order

asks decimal An array containing 2 elements. The ask price and quantity for
each ask order

15

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy