Request access to the QuantFeatures sample

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

This sample is provided for evaluating QuantFeatures data products under the QuantFeatures Sample Evaluation License (see LICENSE.md). Redistribution, resale, and production or live-trading use are not permitted without a separate agreement.

Log in or Sign Up to review the conditions and access this dataset content.

QuantFeatures OKX Hourly Features (Sample)

Research-ready, hourly features derived from licensed historical OKX market data: trade activity and flow, trade distributions, top of book, funding, open interest, and liquidations. This sample lets you evaluate coverage, schema, and data quality before licensing the full product.

Attribute Value
Venue OKX
Instruments BCH, BNB, BTC, ETH, HYPE, XRP (quoted in USDT)
Markets (splits) perp (perpetual)
Sample days First UTC day of each month, 2020-01-01 through 2026-10-01
Interval 1 hour, 24 intervals per sample day
Feature version 3.0.0
Rows 160,752 across 17 files

Some instruments start later because the contract was not yet listed: BNB perp from 2023-01-01; HYPE perp from 2025-03-01.

Load

from datasets import load_dataset

perp = load_dataset("QuantFeatures/okx-hourly-features", "TradeFlow", split="perp")

Or with pandas:

import pandas as pd
df = pd.read_parquet("hf://datasets/QuantFeatures/okx-hourly-features/data/TradeFlow/perp.parquet")

Modules (configs)

Config Family Input Splits Columns Rows
TradeFlow Trade activity Exchange trades perp 45 9,456
TradeTick Extended trade activity Exchange trades perp 33 9,456
TradeCovar Trade relationships Exchange trades perp 30 9,456
TradeCovarPlus Extended trade relationships Exchange trades perp 54 9,456
TradeStats Trade distribution Exchange trades perp 24 9,456
TradeGroup Trade grouping Exchange trades perp 123 9,456
TradeGroupPlus Grouped trade distribution Exchange trades perp 124 9,456
TradeLarge Trade tails Exchange trades perp 123 9,456
TradeGradient Trade dynamics Exchange trades perp 42 9,456
TradeImpact Trade dynamics Exchange trades perp 42 9,456
QuoteBasic Top of book Best-bid/offer quotes perp 71 9,456
FundingRate Funding Derivative ticker feed perp 33 9,456
LiqFlow Liquidations Liquidation feed perp 15 9,456
LiqStats Extended liquidations Liquidation feed perp 77 9,456
OpenIntBasic Open interest Derivative ticker feed perp 33 9,456
OpenIntPlus Extended open interest Derivative ticker feed perp 45 9,456
OpenIntGradient Open-interest dynamics Derivative ticker feed perp 39 9,456

Full field definitions are in the Feature Catalog.

Record semantics

  • Each row is one instrument in one half-open UTC interval [start_time_utc, end_time_utc).
  • exch, type, base, and quote identify the instrument; rows are sorted by start_time_utc, then base.
  • An interval's information is complete only at end_time_utc. Use end_time_utc as the availability time to avoid look-ahead bias.
  • NaN means unavailable or not validly computable, never zero; there are no nulls. Integer counts are always defined. A missing row is not zero activity.
  • Sample days are not contiguous; stateful and long-lookback features can be less reliable early in each sample day.
  • Prices are in the quote currency (USDT), volumes in the base asset, and _bps fields in basis points.

See the Data specification and Coverage for details. manifest.json lists row counts, coverage, and a SHA-256 checksum for every file.

Intervals with limited or no data

Exchanges and data recorders have outages and maintenance windows. In these sample intervals the source feed had no records:

  • Trade modules and QuoteBasic, BCH, 2020-01-01: no source data for the 21:00 interval.
  • LiqFlow and LiqStats, 2020-01-01 to 2020-12-01: no liquidation records exist for these days, so zero counts there mean no data, not no liquidations.

License

QuantFeatures Sample Evaluation License (LICENSE.md): you may use this sample internally to sample and review QuantFeatures data products. Redistribution, resale, production use, reconstructing underlying market data, and reverse-engineering the feature methods are not permitted without a separate agreement. No raw exchange or vendor data is included. Not investment advice.

Contact

Full history, other intervals or instruments, and commercial licensing: QuantFeatures@gmail.com

Downloads last month
3