Skip to content
Velo

catalog.futures

Fetches the futures product catalog and optionally filters it by coin, product, or exchange. Active products are returned by default.

Imports

import { Velo } from 'velo-sdk';

Examples

import { Velo, catalog } from 'velo-sdk';
 
const velo = new Velo({ apiKey: process.env.VELO_API_KEY! });
 
const products = await velo.query(
  catalog.futures({
    coin: 'BTC',
    exchange: 'binance-futures',
  }),
);

Definition

function futures(params?: FuturesCatalogParams): FuturesCatalogBuilder;

Parameters

params

  • Type: FuturesCatalogParams
  • Optional
PropertyTypeDescription
coinstringMatches a Velo-aggregated coin symbol.
productstringMatches an exchange-native product symbol.
exchangeFuturesExchangeMatches a supported futures exchange.
delistedbooleanWhen true, returns the delisted-only catalog. Defaults to false.
depthbooleanKeeps only rows whose orderbook-depth flag matches.

coin and product are mutually exclusive. All filters are exact and case-insensitive.

Return Type

  • Type: FuturesCatalogBuilder

Returns an immutable request builder.

Passing it to velo.query() resolves to FutureProduct[]: an array of matching catalog products, or an empty array when no products match. Per-request timeout, retry, and abort-signal options (HttpRequestOptions) are supplied as the second argument to velo.query().

PropertyTypeDescription
exchangeFuturesExchangeThe exchange and futures market.
coinstringThe Velo-aggregated coin symbol.
productstringThe exchange-native product symbol.
beginnumberFirst available timestamp in milliseconds.
depthbooleanWhether order-book depth data is available.
endOptional numberLast available timestamp for a delisted product.