1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | import * as Bluebird from 'bluebird';
|
10 | import { BitGo } from '../bitgo';
|
11 | import { BaseCoin } from './baseCoin';
|
12 | import { NodeCallback } from './types';
|
13 | export declare type LatestOptions = any;
|
14 | export declare type YesterdayOptions = any;
|
15 | export interface LastDaysOptions {
|
16 | currencyName: string;
|
17 | days?: string;
|
18 | }
|
19 | export declare class Markets {
|
20 | private readonly bitgo;
|
21 | private readonly baseCoin;
|
22 | constructor(bitgo: BitGo, baseCoin: BaseCoin);
|
23 | /**
|
24 | * Get the latest price data
|
25 | * @param params {}
|
26 | * @param callback
|
27 | * @returns {*} an object containing price and volume data from the
|
28 | * current day in a number of currencies
|
29 | **/
|
30 | latest(params: LatestOptions, callback: NodeCallback<any>): Bluebird<any>;
|
31 | |
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 | yesterday(params: YesterdayOptions, callback: NodeCallback<any>): Bluebird<any>;
|
39 | |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 | lastDays(params: LastDaysOptions, callback: NodeCallback<any>): Bluebird<any>;
|
46 | }
|
47 |
|
\ | No newline at end of file |