Get data feed

Example

const params = {
    oracles: [
        'I2ADHGP4HL6J37NQAD73J7E5SKFIXJOT',
        'BVVJ2K7ENPZZ3VYZFWQWK7ISPCATFIW3'
    ],
    feed_name: 'timestamp',
	// feed_value: string | number | boolean;
	// min_mci: number;
	// ifseveral: 'abort' | 'last';
	// what: 'unit' | 'value';
	// type: 'string' | 'auto';
	// ifnone: string | number | boolean;
};
client.api.getDataFeed(params, function(err, result) {
    if (err) return console.error(err);
    console.log(result);
});

Returns

1618629895590

Learn more

Last updated