Skip to main content
POST
/
api
/
coinglass
/
funding-rates
/
history
/coinglass/funding-rates/history
curl --request POST \
  --url https://api.anysite.io/api/coinglass/funding-rates/history \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "symbol": "<string>",
  "timeout": 300,
  "margin_type": "U",
  "interval": "h8"
}
'
[
  {
    "timestamp": 123,
    "@type": "@coinglass_funding_rate_point",
    "price": 123,
    "rate_by_exchange": {}
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
symbol
string
required

Coin ticker symbol

Minimum string length: 1
Example:

"BTC"

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
margin_type
enum<string>
default:U

Funding rate margin type

Available options:
U,
C
interval
enum<string>
default:h8

Candle interval of the series

Available options:
m1,
m5,
m15,
m30,
h1,
h4,
h8,
h12,
1d,
1w

Response

Successful Response

timestamp
integer
required
@type
string
default:@coinglass_funding_rate_point
price
number | null
rate_by_exchange
Rate By Exchange · object