> For the complete documentation index, see [llms.txt](https://aa-dev.gitbook.io/aa-dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aa-dev.gitbook.io/aa-dev/odapp/getdatafeed.md).

# getDataFeed

Get data feed by oracle(s)

### Spec

```typescript
getDataFeed(oracles: string | string[], feedName: string, otherParams?: DataFeedParams);

interface DataFeedParams {
    feed_value?: string | number | boolean;
    min_mci?: number;
    ifseveral?: 'abort' | 'last';
    what?: 'unit' | 'value';
    type?: 'string' | 'auto';
    ifnone?: string | number | boolean;
}
```

&#x20;\*Oracles supports type string, but it's syntactic sugar, the response won't change

### Example

```javascript
await Cleint.getDataFeed(['OPNUXBRSSQQGHKQNEPD2GLWQYEUY5XLD'], 'timestamp', {
  // feed_value?: string | number | boolean;
  // min_mci?: number;
  // ifseveral?: 'abort' | 'last';
  // what?: 'unit' | 'value';
  // type?: 'string' | 'auto';
  // ifnone?: string | number | boolean;
});
```

### Response

```json
1711582481537
```
