Community Exchange API Documentation

get
Exchange Info

https://api.new.capital/v1/exchangeInfo
Current exchange trading rules and symbol information
Request
Response
200: OK
Cake successfully retrieved.
{
"timezone": "UTC",
"serverTime": 1561977363,
"symbols": [{
"symbol": "FIX_TWINS",
"baseAsset": "FIX",
"baseAssetPrecision": 8,
"quoteAsset": "TWINS",
"baseAssetName":"FIX Network",
"quotePrecision": 4,
"orderTypes": [
// These are defined in the `ENUM definitions` section under `Order types (orderTypes)`.
// All orderTypes are optional.
],
"24h_volume":{"BTC":"0.03242766","TWINS":"423731.95413994"},
"usd_price":{"BTC":"11395.58","TWINS":"0.000872"}}
}]
}
404: Not Found
Could not find matching in this query.
{
"message": "Not Found"
}

get
24hr ticker price change statistics

https://api.new.capital/v1/ticker
24 hour rolling window price change statistics. Careful when accessing this with no symbol.
Request
Response
Query Parameters
symbol
optional
string
ex: FIX_TWINS
200: OK
{
"symbol": "FIX_TWINS",
"priceChange": "0.0000",
"priceChangePercent": "0",
"prevClosePrice": "0.10002000",
"lastPrice": "0.0000",
"bidPrice": "1000.0000",
"askPrice": "0",
"openPrice": "0",
"highPrice": "0.0000",
"lowPrice": "0.0000",
"volume": "0.0000",
"quoteVolume": ".00000000",
"openTime": 0,
"closeTime": 0,
"firstId": 0, // First tradeId
"lastId": 0, // Last tradeId
"count": 0 // Trade count
}

get
Recent trades list

https://api.new.capital/v1/trades
Get recent trades (up to last 500).
Request
Response
Query Parameters
limit
optional
integer
Default 500; max 1000
symbol
required
string
ex: BTC_TWINS
200: OK
[
{
"id": 77,
"price": "30000000",
"qty": "0.00788029",
"quoteQty":"236408.69999998"
"time": 1561709280
}
]

get
Order book

https://api.new.capital/v1/depth
Get asks and bids
Request
Response
Query Parameters
limit
optional
integer
Default 100; max 1000.
symbol
required
string
ex: BTC_TWINS
200: OK
{
"bids": [
[
"21000000", // PRICE
"0.00014285" // QTY
]
],
"asks": [
[
"21500000",
"0.00011637"
]
]
}