Constructs a new PerpMarketTask.
Optional
properties: IPerpMarketTaskProperties to set
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
MarketPerpMarketTask MarketAddress.
Optional
zetaMarket address for a zeta perpetual market.
Optional
zoMarket address for a 01 protocol perpetual market.
Converts this PerpMarketTask to JSON.
JSON object
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
Static
decodeDecodes a PerpMarketTask message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
PerpMarketTask
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
getGets the default type url for PerpMarketTask
Optional
typeUrlPrefix: stringyour custom typeUrlPrefix(default "type.googleapis.com")
The default type url
Static
toCreates a plain object from a PerpMarketTask message. Also converts values to other types if specified.
PerpMarketTask
Optional
options: IConversionOptionsConversion options
Plain object
Static
verifyVerifies a PerpMarketTask message.
Plain object to verify
null
if valid, otherwise the reason why it is not
Fetch the current price of a perpetual market.