zerion-sdk
Version:
A Typed Interface for ZerionAPI
25 lines (24 loc) • 882 B
TypeScript
export interface Links {
self?: string;
related?: string;
}
export type Currencies = "eth" | "btc" | "usd" | "eur" | "krw" | "rub" | "gbp" | "aud" | "cad" | "inr" | "jpy" | "nzd" | "try" | "zar" | "cny" | "chf";
export type PositionsFilter = "only_simple" | "only_complex" | "no_filter";
export type TrashFilter = "only_trash" | "only_non_trash" | "no_filter";
export type FungibleOptions = {
currency: Currencies;
filterPositions: PositionsFilter;
filterTrash: TrashFilter;
sort: "value" | "-value";
};
export interface NFTPositionOptions {
currency?: Currencies;
network?: string | string[];
collection?: string;
category?: "art" | "gaming" | "collectibles" | "other";
status?: "active" | "inactive";
pageNumber?: number;
pageSize?: number;
sort?: "name" | "-name" | "value" | "-value";
include?: "details" | "stats";
}