Preparing search index...
The search index is not available
@drift-labs/sdk
@drift-labs/sdk
OpenbookV2Subscriber
Class OpenbookV2Subscriber
Hierarchy
OpenbookV2Subscriber
Implements
L2OrderBookGenerator
Index
Constructors
constructor
Properties
account
Loader
client
connection
market
market
Address
market
Callback
Id
program
Id
subscribed
subscription
Type
Methods
get
Best
Ask
get
Best
Bid
get
L2
Asks
get
L2
Bids
get
L2
Levels
subscribe
unsubscribe
Constructors
constructor
new
Openbook
V2
Subscriber
(
config
:
OpenbookV2SubscriberConfig
)
:
OpenbookV2Subscriber
Parameters
config:
OpenbookV2SubscriberConfig
Returns
OpenbookV2Subscriber
Properties
account
Loader
account
Loader
:
BulkAccountLoader
client
client
:
OpenBookV2Client
connection
connection
:
Connection
market
market
:
Market
market
Address
market
Address
:
PublicKey
market
Callback
Id
market
Callback
Id
:
string
|
number
program
Id
program
Id
:
PublicKey
subscribed
subscribed
:
boolean
subscription
Type
subscription
Type
:
"websocket"
|
"polling"
Methods
get
Best
Ask
get
Best
Ask
(
)
:
BN
Returns
BN
get
Best
Bid
get
Best
Bid
(
)
:
BN
Returns
BN
get
L2
Asks
get
L2
Asks
(
)
:
Generator
<
L2Level
,
any
,
unknown
>
Returns
Generator
<
L2Level
,
any
,
unknown
>
get
L2
Bids
get
L2
Bids
(
)
:
Generator
<
L2Level
,
any
,
unknown
>
Returns
Generator
<
L2Level
,
any
,
unknown
>
get
L2
Levels
get
L2
Levels
(
side
:
"bids"
|
"asks"
)
:
Generator
<
L2Level
,
any
,
unknown
>
Parameters
side:
"bids"
|
"asks"
Returns
Generator
<
L2Level
,
any
,
unknown
>
subscribe
subscribe
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
unsubscribe
unsubscribe
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
@drift-
labs/sdk
BN
pyth
Openbook
V2
Subscriber
constructor
account
Loader
client
connection
market
market
Address
market
Callback
Id
program
Id
subscribed
subscription
Type
get
Best
Ask
get
Best
Bid
get
L2
Asks
get
L2
Bids
get
L2
Levels
subscribe
unsubscribe
Generated using
TypeDoc