Constructs a new PerpMarketTask.
Optional
properties: IPerpMarketTaskProperties to set
Optional
MarketPerpMarketTask MarketAddress.
Optional
driftMarket address for a drift perpetual market. A full list can be found here: https://github.com/drift-labs/protocol-v1/blob/master/sdk/src/constants/markets.ts
Optional
mangoMarket address for a mango perpetual market. A full list can be found here: https://github.com/blockworks-foundation/mango-client-v3/blob/main/src/ids.json
Optional
zetaMarket address for a zeta perpetual market.
Optional
zoMarket address for a 01 protocol perpetual market.
Static
createCreates a new PerpMarketTask instance using the specified properties.
Optional
properties: IPerpMarketTaskProperties to set
PerpMarketTask instance
Static
decodeDecodes a PerpMarketTask message from the specified reader or buffer.
Reader or buffer to decode from
Optional
length: numberMessage length if known beforehand
PerpMarketTask
If the payload is not a reader or valid buffer
If required fields are missing
Static
decodeDecodes a PerpMarketTask message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
PerpMarketTask
If the payload is not a reader or valid buffer
If required fields are missing
Static
encodeEncodes the specified PerpMarketTask message. Does not implicitly verify messages.
PerpMarketTask message or plain object to encode
Optional
writer: WriterWriter to encode to
Writer
Static
encodeEncodes the specified PerpMarketTask message, length delimited. Does not implicitly verify messages.
PerpMarketTask message or plain object to encode
Optional
writer: WriterWriter to encode to
Writer
Static
fromCreates a PerpMarketTask message from a plain object. Also converts values to their respective internal types.
Plain object
PerpMarketTask
Static
getStatic
toCreates a plain object from a PerpMarketTask message. Also converts values to other types if specified.
PerpMarketTask
Optional
options: IConversionOptionsConversion options
Plain object
Static
verify
Fetch the current price of a perpetual market.