@bluvo/sdk-ts
Version:
Bluvo SDK for TypeScript
452 lines (384 loc) • 34.9 kB
text/typescript
import { ResponseContext, RequestContext, HttpFile, HttpInfo } from '../http/http';
import { Configuration, PromiseConfigurationOptions, wrapOptions } from '../configuration'
import { PromiseMiddleware, Middleware, PromiseMiddlewareWrapper } from '../middleware';
import { Asset200Response } from '../models/Asset200Response';
import { Asset200ResponseAssetsInner } from '../models/Asset200ResponseAssetsInner';
import { ConnectWallet200Response } from '../models/ConnectWallet200Response';
import { ConnectWalletRequest } from '../models/ConnectWalletRequest';
import { DeleteWallet200Response } from '../models/DeleteWallet200Response';
import { GetOTTToken200Response } from '../models/GetOTTToken200Response';
import { GetWallet200Response } from '../models/GetWallet200Response';
import { GetWorkflow200Response } from '../models/GetWorkflow200Response';
import { GetWorkflow200ResponseStepsInner } from '../models/GetWorkflow200ResponseStepsInner';
import { GetWorkflow200ResponseStepsInnerErrorsInner } from '../models/GetWorkflow200ResponseStepsInnerErrorsInner';
import { ListAssets200Response } from '../models/ListAssets200Response';
import { ListAssets200ResponseAssetsInner } from '../models/ListAssets200ResponseAssetsInner';
import { ListPairs200Response } from '../models/ListPairs200Response';
import { ListTransactions200Response } from '../models/ListTransactions200Response';
import { ListTransactions200ResponsePagination } from '../models/ListTransactions200ResponsePagination';
import { ListTransactions200ResponseTransactionsInner } from '../models/ListTransactions200ResponseTransactionsInner';
import { ListWallets200Response } from '../models/ListWallets200Response';
import { ListWallets200ResponsePagination } from '../models/ListWallets200ResponsePagination';
import { ListWallets200ResponseWalletsInner } from '../models/ListWallets200ResponseWalletsInner';
import { WithdrawFunds200Response } from '../models/WithdrawFunds200Response';
import { WithdrawFundsRequest } from '../models/WithdrawFundsRequest';
import { ObservableBasicApi } from './ObservableAPI';
import { BasicApiRequestFactory, BasicApiResponseProcessor} from "../apis/BasicApi";
export class PromiseBasicApi {
private api: ObservableBasicApi
public constructor(
configuration: Configuration,
requestFactory?: BasicApiRequestFactory,
responseProcessor?: BasicApiResponseProcessor
) {
this.api = new ObservableBasicApi(configuration, requestFactory, responseProcessor);
}
/**
* Retrieve detailed information for a specific asset. The asset parameter in the URL path should be the asset\'s symbol (e.g. BTC, ETH). Because some assets have duplications, this endpoint returns a list of matching asset objects. Optionally, the \'img\' query parameter can be used to control whether an image URL is included and which variant is provided.
* Asset
* @param asset The asset symbol to query (e.g. BTC, ETH).
* @param [img] Specifies whether to include an image URL in each asset object. Allowed values are: \'true\' (include the default image), \'false\' (exclude image), \'32\' (32px variant), or \'64\' (64px variant).
*/
public assetWithHttpInfo(asset: string, img?: 'false' | '32' | '64' | '128', _options?: PromiseConfigurationOptions): Promise<HttpInfo<Asset200Response>> {
const observableOptions = wrapOptions(_options);
const result = this.api.assetWithHttpInfo(asset, img, observableOptions);
return result.toPromise();
}
/**
* Retrieve detailed information for a specific asset. The asset parameter in the URL path should be the asset\'s symbol (e.g. BTC, ETH). Because some assets have duplications, this endpoint returns a list of matching asset objects. Optionally, the \'img\' query parameter can be used to control whether an image URL is included and which variant is provided.
* Asset
* @param asset The asset symbol to query (e.g. BTC, ETH).
* @param [img] Specifies whether to include an image URL in each asset object. Allowed values are: \'true\' (include the default image), \'false\' (exclude image), \'32\' (32px variant), or \'64\' (64px variant).
*/
public asset(asset: string, img?: 'false' | '32' | '64' | '128', _options?: PromiseConfigurationOptions): Promise<Asset200Response> {
const observableOptions = wrapOptions(_options);
const result = this.api.asset(asset, img, observableOptions);
return result.toPromise();
}
/**
* Retrieve a paginated list of available assets. Optionally, use the \'img\' query parameter to include a specific image variant with each asset. The \'page\' and \'limit\' parameters control pagination.
* List Assets
* @param [img] Optional. Specifies the image variant for each asset. Allowed values: \'false\' (exclude images), \'true\' (include default image), \'64\' (64px variant), or \'32\' (32px variant).
* @param [page] Optional. Page number for pagination (0-indexed). Defaults to 0.
* @param [limit] Optional. Maximum number of assets to return per page. Defaults to 100.
*/
public listAssetsWithHttpInfo(img?: 'false' | '32' | '64' | '128', page?: number, limit?: number, _options?: PromiseConfigurationOptions): Promise<HttpInfo<ListAssets200Response>> {
const observableOptions = wrapOptions(_options);
const result = this.api.listAssetsWithHttpInfo(img, page, limit, observableOptions);
return result.toPromise();
}
/**
* Retrieve a paginated list of available assets. Optionally, use the \'img\' query parameter to include a specific image variant with each asset. The \'page\' and \'limit\' parameters control pagination.
* List Assets
* @param [img] Optional. Specifies the image variant for each asset. Allowed values: \'false\' (exclude images), \'true\' (include default image), \'64\' (64px variant), or \'32\' (32px variant).
* @param [page] Optional. Page number for pagination (0-indexed). Defaults to 0.
* @param [limit] Optional. Maximum number of assets to return per page. Defaults to 100.
*/
public listAssets(img?: 'false' | '32' | '64' | '128', page?: number, limit?: number, _options?: PromiseConfigurationOptions): Promise<ListAssets200Response> {
const observableOptions = wrapOptions(_options);
const result = this.api.listAssets(img, page, limit, observableOptions);
return result.toPromise();
}
/**
* Retrieve a list of available trading pairs for a specified exchange. The exchange parameter in the URL path must be one of the supported exchanges.
* List Pairs
* @param exchange The identifier of the exchange to query (e.g. \'binance\', \'kraken\').
*/
public listPairsWithHttpInfo(exchange: 'ace' | 'ascendex' | 'bequant' | 'bigone' | 'binance' | 'coinbase' | 'binanceus' | 'bingx' | 'bit2c' | 'bitbank' | 'bitbns' | 'bitcoincom' | 'bitfinex' | 'bitflyer' | 'bitget' | 'bithumb' | 'bitmart' | 'bitmex' | 'bitopro' | 'bitpanda' | 'bitrue' | 'bitso' | 'bitstamp' | 'bitteam' | 'bitvavo' | 'bl3p' | 'blockchaincom' | 'blofin' | 'btcalpha' | 'btcbox' | 'btcmarkets' | 'btcturk' | 'cex' | 'coincheck' | 'coinex' | 'coinlist' | 'coinmate' | 'coinmetro' | 'coinone' | 'coinsph' | 'coinspot' | 'cryptocom' | 'delta' | 'deribit' | 'digifinex' | 'exmo' | 'fmfwio' | 'gate' | 'gateio' | 'gemini' | 'hashkey' | 'hitbtc' | 'hollaex' | 'htx' | 'huobi' | 'huobijp' | 'hyperliquid' | 'independentreserve' | 'indodax' | 'kraken' | 'krakenfutures' | 'kucoin' | 'kucoinfutures' | 'latoken' | 'lbank' | 'luno' | 'mercado' | 'mexc' | 'ndax' | 'novadax' | 'oceanex' | 'okcoin' | 'okx' | 'onetrading' | 'oxfun' | 'p2b' | 'paradex' | 'paymium' | 'phemex' | 'poloniex' | 'poloniexfutures' | 'probit' | 'timex' | 'tradeogre' | 'upbit' | 'vertex' | 'wavesexchange' | 'whitebit' | 'woo' | 'woofipro' | 'xt' | 'yobit' | 'zaif' | 'zonda', _options?: PromiseConfigurationOptions): Promise<HttpInfo<ListPairs200Response>> {
const observableOptions = wrapOptions(_options);
const result = this.api.listPairsWithHttpInfo(exchange, observableOptions);
return result.toPromise();
}
/**
* Retrieve a list of available trading pairs for a specified exchange. The exchange parameter in the URL path must be one of the supported exchanges.
* List Pairs
* @param exchange The identifier of the exchange to query (e.g. \'binance\', \'kraken\').
*/
public listPairs(exchange: 'ace' | 'ascendex' | 'bequant' | 'bigone' | 'binance' | 'coinbase' | 'binanceus' | 'bingx' | 'bit2c' | 'bitbank' | 'bitbns' | 'bitcoincom' | 'bitfinex' | 'bitflyer' | 'bitget' | 'bithumb' | 'bitmart' | 'bitmex' | 'bitopro' | 'bitpanda' | 'bitrue' | 'bitso' | 'bitstamp' | 'bitteam' | 'bitvavo' | 'bl3p' | 'blockchaincom' | 'blofin' | 'btcalpha' | 'btcbox' | 'btcmarkets' | 'btcturk' | 'cex' | 'coincheck' | 'coinex' | 'coinlist' | 'coinmate' | 'coinmetro' | 'coinone' | 'coinsph' | 'coinspot' | 'cryptocom' | 'delta' | 'deribit' | 'digifinex' | 'exmo' | 'fmfwio' | 'gate' | 'gateio' | 'gemini' | 'hashkey' | 'hitbtc' | 'hollaex' | 'htx' | 'huobi' | 'huobijp' | 'hyperliquid' | 'independentreserve' | 'indodax' | 'kraken' | 'krakenfutures' | 'kucoin' | 'kucoinfutures' | 'latoken' | 'lbank' | 'luno' | 'mercado' | 'mexc' | 'ndax' | 'novadax' | 'oceanex' | 'okcoin' | 'okx' | 'onetrading' | 'oxfun' | 'p2b' | 'paradex' | 'paymium' | 'phemex' | 'poloniex' | 'poloniexfutures' | 'probit' | 'timex' | 'tradeogre' | 'upbit' | 'vertex' | 'wavesexchange' | 'whitebit' | 'woo' | 'woofipro' | 'xt' | 'yobit' | 'zaif' | 'zonda', _options?: PromiseConfigurationOptions): Promise<ListPairs200Response> {
const observableOptions = wrapOptions(_options);
const result = this.api.listPairs(exchange, observableOptions);
return result.toPromise();
}
}
import { ObservableOneTimeTokenApi } from './ObservableAPI';
import { OneTimeTokenApiRequestFactory, OneTimeTokenApiResponseProcessor} from "../apis/OneTimeTokenApi";
export class PromiseOneTimeTokenApi {
private api: ObservableOneTimeTokenApi
public constructor(
configuration: Configuration,
requestFactory?: OneTimeTokenApiRequestFactory,
responseProcessor?: OneTimeTokenApiResponseProcessor
) {
this.api = new ObservableOneTimeTokenApi(configuration, requestFactory, responseProcessor);
}
/**
* Retrieve an OTT (One-Time Token) for accessing private endpoints. This endpoint does not require authentication and is used to obtain a temporary token that can be used for subsequent requests to private endpoints.
* Get OTT Token
*/
public getOTTTokenWithHttpInfo(_options?: PromiseConfigurationOptions): Promise<HttpInfo<GetOTTToken200Response>> {
const observableOptions = wrapOptions(_options);
const result = this.api.getOTTTokenWithHttpInfo(observableOptions);
return result.toPromise();
}
/**
* Retrieve an OTT (One-Time Token) for accessing private endpoints. This endpoint does not require authentication and is used to obtain a temporary token that can be used for subsequent requests to private endpoints.
* Get OTT Token
*/
public getOTTToken(_options?: PromiseConfigurationOptions): Promise<GetOTTToken200Response> {
const observableOptions = wrapOptions(_options);
const result = this.api.getOTTToken(observableOptions);
return result.toPromise();
}
}
import { ObservablePricesApi } from './ObservableAPI';
import { PricesApiRequestFactory, PricesApiResponseProcessor} from "../apis/PricesApi";
export class PromisePricesApi {
private api: ObservablePricesApi
public constructor(
configuration: Configuration,
requestFactory?: PricesApiRequestFactory,
responseProcessor?: PricesApiResponseProcessor
) {
this.api = new ObservablePricesApi(configuration, requestFactory, responseProcessor);
}
/**
* Fetch historical candlestick (OHLCV) data for a given asset and quote currency. You may optionally filter the data using query parameters: \'since\' and \'until\' for the time range, \'exchange\' to specify the data source, and \'granularity\' to set the time interval for each candlestick.
* Candlesticks
* @param asset The asset symbol to retrieve candlestick data for (e.g. BTC, ETH).
* @param quote The quote currency used in the trading pair (e.g. USDT).
* @param [since] Optional. The start timestamp (in UNIX milliseconds) for the candlestick data range.
* @param [until] Optional. The end timestamp (in UNIX milliseconds) for the candlestick data range.
* @param [exchange] Optional. The exchange from which to retrieve candlestick data. Defaults to \'binance\'.
* @param [granularity] Optional. The time interval for each candlestick. Allowed values include \'1m\', \'15m\', \'30m\', \'1h\', \'4h\', \'1d\'.
*/
public candlesticksWithHttpInfo(asset: string, quote: 'USDT', since?: number, until?: number, exchange?: 'binance' | 'kraken' | 'bitget' | 'bitmart' | 'bybit' | 'coinbase' | 'cryptocom' | 'gateio' | 'kraken' | 'kucoin' | 'okx', granularity?: '1h', _options?: PromiseConfigurationOptions): Promise<HttpInfo<Array<Array<any>>>> {
const observableOptions = wrapOptions(_options);
const result = this.api.candlesticksWithHttpInfo(asset, quote, since, until, exchange, granularity, observableOptions);
return result.toPromise();
}
/**
* Fetch historical candlestick (OHLCV) data for a given asset and quote currency. You may optionally filter the data using query parameters: \'since\' and \'until\' for the time range, \'exchange\' to specify the data source, and \'granularity\' to set the time interval for each candlestick.
* Candlesticks
* @param asset The asset symbol to retrieve candlestick data for (e.g. BTC, ETH).
* @param quote The quote currency used in the trading pair (e.g. USDT).
* @param [since] Optional. The start timestamp (in UNIX milliseconds) for the candlestick data range.
* @param [until] Optional. The end timestamp (in UNIX milliseconds) for the candlestick data range.
* @param [exchange] Optional. The exchange from which to retrieve candlestick data. Defaults to \'binance\'.
* @param [granularity] Optional. The time interval for each candlestick. Allowed values include \'1m\', \'15m\', \'30m\', \'1h\', \'4h\', \'1d\'.
*/
public candlesticks(asset: string, quote: 'USDT', since?: number, until?: number, exchange?: 'binance' | 'kraken' | 'bitget' | 'bitmart' | 'bybit' | 'coinbase' | 'cryptocom' | 'gateio' | 'kraken' | 'kucoin' | 'okx', granularity?: '1h', _options?: PromiseConfigurationOptions): Promise<Array<Array<any>>> {
const observableOptions = wrapOptions(_options);
const result = this.api.candlesticks(asset, quote, since, until, exchange, granularity, observableOptions);
return result.toPromise();
}
}
import { ObservableTransactionsApi } from './ObservableAPI';
import { TransactionsApiRequestFactory, TransactionsApiResponseProcessor} from "../apis/TransactionsApi";
export class PromiseTransactionsApi {
private api: ObservableTransactionsApi
public constructor(
configuration: Configuration,
requestFactory?: TransactionsApiRequestFactory,
responseProcessor?: TransactionsApiResponseProcessor
) {
this.api = new ObservableTransactionsApi(configuration, requestFactory, responseProcessor);
}
/**
* Retrieve a paginated list of transactions for a specific wallet. This endpoint requires authentication via a valid Bluvo API Key, which must be included in the request headers. Supports pagination, filtering by asset, type, date range, and status, as well as field selection to control which properties are returned in the response.
* List Transactions
* @param walletId
* @param [page] Optional. Page number for pagination (0-indexed). Defaults to 0.
* @param [limit] Optional. Maximum number of transactions to return per page. Defaults to 10. Maximum value is 1000.
* @param [asset] Optional. Filter transactions by asset symbol.
* @param [type] Optional. Filter transactions by type (e.g., \'deposit\', \'withdrawal\').
* @param [since] Optional. Filter transactions created on or after this date (ISO format).
* @param [before] Optional. Filter transactions created before this date (ISO format).
* @param [status] Optional. Filter transactions by status (e.g., \'completed\', \'pending\').
* @param [fields] Optional. Comma-separated list of fields to include in the response. If not specified, all fields are included.
*/
public listTransactionsWithHttpInfo(walletId: string, page?: number, limit?: number, asset?: string, type?: string, since?: string, before?: string, status?: string, fields?: string, _options?: PromiseConfigurationOptions): Promise<HttpInfo<ListTransactions200Response>> {
const observableOptions = wrapOptions(_options);
const result = this.api.listTransactionsWithHttpInfo(walletId, page, limit, asset, type, since, before, status, fields, observableOptions);
return result.toPromise();
}
/**
* Retrieve a paginated list of transactions for a specific wallet. This endpoint requires authentication via a valid Bluvo API Key, which must be included in the request headers. Supports pagination, filtering by asset, type, date range, and status, as well as field selection to control which properties are returned in the response.
* List Transactions
* @param walletId
* @param [page] Optional. Page number for pagination (0-indexed). Defaults to 0.
* @param [limit] Optional. Maximum number of transactions to return per page. Defaults to 10. Maximum value is 1000.
* @param [asset] Optional. Filter transactions by asset symbol.
* @param [type] Optional. Filter transactions by type (e.g., \'deposit\', \'withdrawal\').
* @param [since] Optional. Filter transactions created on or after this date (ISO format).
* @param [before] Optional. Filter transactions created before this date (ISO format).
* @param [status] Optional. Filter transactions by status (e.g., \'completed\', \'pending\').
* @param [fields] Optional. Comma-separated list of fields to include in the response. If not specified, all fields are included.
*/
public listTransactions(walletId: string, page?: number, limit?: number, asset?: string, type?: string, since?: string, before?: string, status?: string, fields?: string, _options?: PromiseConfigurationOptions): Promise<ListTransactions200Response> {
const observableOptions = wrapOptions(_options);
const result = this.api.listTransactions(walletId, page, limit, asset, type, since, before, status, fields, observableOptions);
return result.toPromise();
}
/**
* Withdraw cryptocurrency from an exchange wallet to an external address. This endpoint requires authentication via a valid Bluvo API Key. The request initiates an asynchronous withdrawal process and returns a workflow run ID that can be used to track the transaction status.
* Withdraw Funds
* @param withdrawFundsRequest
*/
public withdrawFundsWithHttpInfo(withdrawFundsRequest: WithdrawFundsRequest, _options?: PromiseConfigurationOptions): Promise<HttpInfo<WithdrawFunds200Response>> {
const observableOptions = wrapOptions(_options);
const result = this.api.withdrawFundsWithHttpInfo(withdrawFundsRequest, observableOptions);
return result.toPromise();
}
/**
* Withdraw cryptocurrency from an exchange wallet to an external address. This endpoint requires authentication via a valid Bluvo API Key. The request initiates an asynchronous withdrawal process and returns a workflow run ID that can be used to track the transaction status.
* Withdraw Funds
* @param withdrawFundsRequest
*/
public withdrawFunds(withdrawFundsRequest: WithdrawFundsRequest, _options?: PromiseConfigurationOptions): Promise<WithdrawFunds200Response> {
const observableOptions = wrapOptions(_options);
const result = this.api.withdrawFunds(withdrawFundsRequest, observableOptions);
return result.toPromise();
}
}
import { ObservableWalletsApi } from './ObservableAPI';
import { WalletsApiRequestFactory, WalletsApiResponseProcessor} from "../apis/WalletsApi";
export class PromiseWalletsApi {
private api: ObservableWalletsApi
public constructor(
configuration: Configuration,
requestFactory?: WalletsApiRequestFactory,
responseProcessor?: WalletsApiResponseProcessor
) {
this.api = new ObservableWalletsApi(configuration, requestFactory, responseProcessor);
}
/**
* Connect an external cryptocurrency exchange account to your Bluvo project. This endpoint requires authentication via a valid Bluvo API Key, which must be included in the request headers. The connection is established using the exchange API credentials provided in the request body. It returns a unique workflow run ID that can be used to track the connection process.
* Connect Wallet
* @param exchange The identifier of the exchange to connect (e.g. \'binance\', \'kraken\').
* @param connectWalletRequest
*/
public connectWalletWithHttpInfo(exchange: 'ace' | 'ascendex' | 'bequant' | 'bigone' | 'binance' | 'coinbase' | 'binanceus' | 'bingx' | 'bit2c' | 'bitbank' | 'bitbns' | 'bitcoincom' | 'bitfinex' | 'bitflyer' | 'bitget' | 'bithumb' | 'bitmart' | 'bitmex' | 'bitopro' | 'bitpanda' | 'bitrue' | 'bitso' | 'bitstamp' | 'bitteam' | 'bitvavo' | 'bl3p' | 'blockchaincom' | 'blofin' | 'btcalpha' | 'btcbox' | 'btcmarkets' | 'btcturk' | 'cex' | 'coincheck' | 'coinex' | 'coinlist' | 'coinmate' | 'coinmetro' | 'coinone' | 'coinsph' | 'coinspot' | 'cryptocom' | 'delta' | 'deribit' | 'digifinex' | 'exmo' | 'fmfwio' | 'gate' | 'gateio' | 'gemini' | 'hashkey' | 'hitbtc' | 'hollaex' | 'htx' | 'huobi' | 'huobijp' | 'hyperliquid' | 'independentreserve' | 'indodax' | 'kraken' | 'krakenfutures' | 'kucoin' | 'kucoinfutures' | 'latoken' | 'lbank' | 'luno' | 'mercado' | 'mexc' | 'ndax' | 'novadax' | 'oceanex' | 'okcoin' | 'okx' | 'onetrading' | 'oxfun' | 'p2b' | 'paradex' | 'paymium' | 'phemex' | 'poloniex' | 'poloniexfutures' | 'probit' | 'timex' | 'tradeogre' | 'upbit' | 'vertex' | 'wavesexchange' | 'whitebit' | 'woo' | 'woofipro' | 'xt' | 'yobit' | 'zaif' | 'zonda', connectWalletRequest: ConnectWalletRequest, _options?: PromiseConfigurationOptions): Promise<HttpInfo<ConnectWallet200Response>> {
const observableOptions = wrapOptions(_options);
const result = this.api.connectWalletWithHttpInfo(exchange, connectWalletRequest, observableOptions);
return result.toPromise();
}
/**
* Connect an external cryptocurrency exchange account to your Bluvo project. This endpoint requires authentication via a valid Bluvo API Key, which must be included in the request headers. The connection is established using the exchange API credentials provided in the request body. It returns a unique workflow run ID that can be used to track the connection process.
* Connect Wallet
* @param exchange The identifier of the exchange to connect (e.g. \'binance\', \'kraken\').
* @param connectWalletRequest
*/
public connectWallet(exchange: 'ace' | 'ascendex' | 'bequant' | 'bigone' | 'binance' | 'coinbase' | 'binanceus' | 'bingx' | 'bit2c' | 'bitbank' | 'bitbns' | 'bitcoincom' | 'bitfinex' | 'bitflyer' | 'bitget' | 'bithumb' | 'bitmart' | 'bitmex' | 'bitopro' | 'bitpanda' | 'bitrue' | 'bitso' | 'bitstamp' | 'bitteam' | 'bitvavo' | 'bl3p' | 'blockchaincom' | 'blofin' | 'btcalpha' | 'btcbox' | 'btcmarkets' | 'btcturk' | 'cex' | 'coincheck' | 'coinex' | 'coinlist' | 'coinmate' | 'coinmetro' | 'coinone' | 'coinsph' | 'coinspot' | 'cryptocom' | 'delta' | 'deribit' | 'digifinex' | 'exmo' | 'fmfwio' | 'gate' | 'gateio' | 'gemini' | 'hashkey' | 'hitbtc' | 'hollaex' | 'htx' | 'huobi' | 'huobijp' | 'hyperliquid' | 'independentreserve' | 'indodax' | 'kraken' | 'krakenfutures' | 'kucoin' | 'kucoinfutures' | 'latoken' | 'lbank' | 'luno' | 'mercado' | 'mexc' | 'ndax' | 'novadax' | 'oceanex' | 'okcoin' | 'okx' | 'onetrading' | 'oxfun' | 'p2b' | 'paradex' | 'paymium' | 'phemex' | 'poloniex' | 'poloniexfutures' | 'probit' | 'timex' | 'tradeogre' | 'upbit' | 'vertex' | 'wavesexchange' | 'whitebit' | 'woo' | 'woofipro' | 'xt' | 'yobit' | 'zaif' | 'zonda', connectWalletRequest: ConnectWalletRequest, _options?: PromiseConfigurationOptions): Promise<ConnectWallet200Response> {
const observableOptions = wrapOptions(_options);
const result = this.api.connectWallet(exchange, connectWalletRequest, observableOptions);
return result.toPromise();
}
/**
* Delete a connected exchange wallet. This endpoint requires authentication via a valid Bluvo API Key, which must be included in the request headers.
* Delete Wallet
* @param walletId
*/
public deleteWalletWithHttpInfo(walletId: string, _options?: PromiseConfigurationOptions): Promise<HttpInfo<DeleteWallet200Response>> {
const observableOptions = wrapOptions(_options);
const result = this.api.deleteWalletWithHttpInfo(walletId, observableOptions);
return result.toPromise();
}
/**
* Delete a connected exchange wallet. This endpoint requires authentication via a valid Bluvo API Key, which must be included in the request headers.
* Delete Wallet
* @param walletId
*/
public deleteWallet(walletId: string, _options?: PromiseConfigurationOptions): Promise<DeleteWallet200Response> {
const observableOptions = wrapOptions(_options);
const result = this.api.deleteWallet(walletId, observableOptions);
return result.toPromise();
}
/**
* Retrieve basic information about a connected exchange wallet, including a simple dictionary of balances. This endpoint requires authentication via a valid Bluvo API Key, which must be included in the request headers.
* Get Wallet
* @param walletId
*/
public getWalletWithHttpInfo(walletId: string, _options?: PromiseConfigurationOptions): Promise<HttpInfo<GetWallet200Response>> {
const observableOptions = wrapOptions(_options);
const result = this.api.getWalletWithHttpInfo(walletId, observableOptions);
return result.toPromise();
}
/**
* Retrieve basic information about a connected exchange wallet, including a simple dictionary of balances. This endpoint requires authentication via a valid Bluvo API Key, which must be included in the request headers.
* Get Wallet
* @param walletId
*/
public getWallet(walletId: string, _options?: PromiseConfigurationOptions): Promise<GetWallet200Response> {
const observableOptions = wrapOptions(_options);
const result = this.api.getWallet(walletId, observableOptions);
return result.toPromise();
}
/**
* Retrieve a paginated list of connected exchange wallets. This endpoint requires authentication via a valid Bluvo API Key, which must be included in the request headers. Supports pagination, filtering, and field selection.
* List Wallets
* @param [page] Optional. Page number for pagination (0-indexed). Defaults to 0.
* @param [limit] Optional. Maximum number of wallets to return per page. Defaults to 10. Maximum value is 1000.
* @param [exchange] Optional. Filter wallets by exchange.
* @param [createdSince] Optional. Filter wallets created on or after this date (ISO format).
* @param [createdBefore] Optional. Filter wallets created before this date (ISO format).
* @param [lastSyncSince] Optional. Filter wallets synchronized on or after this date (ISO format).
* @param [lastSyncBefore] Optional. Filter wallets synchronized before this date (ISO format).
* @param [invalidApi] Optional. Filter wallets by API validity status.
* @param [fields] Optional. Comma-separated list of fields to include in the response. If not specified, all fields are included.
*/
public listWalletsWithHttpInfo(page?: number, limit?: number, exchange?: 'ace' | 'ascendex' | 'bequant' | 'bigone' | 'binance' | 'coinbase' | 'binanceus' | 'bingx' | 'bit2c' | 'bitbank' | 'bitbns' | 'bitcoincom' | 'bitfinex' | 'bitflyer' | 'bitget' | 'bithumb' | 'bitmart' | 'bitmex' | 'bitopro' | 'bitpanda' | 'bitrue' | 'bitso' | 'bitstamp' | 'bitteam' | 'bitvavo' | 'bl3p' | 'blockchaincom' | 'blofin' | 'btcalpha' | 'btcbox' | 'btcmarkets' | 'btcturk' | 'cex' | 'coincheck' | 'coinex' | 'coinlist' | 'coinmate' | 'coinmetro' | 'coinone' | 'coinsph' | 'coinspot' | 'cryptocom' | 'delta' | 'deribit' | 'digifinex' | 'exmo' | 'fmfwio' | 'gate' | 'gateio' | 'gemini' | 'hashkey' | 'hitbtc' | 'hollaex' | 'htx' | 'huobi' | 'huobijp' | 'hyperliquid' | 'independentreserve' | 'indodax' | 'kraken' | 'krakenfutures' | 'kucoin' | 'kucoinfutures' | 'latoken' | 'lbank' | 'luno' | 'mercado' | 'mexc' | 'ndax' | 'novadax' | 'oceanex' | 'okcoin' | 'okx' | 'onetrading' | 'oxfun' | 'p2b' | 'paradex' | 'paymium' | 'phemex' | 'poloniex' | 'poloniexfutures' | 'probit' | 'timex' | 'tradeogre' | 'upbit' | 'vertex' | 'wavesexchange' | 'whitebit' | 'woo' | 'woofipro' | 'xt' | 'yobit' | 'zaif' | 'zonda', createdSince?: string, createdBefore?: string, lastSyncSince?: string, lastSyncBefore?: string, invalidApi?: 'true' | 'false', fields?: string, _options?: PromiseConfigurationOptions): Promise<HttpInfo<ListWallets200Response>> {
const observableOptions = wrapOptions(_options);
const result = this.api.listWalletsWithHttpInfo(page, limit, exchange, createdSince, createdBefore, lastSyncSince, lastSyncBefore, invalidApi, fields, observableOptions);
return result.toPromise();
}
/**
* Retrieve a paginated list of connected exchange wallets. This endpoint requires authentication via a valid Bluvo API Key, which must be included in the request headers. Supports pagination, filtering, and field selection.
* List Wallets
* @param [page] Optional. Page number for pagination (0-indexed). Defaults to 0.
* @param [limit] Optional. Maximum number of wallets to return per page. Defaults to 10. Maximum value is 1000.
* @param [exchange] Optional. Filter wallets by exchange.
* @param [createdSince] Optional. Filter wallets created on or after this date (ISO format).
* @param [createdBefore] Optional. Filter wallets created before this date (ISO format).
* @param [lastSyncSince] Optional. Filter wallets synchronized on or after this date (ISO format).
* @param [lastSyncBefore] Optional. Filter wallets synchronized before this date (ISO format).
* @param [invalidApi] Optional. Filter wallets by API validity status.
* @param [fields] Optional. Comma-separated list of fields to include in the response. If not specified, all fields are included.
*/
public listWallets(page?: number, limit?: number, exchange?: 'ace' | 'ascendex' | 'bequant' | 'bigone' | 'binance' | 'coinbase' | 'binanceus' | 'bingx' | 'bit2c' | 'bitbank' | 'bitbns' | 'bitcoincom' | 'bitfinex' | 'bitflyer' | 'bitget' | 'bithumb' | 'bitmart' | 'bitmex' | 'bitopro' | 'bitpanda' | 'bitrue' | 'bitso' | 'bitstamp' | 'bitteam' | 'bitvavo' | 'bl3p' | 'blockchaincom' | 'blofin' | 'btcalpha' | 'btcbox' | 'btcmarkets' | 'btcturk' | 'cex' | 'coincheck' | 'coinex' | 'coinlist' | 'coinmate' | 'coinmetro' | 'coinone' | 'coinsph' | 'coinspot' | 'cryptocom' | 'delta' | 'deribit' | 'digifinex' | 'exmo' | 'fmfwio' | 'gate' | 'gateio' | 'gemini' | 'hashkey' | 'hitbtc' | 'hollaex' | 'htx' | 'huobi' | 'huobijp' | 'hyperliquid' | 'independentreserve' | 'indodax' | 'kraken' | 'krakenfutures' | 'kucoin' | 'kucoinfutures' | 'latoken' | 'lbank' | 'luno' | 'mercado' | 'mexc' | 'ndax' | 'novadax' | 'oceanex' | 'okcoin' | 'okx' | 'onetrading' | 'oxfun' | 'p2b' | 'paradex' | 'paymium' | 'phemex' | 'poloniex' | 'poloniexfutures' | 'probit' | 'timex' | 'tradeogre' | 'upbit' | 'vertex' | 'wavesexchange' | 'whitebit' | 'woo' | 'woofipro' | 'xt' | 'yobit' | 'zaif' | 'zonda', createdSince?: string, createdBefore?: string, lastSyncSince?: string, lastSyncBefore?: string, invalidApi?: 'true' | 'false', fields?: string, _options?: PromiseConfigurationOptions): Promise<ListWallets200Response> {
const observableOptions = wrapOptions(_options);
const result = this.api.listWallets(page, limit, exchange, createdSince, createdBefore, lastSyncSince, lastSyncBefore, invalidApi, fields, observableOptions);
return result.toPromise();
}
}
import { ObservableWorkflowApi } from './ObservableAPI';
import { WorkflowApiRequestFactory, WorkflowApiResponseProcessor} from "../apis/WorkflowApi";
export class PromiseWorkflowApi {
private api: ObservableWorkflowApi
public constructor(
configuration: Configuration,
requestFactory?: WorkflowApiRequestFactory,
responseProcessor?: WorkflowApiResponseProcessor
) {
this.api = new ObservableWorkflowApi(configuration, requestFactory, responseProcessor);
}
/**
* Retrieve the status of a specific workflow run. This endpoint requires authentication via a valid Bluvo API Key, which must be included in the request headers.
* Get Workflow
* @param workflowRunId The unique identifier of the workflow run to query.
*/
public getWorkflowWithHttpInfo(workflowRunId: string, _options?: PromiseConfigurationOptions): Promise<HttpInfo<GetWorkflow200Response>> {
const observableOptions = wrapOptions(_options);
const result = this.api.getWorkflowWithHttpInfo(workflowRunId, observableOptions);
return result.toPromise();
}
/**
* Retrieve the status of a specific workflow run. This endpoint requires authentication via a valid Bluvo API Key, which must be included in the request headers.
* Get Workflow
* @param workflowRunId The unique identifier of the workflow run to query.
*/
public getWorkflow(workflowRunId: string, _options?: PromiseConfigurationOptions): Promise<GetWorkflow200Response> {
const observableOptions = wrapOptions(_options);
const result = this.api.getWorkflow(workflowRunId, observableOptions);
return result.toPromise();
}
}