drift-labs / protocol-v2

On-chain perpetuals dex with multiple liquidity mechanisms
Apache License 2.0
198 stars 100 forks source link

add grpc AccountSubscriber implementations #1210

Open crispheaney opened 2 weeks ago

crispheaney commented 2 weeks ago

Add gprc implementation for subscribing to account updates

Need to do more research but may unlock using Shyft drift indexes: https://x.com/Shyft_to/status/1800214445672583243?lang=en

crispheaney commented 2 weeks ago

example adding grpc for order subscriber in dlob server: https://github.com/drift-labs/dlob-server/blob/master/src/grpc/OrderSubscriberGRPC.ts

cxp-13 commented 2 days ago

I found that there are already WebSocketDriftClientAccountSubscriber and PollingDriftClientAccountSubscriber that implement this interface, do you mean to implement it again using Shyft?