@kamino-finance/scope-sdk
Version:
Scope Oracle SDK
25 lines (16 loc) • 741 B
Markdown
The Scope SDK is a TypeScript client SDK for easy access to the [Scope price oracle aggregator](https://github.com/kamino-finance/scope/) for Solana.
[](https://www.npmjs.com/package/@kamino-finance/scope-sdk)
```shell
npm install @solana/kit @kamino-finance/scope-sdk
```
```javascript
import { Scope, ScopeToken } from '@kamino-finance/scope-sdk';
import { clusterApiUrl, Connection } from '@solana/kit';
const connection = new Connection(clusterApiUrl('mainnet-beta'));
const scope = new Scope('mainnet-beta', web3Client.connection);
// get all prices supported by Scope Oracle
const oraclePrices = await scope.getOraclePrices();
```