Preparing search index...
The search index is not available
@drift-labs/sdk
@drift-labs/sdk
PollingOracleAccountSubscriber
Class PollingOracleAccountSubscriber
Hierarchy
PollingOracleAccountSubscriber
Implements
OracleAccountSubscriber
Index
Constructors
constructor
Properties
account
Loader
callback
Id?
error
Callback
Id?
event
Emitter
is
Subscribed
oracle
Client
oracle
Price
Data?
program
public
Key
Methods
add
To
Account
Loader
assert
Is
Subscribed
did
Subscription
Succeed
fetch
get
Oracle
Price
Data
subscribe
unsubscribe
Constructors
constructor
new
Polling
Oracle
Account
Subscriber
(
publicKey
:
PublicKey
, oracleClient
:
OracleClient
, accountLoader
:
BulkAccountLoader
)
:
PollingOracleAccountSubscriber
Parameters
publicKey:
PublicKey
oracleClient:
OracleClient
accountLoader:
BulkAccountLoader
Returns
PollingOracleAccountSubscriber
Properties
account
Loader
account
Loader
:
BulkAccountLoader
Optional
callback
Id
callback
Id
?:
string
Optional
error
Callback
Id
error
Callback
Id
?:
string
event
Emitter
event
Emitter
:
StrictEventEmitter
<
EventEmitter
<
DefaultEventMap
>
,
OracleEvents
,
OracleEvents
,
"addEventListener"
|
"removeEventListener"
,
"on"
|
"addListener"
|
"removeListener"
|
"once"
|
"emit"
>
is
Subscribed
is
Subscribed
:
boolean
oracle
Client
oracle
Client
:
OracleClient
Optional
oracle
Price
Data
oracle
Price
Data
?:
DataAndSlot
<
OraclePriceData
>
program
program
:
Program
<
Idl
>
public
Key
public
Key
:
PublicKey
Methods
add
To
Account
Loader
add
To
Account
Loader
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
assert
Is
Subscribed
assert
Is
Subscribed
(
)
:
void
Returns
void
did
Subscription
Succeed
did
Subscription
Succeed
(
)
:
boolean
Returns
boolean
fetch
fetch
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
get
Oracle
Price
Data
get
Oracle
Price
Data
(
)
:
DataAndSlot
<
OraclePriceData
>
Returns
DataAndSlot
<
OraclePriceData
>
subscribe
subscribe
(
)
:
Promise
<
boolean
>
Returns
Promise
<
boolean
>
unsubscribe
unsubscribe
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
@drift-
labs/sdk
BN
pyth
Polling
Oracle
Account
Subscriber
constructor
account
Loader
callback
Id?
error
Callback
Id?
event
Emitter
is
Subscribed
oracle
Client
oracle
Price
Data?
program
public
Key
add
To
Account
Loader
assert
Is
Subscribed
did
Subscription
Succeed
fetch
get
Oracle
Price
Data
subscribe
unsubscribe
Generated using
TypeDoc