Preparing search index...
The search index is not available
@drift-labs/sdk
@drift-labs/sdk
DriftClientAccountSubscriber
Interface DriftClientAccountSubscriber
Hierarchy
DriftClientAccountSubscriber
Implemented by
PollingDriftClientAccountSubscriber
WebSocketDriftClientAccountSubscriber
Index
Properties
event
Emitter
is
Subscribed
update
Account
Loader
Polling
Frequency?
Methods
add
Oracle
add
Perp
Market
add
Spot
Market
fetch
get
Market
Account
And
Slot
get
Market
Accounts
And
Slots
get
Oracle
Price
Data
And
Slot
get
Oracle
Price
Data
And
Slot
For
Perp
Market
get
Oracle
Price
Data
And
Slot
For
Spot
Market
get
Spot
Market
Account
And
Slot
get
Spot
Market
Accounts
And
Slots
get
State
Account
And
Slot
set
Perp
Oracle
Map
set
Spot
Oracle
Map
subscribe
unsubscribe
Properties
event
Emitter
event
Emitter
:
StrictEventEmitter
<
EventEmitter
<
DefaultEventMap
>
,
DriftClientAccountEvents
,
DriftClientAccountEvents
,
"addEventListener"
|
"removeEventListener"
,
"on"
|
"addListener"
|
"removeListener"
|
"once"
|
"emit"
>
is
Subscribed
is
Subscribed
:
boolean
Optional
update
Account
Loader
Polling
Frequency
update
Account
Loader
Polling
Frequency
?:
(
(
pollingFrequency
:
number
)
=>
void
)
Type declaration
(
pollingFrequency
:
number
)
:
void
Parameters
pollingFrequency:
number
Returns
void
Methods
add
Oracle
add
Oracle
(
oracleInfo
:
OracleInfo
)
:
Promise
<
boolean
>
Parameters
oracleInfo:
OracleInfo
Returns
Promise
<
boolean
>
add
Perp
Market
add
Perp
Market
(
marketIndex
:
number
)
:
Promise
<
boolean
>
Parameters
marketIndex:
number
Returns
Promise
<
boolean
>
add
Spot
Market
add
Spot
Market
(
marketIndex
:
number
)
:
Promise
<
boolean
>
Parameters
marketIndex:
number
Returns
Promise
<
boolean
>
fetch
fetch
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
get
Market
Account
And
Slot
get
Market
Account
And
Slot
(
marketIndex
:
number
)
:
DataAndSlot
<
PerpMarketAccount
>
Parameters
marketIndex:
number
Returns
DataAndSlot
<
PerpMarketAccount
>
get
Market
Accounts
And
Slots
get
Market
Accounts
And
Slots
(
)
:
DataAndSlot
<
PerpMarketAccount
>
[]
Returns
DataAndSlot
<
PerpMarketAccount
>
[]
get
Oracle
Price
Data
And
Slot
get
Oracle
Price
Data
And
Slot
(
oraclePublicKey
:
string
|
PublicKey
)
:
DataAndSlot
<
OraclePriceData
>
Parameters
oraclePublicKey:
string
|
PublicKey
Returns
DataAndSlot
<
OraclePriceData
>
get
Oracle
Price
Data
And
Slot
For
Perp
Market
get
Oracle
Price
Data
And
Slot
For
Perp
Market
(
marketIndex
:
number
)
:
DataAndSlot
<
OraclePriceData
>
Parameters
marketIndex:
number
Returns
DataAndSlot
<
OraclePriceData
>
get
Oracle
Price
Data
And
Slot
For
Spot
Market
get
Oracle
Price
Data
And
Slot
For
Spot
Market
(
marketIndex
:
number
)
:
DataAndSlot
<
OraclePriceData
>
Parameters
marketIndex:
number
Returns
DataAndSlot
<
OraclePriceData
>
get
Spot
Market
Account
And
Slot
get
Spot
Market
Account
And
Slot
(
marketIndex
:
number
)
:
DataAndSlot
<
SpotMarketAccount
>
Parameters
marketIndex:
number
Returns
DataAndSlot
<
SpotMarketAccount
>
get
Spot
Market
Accounts
And
Slots
get
Spot
Market
Accounts
And
Slots
(
)
:
DataAndSlot
<
SpotMarketAccount
>
[]
Returns
DataAndSlot
<
SpotMarketAccount
>
[]
get
State
Account
And
Slot
get
State
Account
And
Slot
(
)
:
DataAndSlot
<
StateAccount
>
Returns
DataAndSlot
<
StateAccount
>
set
Perp
Oracle
Map
set
Perp
Oracle
Map
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
set
Spot
Oracle
Map
set
Spot
Oracle
Map
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
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
Drift
Client
Account
Subscriber
event
Emitter
is
Subscribed
update
Account
Loader
Polling
Frequency?
add
Oracle
add
Perp
Market
add
Spot
Market
fetch
get
Market
Account
And
Slot
get
Market
Accounts
And
Slots
get
Oracle
Price
Data
And
Slot
get
Oracle
Price
Data
And
Slot
For
Perp
Market
get
Oracle
Price
Data
And
Slot
For
Spot
Market
get
Spot
Market
Account
And
Slot
get
Spot
Market
Accounts
And
Slots
get
State
Account
And
Slot
set
Perp
Oracle
Map
set
Spot
Oracle
Map
subscribe
unsubscribe
Generated using
TypeDoc