@lunch-money/kraken-extension
Version:
A wrapper around the Kraken API for enabling Lunch Money to gather information about a user's account.
29 lines (28 loc) • 891 B
TypeScript
import { LunchMoneyCryptoConnectionConfig, LunchMoneyCryptoConnectionContext } from './lunchMoney';
import KrakenAPI from '../api/krakenAPI';
export interface LunchMoneyKrakenConnectionConfig extends LunchMoneyCryptoConnectionConfig {
apiSecret: string;
otp?: string | null;
}
export interface LunchMoneyKrakenConnectionContext extends LunchMoneyCryptoConnectionContext {
kraken: KrakenAPI;
}
export interface KrakenResponse<T> {
error: string[] | null | undefined;
result: T | null | undefined;
}
export interface KrakenValidation<T, C> {
result: T;
warnings: C | null;
}
export type KrakenWarnings = string[];
export interface StatusResponse {
status: KrakenSystemStatus;
timestamp: string;
}
export declare enum KrakenSystemStatus {
ONLINE = "online",
MAINTENANCE = "maintenance",
CANCEL_ONLY = "cancel_only",
POST_ONLY = "post_only"
}