add grpc AccountSubscriber implementations
Closed this issue · 3 comments
crispheaney commented
Add gprc implementation for subscribing to account updates
- DriftClientAccountSubscriber: https://github.com/drift-labs/protocol-v2/blob/master/sdk/src/accounts/types.ts#L51
- UserAccountSubscriber: https://github.com/drift-labs/protocol-v2/blob/master/sdk/src/accounts/types.ts#L93C18-L93C39
Need to do more research but may unlock using Shyft drift indexes: https://x.com/Shyft_to/status/1800214445672583243?lang=en
crispheaney commented
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
I found that there are already WebSocketDriftClientAccountSubscriber and PollingDriftClientAccountSubscriber that implement this interface, do you mean to implement it again using Shyft?
crispheaney commented
see grpc* implementations