blockchain-rates
Version:
A tiny Node.js wrapper for the Blockchain Exchange Rates API
1 lines • 447 B
TypeScript
export type RateObj={'15m':number;last:number;buy:number;sell:number;symbol:string;};export type RateResponse=RateObj|Record<string,RateObj>;export type Callback=(error:Error|null,data?:RateResponse)=>void;export declare const get:(code?:string|Callback,callback?:Callback)=>Promise<RateResponse>|void;declare const _default:{get:(code?:string|Callback|undefined,callback?:Callback|undefined)=>void|Promise<RateResponse>;};export default _default;