Preparing search index...
The search index is not available
@drift-labs/sdk
@drift-labs/sdk
PythClient
Class PythClient
Hierarchy
PythClient
Implements
OracleClient
Index
Constructors
constructor
Properties
connection
multiple
stable
Coin
Methods
get
Oracle
Price
Data
get
Oracle
Price
Data
From
Buffer
Constructors
constructor
new
Pyth
Client
(
connection
:
Connection
, multiple
?:
BN
, stableCoin
?:
boolean
)
:
PythClient
Parameters
connection:
Connection
multiple:
BN
= ONE
stableCoin:
boolean
= false
Returns
PythClient
Properties
Private
connection
connection
:
Connection
Private
multiple
multiple
:
BN
Private
stable
Coin
stable
Coin
:
boolean
Methods
get
Oracle
Price
Data
get
Oracle
Price
Data
(
pricePublicKey
:
PublicKey
)
:
Promise
<
OraclePriceData
>
Parameters
pricePublicKey:
PublicKey
Returns
Promise
<
OraclePriceData
>
get
Oracle
Price
Data
From
Buffer
get
Oracle
Price
Data
From
Buffer
(
buffer
:
Buffer
)
:
OraclePriceData
Parameters
buffer:
Buffer
Returns
OraclePriceData
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
@drift-
labs/sdk
BN
pyth
Pyth
Client
constructor
connection
multiple
stable
Coin
get
Oracle
Price
Data
get
Oracle
Price
Data
From
Buffer
Generated using
TypeDoc