Skip to content

Typescript SDK to access Scope oracle aggregator for Solana

License

Notifications You must be signed in to change notification settings

Kamino-Finance/scope-sdk

Repository files navigation

Scope SDK

The Scope SDK is a TypeScript client SDK for easy access to the Scope price oracle aggregator for Solana.

Install

npm

npm install @solana/web3.js @kamino-finance/scope-sdk

Usage

import { Scope, ScopeToken } from '@kamino-finance/scope-sdk';
import { clusterApiUrl, Connection } from '@solana/web3.js';

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();

About

Typescript SDK to access Scope oracle aggregator for Solana

Resources

License

Stars

Watchers

Forks