Kingfisher X
Kingfisher X · GPT-Aktionen
Public Map and Trading Data API
Accesses public map and trading data.
GET /map/publicGetPublicLiquidationMapDataRetrieves public liquidation map data.
POST /gpttofGet the toxic orderflow for a specific pair and timeframe.
Ursprüngliches API-Schema
{
"openapi": "3.1.0",
"info": {
"title": "Public Map and Trading Data API",
"description": "Accesses public map and trading data.",
"version": "v1.0.0"
},
"servers": [
{
"url": "https://thekingfisher.io/api"
}
],
"paths": {
"/map/public": {
"get": {
"description": "Retrieves public liquidation map data.",
"operationId": "GetPublicLiquidationMapData",
"responses": {
"200": {
"description": "A successful response providing the available public liquidation map data available.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PublicMapDataResponse"
}
}
}
},
"400": {
"description": "Bad request",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status": {
"type": "boolean",
"description": "Indicates the status of the request (false)"
}
}
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status": {
"type": "boolean",
"description": "Indicates the status of the request (false)"
}
}
}
}
}
},
"500": {
"description": "Internal server error",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status": {
"type": "boolean",
"description": "Indicates the status of the request (false)"
}
}
}
}
}
}
}
}
},
"/gpttof": {
"post": {
"400": {
"description": "Bad request",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status": {
"type": "boolean",
"description": "Indicates the status of the request (false)"
}
}
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status": {
"type": "boolean",
"description": "Indicates the status of the request (false)"
}
}
}
}
}
},
"500": {
"description": "Internal server error",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status": {
"type": "boolean",
"description": "Indicates the status of the request (false)"
}
}
}
}
}
},
"summary": "Get the toxic orderflow for a specific pair and timeframe.",
"operationId": "GetToxicOrderflow",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"pair": {
"type": "string",
"description": "The trading pair (e.g., 'BTC/USDT', 'ETH/USDT')."
},
"tf": {
"type": "string",
"description": "The timeframe (e.g., '5m', '1h', '4h')."
}
}
}
}
}
},
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status": {
"type": "boolean",
"description": "Indicates the status of the request (true for success, false for failure)"
},
"result": {
"type": "array",
"items": {
"type": "object",
"properties": {
"binance": {
"type": "number",
"description": "Binance toxicity level"
},
"time": {
"type": "integer",
"description": "Timestamp."
},
"open": {
"type": "number",
"description": "Opening price."
},
"high": {
"type": "number",
"description": "Highest price."
},
"low": {
"type": "number",
"description": "Lowest price."
},
"close": {
"type": "number",
"description": "Closing price."
},
"high_adj_binance": {
"type": "number",
"description": "Adjusted high on Binance."
},
"low_adj_binance": {
"type": "number",
"description": "Adjusted low on Binance."
},
"hl_se_binance": {
"type": "number",
"description": "Spread estimation on Binance."
},
"symbol": {
"type": "string",
"description": "Trading symbol."
},
"bybit": {
"type": "number",
"description": "Bybit toxicity level"
},
"high_adj_bybit": {
"type": "number",
"description": "Adjusted high on Bybit."
},
"low_adj_bybit": {
"type": "number",
"description": "Adjusted low on Bybit."
},
"hl_se_bybit": {
"type": "number",
"description": "Spread estimation on Bybit."
}
}
}
}
}
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"PublicMapDataResponse": {
"type": "object",
"properties": {
"status": {
"type": "boolean",
"description": "Indicates the success status of the response."
},
"result": {
"type": "object",
"description": "The result object containing the map data and metadata.",
"properties": {
"result": {
"type": "boolean",
"description": "Indicates the success status of the map data retrieval."
},
"data": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "number"
}
}
},
"description": "Map data represented as nested arrays of clusters, each cluster have two element the first one is the price the second element is the liquidation estimation"
},
"metadata": {
"type": "object",
"properties": {
"last": {
"type": "number",
"description": "Last value used to generate the data set."
},
"ts": {
"type": "integer",
"format": "int64",
"description": "Timestamp of the time the public data has been created for reference purpose only"
},
"type": {
"type": "string",
"description": "Type of granulairty of the data."
},
"pair": {
"type": "string",
"description": "Currency pair of the data."
},
"exchange": {
"type": "string",
"description": "Exchange from which the data is sourced."
}
},
"description": "Metadata related to the map data."
}
}
}
}
}
}
}
}CoinGecko API V3
API for accessing cryptocurrency market data.
GET /coins/{id}/ohlcGet coin's OHLC (Beta)Candle's body: 1 - 2 days: 30 minutes 3 - 30 days: 4 hours 31 and before: 4 days
Ursprüngliches API-Schema
{
"openapi": "3.0.1",
"info": {
"title": "CoinGecko API V3",
"description": "API for accessing cryptocurrency market data.",
"version": "3.0.0"
},
"servers": [
{
"url": "https://api.coingecko.com/api/v3"
}
],
"paths": {
"/coins/{id}/ohlc": {
"get": {
"tags": [
"coins"
],
"summary": "Get coin's OHLC (Beta)",
"description": "Candle's body:\n1 - 2 days: 30 minutes\n3 - 30 days: 4 hours\n31 and before: 4 days\n",
"operationId": "getCoinOHLC",
"parameters": [
{
"name": "id",
"in": "path",
"description": "pass the coin id (can be obtained from /coins/list) eg. bitcoin",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "vs_currency",
"in": "query",
"description": "The target currency of market data (usd, eur, jpy, etc.)",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "days",
"in": "query",
"description": "Data up to number of days ago (1/7/14/30/90/180/365/max)",
"required": true,
"schema": {
"type": "integer"
}
}
],
"responses": {
"200": {
"description": "successful operation\n[\n 1594382400000 (time),\n 1.1 (open),\n 2.2 (high),\n 3.3 (low),\n 4.4 (close)\n]\n",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"type": "number"
}
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"CoinOHLCData": {
"type": "array",
"items": {
"type": "number",
"description": "OHLC data in the order of time, open, high, low, close."
}
}
}
}
}