diff --git a/package.json b/package.json index 2c0dba3..6ac07e0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-bitbankcc", - "version": "3.0.0", + "version": "3.1.0", "description": "node-bitbankcc", "repository": { "type": "git", diff --git a/src/lib/responseType.ts b/src/lib/responseType.ts index 10f5c5e..249ab34 100644 --- a/src/lib/responseType.ts +++ b/src/lib/responseType.ts @@ -59,7 +59,25 @@ export interface AssetResponse { free_amount: string; stop_deposit: boolean; stop_withdrawal: boolean; - withdrawal_fee: any; + withdrawal_fee: + | { + min: string; + max: string; + } // for fiat. + | { + under: string; + over: string; + threshold: string; + }; // for cryptocurrencies. + + // only for cryptocurrencies. + network_list?: { + asset: string; + network: string; + stop_deposit: boolean; + stop_withdrawal: boolean; + withdrawal_fee: string; + }[]; } // Order @@ -123,10 +141,11 @@ export interface DepositResponse { asset: string; amount: string; - txid?: string | null; // only for cryptocurrencies. + txid?: string | null; // only for cryptocurrencies. + network?: string; // only for cryptocurrencies. found_at: number; - confirmed_at?: number; // only when confirmed. + confirmed_at?: number; // only when confirmed. status: string; } @@ -160,6 +179,7 @@ export interface WithdrawalResponse { // they are only for cryptocurrencies. label?: string; address?: string; + network?: string; txid?: string | null; destination_tag?: number | string; // only for some cryptocurrencies.