@bluvo/sdk-ts
Version:
Bluvo SDK for TypeScript
1,523 lines • 270 kB
TypeScript
type ClientOptions$1 = {
baseUrl: "https://api-bluvo.com" | "https://test.api-bluvo.com" | (string & {});
};
declare const SchemaEnum: {
readonly COINBASE: "coinbase";
readonly KRAKEN: "kraken";
readonly BINANCE: "binance";
readonly LOCAL_CEX: "local-cex";
readonly BINANCE_WEB: "binance-web";
readonly BYBIT_WEB: "bybit-web";
};
type SchemaEnum = (typeof SchemaEnum)[keyof typeof SchemaEnum];
declare const StatusEnum: {
readonly LIVE: "live";
readonly OFFLINE: "offline";
readonly MAINTENANCE: "maintenance";
readonly COMING_SOON: "coming_soon";
};
type StatusEnum = (typeof StatusEnum)[keyof typeof StatusEnum];
declare const ExchangeEnum: {
readonly ACE: "ace";
readonly ASCENDEX: "ascendex";
readonly BEQUANT: "bequant";
readonly BIGONE: "bigone";
readonly BINANCE: "binance";
readonly BINANCE_WEB: "binance-web";
readonly COINBASE: "coinbase";
readonly BINANCEUS: "binanceus";
readonly BINGX: "bingx";
readonly BIT2C: "bit2c";
readonly BITBANK: "bitbank";
readonly BITBNS: "bitbns";
readonly BITCOINCOM: "bitcoincom";
readonly BITFINEX: "bitfinex";
readonly BITFLYER: "bitflyer";
readonly BITGET: "bitget";
readonly BITHUMB: "bithumb";
readonly BITMART: "bitmart";
readonly BITMEX: "bitmex";
readonly BITOPRO: "bitopro";
readonly BITPANDA: "bitpanda";
readonly BITRUE: "bitrue";
readonly BITSO: "bitso";
readonly BITSTAMP: "bitstamp";
readonly BITTEAM: "bitteam";
readonly BITVAVO: "bitvavo";
readonly BYBIT: "bybit";
readonly BYBIT_WEB: "bybit-web";
readonly BL3P: "bl3p";
readonly BLOCKCHAINCOM: "blockchaincom";
readonly BLOFIN: "blofin";
readonly BTCALPHA: "btcalpha";
readonly BTCBOX: "btcbox";
readonly BTCMARKETS: "btcmarkets";
readonly BTCTURK: "btcturk";
readonly CEX: "cex";
readonly COINCHECK: "coincheck";
readonly COINEX: "coinex";
readonly COINLIST: "coinlist";
readonly COINMATE: "coinmate";
readonly COINMETRO: "coinmetro";
readonly COINONE: "coinone";
readonly COINSPH: "coinsph";
readonly COINSPOT: "coinspot";
readonly CRYPTOCOM: "cryptocom";
readonly DELTA: "delta";
readonly DERIBIT: "deribit";
readonly DIGIFINEX: "digifinex";
readonly EXMO: "exmo";
readonly FMFWIO: "fmfwio";
readonly GATE: "gate";
readonly GATEIO: "gateio";
readonly GEMINI: "gemini";
readonly HASHKEY: "hashkey";
readonly HITBTC: "hitbtc";
readonly HOLLAEX: "hollaex";
readonly HTX: "htx";
readonly HUOBI: "huobi";
readonly HUOBIJP: "huobijp";
readonly HYPERLIQUID: "hyperliquid";
readonly INDEPENDENTRESERVE: "independentreserve";
readonly INDODAX: "indodax";
readonly KRAKEN: "kraken";
readonly KRAKENFUTURES: "krakenfutures";
readonly KUCOIN: "kucoin";
readonly KUCOINFUTURES: "kucoinfutures";
readonly LATOKEN: "latoken";
readonly LBANK: "lbank";
readonly LUNO: "luno";
readonly MERCADO: "mercado";
readonly MEXC: "mexc";
readonly NDAX: "ndax";
readonly NOVADAX: "novadax";
readonly OCEANEX: "oceanex";
readonly OKCOIN: "okcoin";
readonly OKX: "okx";
readonly ONETRADING: "onetrading";
readonly OXFUN: "oxfun";
readonly P2B: "p2b";
readonly PARADEX: "paradex";
readonly PAYMIUM: "paymium";
readonly PHEMEX: "phemex";
readonly POLONIEX: "poloniex";
readonly POLONIEXFUTURES: "poloniexfutures";
readonly PROBIT: "probit";
readonly TIMEX: "timex";
readonly TRADEOGRE: "tradeogre";
readonly UPBIT: "upbit";
readonly VERTEX: "vertex";
readonly WAVESEXCHANGE: "wavesexchange";
readonly WHITEBIT: "whitebit";
readonly WOO: "woo";
readonly WOOFIPRO: "woofipro";
readonly XT: "xt";
readonly YOBIT: "yobit";
readonly ZAIF: "zaif";
readonly ZONDA: "zonda";
readonly LOCAL_CEX: "local-cex";
};
type ExchangeEnum = (typeof ExchangeEnum)[keyof typeof ExchangeEnum];
declare const StatusEnum2: {
readonly SUCCESS: "SUCCESS";
readonly INVALID_API_CREDENTIALS: "INVALID_API_CREDENTIALS";
};
type StatusEnum2 = (typeof StatusEnum2)[keyof typeof StatusEnum2];
declare const TypeEnum: {
readonly WALLET_NOT_FOUND: "WALLET_NOT_FOUND";
readonly WALLET_IDENTITY_NOT_FOUND: "WALLET_IDENTITY_NOT_FOUND";
};
type TypeEnum = (typeof TypeEnum)[keyof typeof TypeEnum];
declare const SchemaEnum2: {
readonly ACE: "ace";
readonly ASCENDEX: "ascendex";
readonly BEQUANT: "bequant";
readonly BIGONE: "bigone";
readonly BINANCE: "binance";
readonly BINANCE_WEB: "binance-web";
readonly COINBASE: "coinbase";
readonly BINANCEUS: "binanceus";
readonly BINGX: "bingx";
readonly BIT2C: "bit2c";
readonly BITBANK: "bitbank";
readonly BITBNS: "bitbns";
readonly BITCOINCOM: "bitcoincom";
readonly BITFINEX: "bitfinex";
readonly BITFLYER: "bitflyer";
readonly BITGET: "bitget";
readonly BITHUMB: "bithumb";
readonly BITMART: "bitmart";
readonly BITMEX: "bitmex";
readonly BITOPRO: "bitopro";
readonly BITPANDA: "bitpanda";
readonly BITRUE: "bitrue";
readonly BITSO: "bitso";
readonly BITSTAMP: "bitstamp";
readonly BITTEAM: "bitteam";
readonly BITVAVO: "bitvavo";
readonly BYBIT: "bybit";
readonly BYBIT_WEB: "bybit-web";
readonly BL3P: "bl3p";
readonly BLOCKCHAINCOM: "blockchaincom";
readonly BLOFIN: "blofin";
readonly BTCALPHA: "btcalpha";
readonly BTCBOX: "btcbox";
readonly BTCMARKETS: "btcmarkets";
readonly BTCTURK: "btcturk";
readonly CEX: "cex";
readonly COINCHECK: "coincheck";
readonly COINEX: "coinex";
readonly COINLIST: "coinlist";
readonly COINMATE: "coinmate";
readonly COINMETRO: "coinmetro";
readonly COINONE: "coinone";
readonly COINSPH: "coinsph";
readonly COINSPOT: "coinspot";
readonly CRYPTOCOM: "cryptocom";
readonly DELTA: "delta";
readonly DERIBIT: "deribit";
readonly DIGIFINEX: "digifinex";
readonly EXMO: "exmo";
readonly FMFWIO: "fmfwio";
readonly GATE: "gate";
readonly GATEIO: "gateio";
readonly GEMINI: "gemini";
readonly HASHKEY: "hashkey";
readonly HITBTC: "hitbtc";
readonly HOLLAEX: "hollaex";
readonly HTX: "htx";
readonly HUOBI: "huobi";
readonly HUOBIJP: "huobijp";
readonly HYPERLIQUID: "hyperliquid";
readonly INDEPENDENTRESERVE: "independentreserve";
readonly INDODAX: "indodax";
readonly KRAKEN: "kraken";
readonly KRAKENFUTURES: "krakenfutures";
readonly KUCOIN: "kucoin";
readonly KUCOINFUTURES: "kucoinfutures";
readonly LATOKEN: "latoken";
readonly LBANK: "lbank";
readonly LUNO: "luno";
readonly MERCADO: "mercado";
readonly MEXC: "mexc";
readonly NDAX: "ndax";
readonly NOVADAX: "novadax";
readonly OCEANEX: "oceanex";
readonly OKCOIN: "okcoin";
readonly OKX: "okx";
readonly ONETRADING: "onetrading";
readonly OXFUN: "oxfun";
readonly P2B: "p2b";
readonly PARADEX: "paradex";
readonly PAYMIUM: "paymium";
readonly PHEMEX: "phemex";
readonly POLONIEX: "poloniex";
readonly POLONIEXFUTURES: "poloniexfutures";
readonly PROBIT: "probit";
readonly TIMEX: "timex";
readonly TRADEOGRE: "tradeogre";
readonly UPBIT: "upbit";
readonly VERTEX: "vertex";
readonly WAVESEXCHANGE: "wavesexchange";
readonly WHITEBIT: "whitebit";
readonly WOO: "woo";
readonly WOOFIPRO: "woofipro";
readonly XT: "xt";
readonly YOBIT: "yobit";
readonly ZAIF: "zaif";
readonly ZONDA: "zonda";
readonly LOCAL_CEX: "local-cex";
readonly NULL: null;
};
type SchemaEnum2 = (typeof SchemaEnum2)[keyof typeof SchemaEnum2];
declare const SchemaEnum3: {
readonly TRUE: "true";
readonly FALSE: "false";
readonly NULL: null;
};
type SchemaEnum3 = (typeof SchemaEnum3)[keyof typeof SchemaEnum3];
declare const TypeEnum2: {
readonly DEPOSIT: "deposit";
readonly WITHDRAWAL: "withdrawal";
readonly TRANSACTION: "transaction";
};
type TypeEnum2 = (typeof TypeEnum2)[keyof typeof TypeEnum2];
declare const DirectionEnum: {
readonly IN: "in";
readonly OUT: "out";
readonly NULL: null;
};
type DirectionEnum = (typeof DirectionEnum)[keyof typeof DirectionEnum];
declare const FiatCurrencyEnum: {
readonly USD: "USD";
readonly EUR: "EUR";
readonly NULL: null;
};
type FiatCurrencyEnum = (typeof FiatCurrencyEnum)[keyof typeof FiatCurrencyEnum];
declare const StatusEnum3: {
readonly PENDING: "pending";
readonly OK: "ok";
readonly FAILED: "failed";
readonly CANCELED: "canceled";
};
type StatusEnum3 = (typeof StatusEnum3)[keyof typeof StatusEnum3];
declare const CategoryEnum: {
readonly EXCHANGE_WITHDRAWAL_FEE: "exchange_withdrawal_fee";
readonly NETWORK_FEE: "network_fee";
readonly PROVIDER_FEE: "provider_fee";
readonly OTHER: "other";
};
type CategoryEnum = (typeof CategoryEnum)[keyof typeof CategoryEnum];
declare const TypeEnum3: {
readonly GENERIC_NOT_FOUND: "GENERIC_NOT_FOUND";
readonly GENERIC_UNAUTHORIZED: "GENERIC_UNAUTHORIZED";
readonly GENERIC_INTERNAL_SERVER_ERROR: "GENERIC_INTERNAL_SERVER_ERROR";
readonly GENERIC_VALIDATION_ERROR: "GENERIC_VALIDATION_ERROR";
readonly GENERIC_INVALID_REQUEST: "GENERIC_INVALID_REQUEST";
readonly GENERIC_RATE_LIMIT_EXCEEDED: "GENERIC_RATE_LIMIT_EXCEEDED";
readonly APIKEY_INSUFFICIENT_PERMISSIONS: "APIKEY_INSUFFICIENT_PERMISSIONS";
readonly WALLET_NOT_FOUND: "WALLET_NOT_FOUND";
readonly WALLET_INVALID_CREDENTIALS: "WALLET_INVALID_CREDENTIALS";
readonly WALLET_IDENTITY_NOT_FOUND: "WALLET_IDENTITY_NOT_FOUND";
readonly QUOTE_NOT_FOUND: "QUOTE_NOT_FOUND";
readonly QUOTE_EXPIRED: "QUOTE_EXPIRED";
readonly WITHDRAWAL_INSUFFICIENT_BALANCE: "WITHDRAWAL_INSUFFICIENT_BALANCE";
readonly WITHDRAWAL_INSUFFICIENT_BALANCE_FOR_FEE: "WITHDRAWAL_INSUFFICIENT_BALANCE_FOR_FEE";
readonly WITHDRAWAL_INVALID_ADDRESS: "WITHDRAWAL_INVALID_ADDRESS";
readonly WITHDRAWAL_NETWORK_NOT_SUPPORTED: "WITHDRAWAL_NETWORK_NOT_SUPPORTED";
readonly WITHDRAWAL_TOO_MANY_ADDRESSES: "WITHDRAWAL_TOO_MANY_ADDRESSES";
readonly WITHDRAWAL_AMOUNT_BELOW_MINIMUM: "WITHDRAWAL_AMOUNT_BELOW_MINIMUM";
readonly WITHDRAWAL_AMOUNT_ABOVE_MAXIMUM: "WITHDRAWAL_AMOUNT_ABOVE_MAXIMUM";
readonly WITHDRAWAL_ASSET_NOT_SUPPORTED: "WITHDRAWAL_ASSET_NOT_SUPPORTED";
readonly WITHDRAWAL_PROVIDER_ERROR: "WITHDRAWAL_PROVIDER_ERROR";
readonly WITHDRAWAL_2FA_REQUIRED_TOTP: "WITHDRAWAL_2FA_REQUIRED_TOTP";
readonly WITHDRAWAL_2FA_REQUIRED_SMS: "WITHDRAWAL_2FA_REQUIRED_SMS";
readonly WITHDRAWAL_2FA_REQUIRED_FACE_RECOGNITION: "WITHDRAWAL_2FA_REQUIRED_FACE_RECOGNITION";
readonly WITHDRAWAL_2FA_REQUIRED_EMAIL: "WITHDRAWAL_2FA_REQUIRED_EMAIL";
readonly WITHDRAWAL_2FA_REQUIRED_YUBIKEY: "WITHDRAWAL_2FA_REQUIRED_YUBIKEY";
readonly WITHDRAWAL_2FA_REQUIRED_PASSPHRASE: "WITHDRAWAL_2FA_REQUIRED_PASSPHRASE";
readonly WITHDRAWAL_2FA_REQUIRED_MULTI_STEPS: "WITHDRAWAL_2FA_REQUIRED_MULTI_STEPS";
readonly WITHDRAWAL_2FA_INCOMPLETE: "WITHDRAWAL_2FA_INCOMPLETE";
readonly WITHDRAWAL_2FA_INVALID: "WITHDRAWAL_2FA_INVALID";
readonly WITHDRAWAL_2FA_METHOD_NOT_SUPPORTED: "WITHDRAWAL_2FA_METHOD_NOT_SUPPORTED";
readonly WITHDRAWAL_KYC_REQUIRED: "WITHDRAWAL_KYC_REQUIRED";
readonly WITHDRAWAL_EMAIL_UNVERIFIED: "WITHDRAWAL_EMAIL_UNVERIFIED";
readonly WITHDRAWAL_RATE_LIMIT_EXCEEDED: "WITHDRAWAL_RATE_LIMIT_EXCEEDED";
readonly OAUTH_AUTHORIZATION_FAILED: "OAUTH_AUTHORIZATION_FAILED";
readonly OAUTH_TOKEN_EXCHANGE_FAILED: "OAUTH_TOKEN_EXCHANGE_FAILED";
readonly OAUTH_INVALID_STATE: "OAUTH_INVALID_STATE";
readonly OAUTH_INSUFFICIENT_SCOPE: "OAUTH_INSUFFICIENT_SCOPE";
readonly OAUTH_QR_CODE_UNAVAILABLE: "OAUTH_QR_CODE_UNAVAILABLE";
readonly OAUTH_COUNTRY_NOT_DETECTED: "OAUTH_COUNTRY_NOT_DETECTED";
readonly OAUTH_COUNTRY_NOT_SUPPORTED: "OAUTH_COUNTRY_NOT_SUPPORTED";
readonly OAUTH_COUNTRY_CODE_INVALID: "OAUTH_COUNTRY_CODE_INVALID";
readonly WEBHOOK_SIGNATURE_INVALID: "WEBHOOK_SIGNATURE_INVALID";
readonly WEBHOOK_MISSING_HEADERS: "WEBHOOK_MISSING_HEADERS";
readonly WEBHOOK_INVALID_TIMESTAMP: "WEBHOOK_INVALID_TIMESTAMP";
readonly CACHE_MISS: "CACHE_MISS";
readonly CACHE_EXPIRED: "CACHE_EXPIRED";
readonly CACHE_INVALID_PATH: "CACHE_INVALID_PATH";
readonly WITHDRAWAL_DRY_RUN_COMPLETE: "WITHDRAWAL_DRY_RUN_COMPLETE";
readonly ENRICHMENT_NETWORK_NOT_SUPPORTED: "ENRICHMENT_NETWORK_NOT_SUPPORTED";
readonly ENRICHMENT_TIMEOUT: "ENRICHMENT_TIMEOUT";
readonly ENRICHMENT_API_ERROR: "ENRICHMENT_API_ERROR";
};
type TypeEnum3 = (typeof TypeEnum3)[keyof typeof TypeEnum3];
declare const TypeEnum4: {
readonly GOOGLE: "GOOGLE";
readonly EMAIL: "EMAIL";
readonly FACE: "FACE";
readonly SMS: "SMS";
readonly ROAMING_FIDO: "ROAMING_FIDO";
};
type TypeEnum4 = (typeof TypeEnum4)[keyof typeof TypeEnum4];
declare const StatusEnum4: {
readonly PENDING: "pending";
readonly SUCCESS: "success";
readonly FAILED: "failed";
};
type StatusEnum4 = (typeof StatusEnum4)[keyof typeof StatusEnum4];
declare const RelationEnum: {
readonly AND: "AND";
readonly OR: "OR";
};
type RelationEnum = (typeof RelationEnum)[keyof typeof RelationEnum];
type Oauth2ExchangeurlgeturlData = {
body?: never;
path: {
/**
* Exchange identifier.
*/
exchange: SchemaEnum;
};
query: {
/**
* Idempotency key.
*/
idem: string;
/**
* Custom base domain for redirect URI i.e. 'example.com'.
*/
customDomain?: string | null;
};
url: "/v0/oauth2/{exchange}/url";
};
type Oauth2ExchangeurlgeturlResponses = {
/**
* Successful response
*/
200: {
url: string;
success: boolean;
isQRCode?: boolean;
};
};
type Oauth2ExchangeurlgeturlResponse = Oauth2ExchangeurlgeturlResponses[keyof Oauth2ExchangeurlgeturlResponses];
type Oauth2ExchangeslistexchangesData = {
body?: never;
path?: never;
query?: never;
url: "/v0/oauth2/exchanges";
};
type Oauth2ExchangeslistexchangesResponses = {
/**
* Successful response
*/
200: {
success: boolean;
exchanges: Array<{
id: string;
name: string;
logoUrl: string;
status: StatusEnum;
}>;
};
};
type Oauth2ExchangeslistexchangesResponse = Oauth2ExchangeslistexchangesResponses[keyof Oauth2ExchangeslistexchangesResponses];
type WalletdeleteData = {
body?: never;
path?: never;
query?: never;
url: "/v0/wallet";
};
type WalletdeleteErrors = {
/**
* Forbidden - Insufficient API key permissions
*/
403: {
error: string;
type: "APIKEY_INSUFFICIENT_PERMISSIONS";
missing: Array<string>;
};
/**
* Not Found
*/
404: {
error: string;
type: "WALLET_NOT_FOUND";
result?: unknown;
};
};
type WalletdeleteError = WalletdeleteErrors[keyof WalletdeleteErrors];
type WalletdeleteResponses = {
/**
* Successful response
*/
200: {
success: boolean;
message: string;
};
};
type WalletdeleteResponse = WalletdeleteResponses[keyof WalletdeleteResponses];
type WalletgetData = {
body?: never;
path?: never;
query?: never;
url: "/v0/wallet";
};
type WalletgetErrors = {
/**
* Forbidden - Insufficient API key permissions
*/
403: {
error: string;
type: "APIKEY_INSUFFICIENT_PERMISSIONS";
missing: Array<string>;
};
/**
* Not Found
*/
404: {
error: string;
type: "WALLET_NOT_FOUND";
result?: unknown;
};
};
type WalletgetError = WalletgetErrors[keyof WalletgetErrors];
type WalletgetResponses = {
/**
* Successful response
*/
200: {
id: string;
exchange: ExchangeEnum;
balances: {
[key: string]: {
free?: number | null;
used?: number | null;
total?: number | null;
assetId?: string | null;
slug?: string | null;
} | null;
};
ipPool?: Array<string> | null;
invalidApi?: boolean | null;
createdAt?: string | number | null;
updatedAt?: string | number | null;
lastSyncAt?: string | number | null;
expiresAt?: string | number | null;
};
};
type WalletgetResponse = WalletgetResponses[keyof WalletgetResponses];
type WalletpingpingData = {
body?: never;
path?: never;
query?: never;
url: "/v0/wallet/ping";
};
type WalletpingpingErrors = {
/**
* Forbidden - Insufficient API key permissions
*/
403: {
error: string;
type: "APIKEY_INSUFFICIENT_PERMISSIONS";
missing: Array<string>;
};
/**
* Not Found
*/
404: {
error: string;
type: "WALLET_NOT_FOUND";
result?: unknown;
};
};
type WalletpingpingError = WalletpingpingErrors[keyof WalletpingpingErrors];
type WalletpingpingResponses = {
/**
* Successful response
*/
200: {
id: string;
exchange: ExchangeEnum;
status: StatusEnum2;
success: boolean;
};
};
type WalletpingpingResponse = WalletpingpingResponses[keyof WalletpingpingResponses];
type WalletkycgetkycidentityData = {
body?: never;
path?: never;
query?: never;
url: "/v0/wallet/kyc";
};
type WalletkycgetkycidentityErrors = {
/**
* Forbidden - Insufficient API key permissions
*/
403: {
error: string;
type: "APIKEY_INSUFFICIENT_PERMISSIONS";
missing: Array<string>;
};
/**
* Not Found
*/
404: {
error: string;
type: TypeEnum;
};
};
type WalletkycgetkycidentityError = WalletkycgetkycidentityErrors[keyof WalletkycgetkycidentityErrors];
type WalletkycgetkycidentityResponses = {
/**
* Successful response
*/
200: {
fullName: string | null;
email: string | null;
iban: string | null;
country: string | null;
};
};
type WalletkycgetkycidentityResponse = WalletkycgetkycidentityResponses[keyof WalletkycgetkycidentityResponses];
type WalletlistlistwalletsData = {
body?: never;
path?: never;
query?: {
/**
* Page number (0-indexed).
*/
page?: number | null;
/**
* Number of wallets per page (max 1000).
*/
limit?: number | null;
/**
* Filter by exchange.
*/
exchange?: SchemaEnum2;
/**
* Filter by creation date (from, ISO format).
*/
createdSince?: string | null;
/**
* Filter by creation date (before, ISO format).
*/
createdBefore?: string | null;
/**
* Filter by last sync date (from, ISO format).
*/
lastSyncSince?: string | null;
/**
* Filter by last sync date (before, ISO format).
*/
lastSyncBefore?: string | null;
/**
* Filter by API validity status.
*/
invalidApi?: SchemaEnum3;
/**
* Comma-separated list of fields to include.
*/
fields?: string | null;
};
url: "/v0/wallet/list";
};
type WalletlistlistwalletsErrors = {
/**
* Forbidden - Insufficient API key permissions
*/
403: {
error: string;
type: "APIKEY_INSUFFICIENT_PERMISSIONS";
missing: Array<string>;
};
};
type WalletlistlistwalletsError = WalletlistlistwalletsErrors[keyof WalletlistlistwalletsErrors];
type WalletlistlistwalletsResponses = {
/**
* Successful response
*/
200: {
wallets: Array<{
id: string;
projectId?: string | null;
createdAt?: string | number | null;
updatedAt?: string | number | null;
lastSyncAt?: string | number | null;
expiresAt?: string | number | null;
exchange: ExchangeEnum;
balances: {
[key: string]: {
free?: number | null;
used?: number | null;
total?: number | null;
assetId?: string | null;
slug?: string | null;
} | null;
};
ipPool?: Array<string> | null;
invalidApi?: boolean | number | null;
}>;
pagination: {
totalCount: number;
page: number;
limit: number;
pageCount: number;
};
};
};
type WalletlistlistwalletsResponse = WalletlistlistwalletsResponses[keyof WalletlistlistwalletsResponses];
type WallettransactionslisttransactionsData = {
body?: never;
path?: never;
query?: {
/**
* Page number (0-indexed).
*/
page?: number | null;
/**
* Number of transactions per page (max 1000).
*/
limit?: number | null;
/**
* Filter transactions after this date (ISO format).
*/
sinceDate?: string | null;
};
url: "/v0/wallet/transactions";
};
type WallettransactionslisttransactionsErrors = {
/**
* Forbidden - Insufficient API key permissions
*/
403: {
error: string;
type: "APIKEY_INSUFFICIENT_PERMISSIONS";
missing: Array<string>;
};
};
type WallettransactionslisttransactionsError = WallettransactionslisttransactionsErrors[keyof WallettransactionslisttransactionsErrors];
type WallettransactionslisttransactionsResponses = {
/**
* Successful response
*/
200: {
transactions: Array<{
id: string;
walletId: string;
createdAt?: string | number | null;
updatedAt?: string | number | null;
timestamp?: string | number | null;
type: TypeEnum2;
amount: number;
currency: string;
direction?: DirectionEnum;
feeCost?: number | null;
feeCurrency?: string | null;
amountInFiat?: number | null;
feeInFiat?: number | null;
fiatCurrency?: FiatCurrencyEnum;
status: StatusEnum3;
addressTo?: string | null;
network?: string | null;
addressFrom?: string | null;
hash?: string | null;
contractAddress?: string | null;
tag?: string | null;
exchange?: string | null;
rawResponse?: unknown;
}>;
pagination: {
totalCount: number;
page: number;
limit: number;
pageCount: number;
offset: number;
};
};
};
type WallettransactionslisttransactionsResponse = WallettransactionslisttransactionsResponses[keyof WallettransactionslisttransactionsResponses];
type WallettransactiontransactionidgettransactionData = {
body?: never;
path: {
/**
* The transaction ID
*/
transactionId: string;
};
query?: never;
url: "/v0/wallet/transaction/{transactionId}";
};
type WallettransactiontransactionidgettransactionErrors = {
/**
* Forbidden - Insufficient API key permissions
*/
403: {
error: string;
type: "APIKEY_INSUFFICIENT_PERMISSIONS";
missing: Array<string>;
};
/**
* Not Found
*/
404: {
error: string;
type: "GENERIC_NOT_FOUND";
};
};
type WallettransactiontransactionidgettransactionError = WallettransactiontransactionidgettransactionErrors[keyof WallettransactiontransactionidgettransactionErrors];
type WallettransactiontransactionidgettransactionResponses = {
/**
* Successful response
*/
200: {
id: string;
walletId: string;
createdAt?: string | number | null;
updatedAt?: string | number | null;
timestamp?: string | number | null;
type: TypeEnum2;
amount: number;
currency: string;
direction?: DirectionEnum;
feeCost?: number | null;
feeCurrency?: string | null;
amountInFiat?: number | null;
feeInFiat?: number | null;
fiatCurrency?: FiatCurrencyEnum;
status: StatusEnum3;
addressTo?: string | null;
address?: string | null;
network?: string | null;
addressFrom?: string | null;
hash?: string | null;
contractAddress?: string | null;
tag?: string | null;
exchange?: string | null;
rawResponse?: unknown;
};
};
type WallettransactiontransactionidgettransactionResponse = WallettransactiontransactionidgettransactionResponses[keyof WallettransactiontransactionidgettransactionResponses];
type WalletwithdrawbalancebalanceData = {
body?: never;
path?: never;
query?: {
/**
* Override balance refresh threshold in minutes. Set to 0 to always refresh balances from the exchange. Defaults to 0.
*/
refreshThresholdMinutes?: number;
/**
* Automatically delete the wallet if API credentials are found to be invalid during balance fetch. Defaults to true.
*/
autoDeleteIfInvalid?: boolean;
};
url: "/v0/wallet/withdraw/balance";
};
type WalletwithdrawbalancebalanceErrors = {
/**
* Forbidden - Insufficient API key permissions
*/
403: {
error: string;
type: "APIKEY_INSUFFICIENT_PERMISSIONS";
missing: Array<string>;
};
/**
* Not Found
*/
404: {
error: string;
type: "WALLET_NOT_FOUND";
result?: unknown;
};
};
type WalletwithdrawbalancebalanceError = WalletwithdrawbalancebalanceErrors[keyof WalletwithdrawbalancebalanceErrors];
type WalletwithdrawbalancebalanceResponses = {
/**
* Successful response
*/
200: {
lastSyncAt: string;
balances: Array<{
asset: string;
amount: number;
amountInFiat?: number | null;
networks: Array<{
chainId?: 1 | 10 | 14 | 19 | 50 | 56 | 61 | 130 | 137 | 146 | 246 | 295 | 314 | 324 | 480 | 592 | 686 | 747 | 1100 | 1116 | 1284 | 1285 | 1329 | 1514 | 1776 | 2020 | 2088 | 2222 | 3338 | 5464 | 5888 | 7000 | 8453 | 9745 | 10001 | 16600 | 42161 | 42170 | 42220 | 42262 | 43114 | 57073 | 59144 | 80094 | 81457 | 100009 | null;
tokenAddress?: string | null;
contractAddress?: string | null;
contractAddressVerified?: boolean | null;
id: string;
name: string;
displayName: string;
minWithdrawal: string;
maxWithdrawal?: string;
assetName: string;
addressRegex?: string | null;
}>;
extra?: {
slug?: string;
assetId?: string;
};
}>;
};
};
type WalletwithdrawbalancebalanceResponse = WalletwithdrawbalancebalanceResponses[keyof WalletwithdrawbalancebalanceResponses];
type WalletwithdrawquotequotationData = {
body: {
asset: string;
amount: string;
address: string;
network?: string;
tag?: string;
includeFee: boolean;
};
path?: never;
query?: never;
url: "/v0/wallet/withdraw/quote";
};
type WalletwithdrawquotequotationErrors = {
/**
* Bad Request
*/
400: {
error: string;
type: TypeEnum3;
result?: unknown;
};
/**
* Forbidden - Insufficient API key permissions
*/
403: {
error: string;
type: "APIKEY_INSUFFICIENT_PERMISSIONS";
missing: Array<string>;
};
/**
* Not Found
*/
404: {
error: string;
type: "WALLET_NOT_FOUND";
result?: unknown;
};
};
type WalletwithdrawquotequotationError = WalletwithdrawquotequotationErrors[keyof WalletwithdrawquotequotationErrors];
type WalletwithdrawquotequotationResponses = {
/**
* Successful response
*/
200: {
id: string;
asset: string;
amountWithFee?: number | null;
amountNoFee?: number | null;
estimatedFee?: number | null;
amountWithFeeInFiat?: number | null;
amountNoFeeInFiat?: number | null;
estimatedFeeInFiat?: number | null;
destinationAddress: string;
network?: string | null;
tag?: string | null;
estimatedTotal?: number;
feeDetails?: Array<{
category: CategoryEnum;
currency: string;
amount: number;
amountInFiat?: number | null;
fiatCurrency: string;
}>;
expiresAt: string;
additionalInfo: {
minWithdrawal: string | null;
maxWithdrawal?: string | null;
};
};
};
type WalletwithdrawquotequotationResponse = WalletwithdrawquotequotationResponses[keyof WalletwithdrawquotequotationResponses];
type WalletwithdrawquoteidexecutewithdrawData = {
body: {
twofa?: string | null;
emailCode?: string | null;
smsCode?: string | null;
bizNo?: string | null;
tag?: string | null;
params?: {
dryRun?: boolean;
[key: string]: unknown | boolean | undefined;
} | null;
};
path: {
quoteId: string;
};
query?: {
/**
* Automatically delete the wallet if API credentials are found to be invalid during balance fetch. Defaults to true.
*/
autoDeleteIfInvalid?: boolean;
};
url: "/v0/wallet/withdraw/{quoteId}/execute";
};
type WalletwithdrawquoteidexecutewithdrawErrors = {
/**
* Bad Request
*/
400: {
error: string;
type: TypeEnum3;
result?: {
bizNo: string;
steps: Array<{
type: TypeEnum4;
status: StatusEnum4;
required: boolean;
metadata?: {
email?: string;
emailSent?: boolean;
qrCodeUrl?: string;
qrCodeValidSeconds?: number;
roamingFlowId?: string;
[key: string]: unknown | string | boolean | number | undefined;
};
[key: string]: unknown | TypeEnum4 | StatusEnum4 | boolean | {
email?: string;
emailSent?: boolean;
qrCodeUrl?: string;
qrCodeValidSeconds?: number;
roamingFlowId?: string;
[key: string]: unknown | string | boolean | number | undefined;
} | undefined;
}>;
relation: RelationEnum;
mfa?: {
bizNo?: string;
verified: {
EMAIL?: boolean;
SMS?: boolean;
GOOGLE?: boolean;
FACE?: boolean;
ROAMING_FIDO?: boolean;
};
attempts?: Array<{
method: TypeEnum4;
status: StatusEnum4;
createdAt: number;
validatedAt?: number;
expiresAt?: number;
success: boolean;
}>;
methods?: Array<{
method: "EMAIL";
email: string;
} | {
method: "SMS";
phoneNumber: string;
} | {
method: "GOOGLE";
} | {
method: "FACE";
viaMobile: boolean;
} | {
method: "ROAMING_FIDO";
}>;
};
[key: string]: unknown | string | Array<{
type: TypeEnum4;
status: StatusEnum4;
required: boolean;
metadata?: {
email?: string;
emailSent?: boolean;
qrCodeUrl?: string;
qrCodeValidSeconds?: number;
roamingFlowId?: string;
[key: string]: unknown | string | boolean | number | undefined;
};
[key: string]: unknown | TypeEnum4 | StatusEnum4 | boolean | {
email?: string;
emailSent?: boolean;
qrCodeUrl?: string;
qrCodeValidSeconds?: number;
roamingFlowId?: string;
[key: string]: unknown | string | boolean | number | undefined;
} | undefined;
}> | RelationEnum | {
bizNo?: string;
verified: {
EMAIL?: boolean;
SMS?: boolean;
GOOGLE?: boolean;
FACE?: boolean;
ROAMING_FIDO?: boolean;
};
attempts?: Array<{
method: TypeEnum4;
status: StatusEnum4;
createdAt: number;
validatedAt?: number;
expiresAt?: number;
success: boolean;
}>;
methods?: Array<{
method: "EMAIL";
email: string;
} | {
method: "SMS";
phoneNumber: string;
} | {
method: "GOOGLE";
} | {
method: "FACE";
viaMobile: boolean;
} | {
method: "ROAMING_FIDO";
}>;
} | undefined;
} | {
bizNo?: string;
steps?: Array<{
type: string;
status: StatusEnum4;
error?: string;
[key: string]: unknown | string | StatusEnum4 | undefined;
}>;
mfa?: {
bizNo?: string;
verified: {
EMAIL?: boolean;
SMS?: boolean;
GOOGLE?: boolean;
FACE?: boolean;
ROAMING_FIDO?: boolean;
};
attempts?: Array<{
method: TypeEnum4;
status: StatusEnum4;
createdAt: number;
validatedAt?: number;
expiresAt?: number;
success: boolean;
}>;
methods?: Array<{
method: "EMAIL";
email: string;
} | {
method: "SMS";
phoneNumber: string;
} | {
method: "GOOGLE";
} | {
method: "FACE";
viaMobile: boolean;
} | {
method: "ROAMING_FIDO";
}>;
};
[key: string]: unknown | string | Array<{
type: string;
status: StatusEnum4;
error?: string;
[key: string]: unknown | string | StatusEnum4 | undefined;
}> | {
bizNo?: string;
verified: {
EMAIL?: boolean;
SMS?: boolean;
GOOGLE?: boolean;
FACE?: boolean;
ROAMING_FIDO?: boolean;
};
attempts?: Array<{
method: TypeEnum4;
status: StatusEnum4;
createdAt: number;
validatedAt?: number;
expiresAt?: number;
success: boolean;
}>;
methods?: Array<{
method: "EMAIL";
email: string;
} | {
method: "SMS";
phoneNumber: string;
} | {
method: "GOOGLE";
} | {
method: "FACE";
viaMobile: boolean;
} | {
method: "ROAMING_FIDO";
}>;
} | undefined;
} | {
valid2FAMethods: Array<string>;
[key: string]: unknown | Array<string>;
} | {
bizNo?: string;
steps?: Array<{
type: string;
status: "success";
}>;
accountId?: string;
dryRun: true;
readyToTransact: true;
mfa?: {
bizNo?: string;
verified: {
EMAIL?: boolean;
SMS?: boolean;
GOOGLE?: boolean;
FACE?: boolean;
ROAMING_FIDO?: boolean;
};
attempts?: Array<{
method: TypeEnum4;
status: StatusEnum4;
createdAt: number;
validatedAt?: number;
expiresAt?: number;
success: boolean;
}>;
methods?: Array<{
method: "EMAIL";
email: string;
} | {
method: "SMS";
phoneNumber: string;
} | {
method: "GOOGLE";
} | {
method: "FACE";
viaMobile: boolean;
} | {
method: "ROAMING_FIDO";
}>;
};
[key: string]: unknown | string | Array<{
type: string;
status: "success";
}> | true | {
bizNo?: string;
verified: {
EMAIL?: boolean;
SMS?: boolean;
GOOGLE?: boolean;
FACE?: boolean;
ROAMING_FIDO?: boolean;
};
attempts?: Array<{
method: TypeEnum4;
status: StatusEnum4;
createdAt: number;
validatedAt?: number;
expiresAt?: number;
success: boolean;
}>;
methods?: Array<{
method: "EMAIL";
email: string;
} | {
method: "SMS";
phoneNumber: string;
} | {
method: "GOOGLE";
} | {
method: "FACE";
viaMobile: boolean;
} | {
method: "ROAMING_FIDO";
}>;
} | undefined;
} | {
[key: string]: unknown;
};
};
/**
* Forbidden - Insufficient API key permissions
*/
403: {
error: string;
type: "APIKEY_INSUFFICIENT_PERMISSIONS";
missing: Array<string>;
};
/**
* Not Found
*/
404: {
error: string;
type: TypeEnum3;
result?: {
bizNo: string;
steps: Array<{
type: TypeEnum4;
status: StatusEnum4;
required: boolean;
metadata?: {
email?: string;
emailSent?: boolean;
qrCodeUrl?: string;
qrCodeValidSeconds?: number;
roamingFlowId?: string;
[key: string]: unknown | string | boolean | number | undefined;
};
[key: string]: unknown | TypeEnum4 | StatusEnum4 | boolean | {
email?: string;
emailSent?: boolean;
qrCodeUrl?: string;
qrCodeValidSeconds?: number;
roamingFlowId?: string;
[key: string]: unknown | string | boolean | number | undefined;
} | undefined;
}>;
relation: RelationEnum;
mfa?: {
bizNo?: string;
verified: {
EMAIL?: boolean;
SMS?: boolean;
GOOGLE?: boolean;
FACE?: boolean;
ROAMING_FIDO?: boolean;
};
attempts?: Array<{
method: TypeEnum4;
status: StatusEnum4;
createdAt: number;
validatedAt?: number;
expiresAt?: number;
success: boolean;
}>;
methods?: Array<{
method: "EMAIL";
email: string;
} | {
method: "SMS";
phoneNumber: string;
} | {
method: "GOOGLE";
} | {
method: "FACE";
viaMobile: boolean;
} | {
method: "ROAMING_FIDO";
}>;
};
[key: string]: unknown | string | Array<{
type: TypeEnum4;
status: StatusEnum4;
required: boolean;
metadata?: {
email?: string;
emailSent?: boolean;
qrCodeUrl?: string;
qrCodeValidSeconds?: number;
roamingFlowId?: string;
[key: string]: unknown | string | boolean | number | undefined;
};
[key: string]: unknown | TypeEnum4 | StatusEnum4 | boolean | {
email?: string;
emailSent?: boolean;
qrCodeUrl?: string;
qrCodeValidSeconds?: number;
roamingFlowId?: string;
[key: string]: unknown | string | boolean | number | undefined;
} | undefined;
}> | RelationEnum | {
bizNo?: string;
verified: {
EMAIL?: boolean;
SMS?: boolean;
GOOGLE?: boolean;
FACE?: boolean;
ROAMING_FIDO?: boolean;
};
attempts?: Array<{
method: TypeEnum4;
status: StatusEnum4;
createdAt: number;
validatedAt?: number;
expiresAt?: number;
success: boolean;
}>;
methods?: Array<{
method: "EMAIL";
email: string;
} | {
method: "SMS";
phoneNumber: string;
} | {
method: "GOOGLE";
} | {
method: "FACE";
viaMobile: boolean;
} | {
method: "ROAMING_FIDO";
}>;
} | undefined;
} | {
bizNo?: string;
steps?: Array<{
type: string;
status: StatusEnum4;
error?: string;
[key: string]: unknown | string | StatusEnum4 | undefined;
}>;
mfa?: {
bizNo?: string;
verified: {
EMAIL?: boolean;
SMS?: boolean;
GOOGLE?: boolean;
FACE?: boolean;
ROAMING_FIDO?: boolean;
};
attempts?: Array<{
method: TypeEnum4;
status: StatusEnum4;
createdAt: number;
validatedAt?: number;
expiresAt?: number;
success: boolean;
}>;
methods?: Array<{
method: "EMAIL";
email: string;
} | {
method: "SMS";
phoneNumber: string;
} | {
method: "GOOGLE";
} | {
method: "FACE";
viaMobile: boolean;
} | {
method: "ROAMING_FIDO";
}>;
};
[key: string]: unknown | string | Array<{
type: string;
status: StatusEnum4;
error?: string;
[key: string]: unknown | string | StatusEnum4 | undefined;
}> | {
bizNo?: string;
verified: {
EMAIL?: boolean;
SMS?: boolean;
GOOGLE?: boolean;
FACE?: boolean;
ROAMING_FIDO?: boolean;
};
attempts?: Array<{
method: TypeEnum4;
status: StatusEnum4;
createdAt: number;
validatedAt?: number;
expiresAt?: number;
success: boolean;
}>;
methods?: Array<{
method: "EMAIL";
email: string;
} | {
method: "SMS";
phoneNumber: string;
} | {
method: "GOOGLE";
} | {
method: "FACE";
viaMobile: boolean;
} | {
method: "ROAMING_FIDO";
}>;
} | undefined;
} | {
valid2FAMethods: Array<string>;
[key: string]: unknown | Array<string>;
} | {
bizNo?: string;
steps?: Array<{
type: string;
status: "success";
}>;
accountId?: string;
dryRun: true;
readyToTransact: true;
mfa?: {
bizNo?: string;
verified: {
EMAIL?: boolean;
SMS?: boolean;
GOOGLE?: boolean;
FACE?: boolean;
ROAMING_FIDO?: boolean;
};
attempts?: Array<{
method: TypeEnum4;
status: StatusEnum4;
createdAt: number;
validatedAt?: number;
expiresAt?: number;
success: boolean;
}>;
methods?: Array<{
method: "EMAIL";
email: string;
} | {
method: "SMS";
phoneNumber: string;
} | {
method: "GOOGLE";
} | {
method: "FACE";
viaMobile: boolean;
} | {
method: "ROAMING_FIDO";
}>;
};
[key: string]: unknown | string | Array<{
type: string;
status: "success";
}> | true | {
bizNo?: string;
verified: {
EMAIL?: boolean;
SMS?: boolean;
GOOGLE?: boolean;
FACE?: boolean;
ROAMING_FIDO?: boolean;
};
attempts?: Array<{
method: TypeEnum4;
status: StatusEnum4;
createdAt: number;
validatedAt?: number;
expiresAt?: number;
success: boolean;
}>;
methods?: Array<{
method: "EMAIL";
email: string;
} | {
method: "SMS";
phoneNumber: string;
} | {
method: "GOOGLE";
} | {
method: "FACE";
viaMobile: boolean;
} | {
method: "ROAMING_FIDO";
}>;
} | undefined;
} | {
[key: string]: unknown;
};
};
};
type WalletwithdrawquoteidexecutewithdrawError = WalletwithdrawquoteidexecutewithdrawErrors[keyof WalletwithdrawquoteidexecutewithdrawErrors];
type WalletwithdrawquoteidexecutewithdrawResponses = {
/**
* Successful response
*/
200: {
success: boolean;
error?: string;
type?: TypeEnum3;
result?: {
transactionId: string;
[key: string]: unknown | string;
} | {
bizNo: string;
steps: Array<{
type: TypeEnum4;
status: StatusEnum4;
required: boolean;
metadata?: {
email?: string;
emailSent?: boolean;
qrCodeUrl?: string;
qrCodeValidSeconds?: number;
roamingFlowId?: string;
[key: string]: unknown | string | boolean | number | undefined;
};
[key: string]: unknown | TypeEnum4 | StatusEnum4 | boolean | {
email?: string;
emailSent?: boolean;
qrCodeUrl?: string;
qrCodeValidSeconds?: number;
roamingFlowId