Subscription
Get automatically notified about any margin account changes
Last updated
Was this helpful?
Get automatically notified about any margin account changes
Last updated
Was this helpful?
Github repository:
Subscribing to changes to onchain is easy using subscription.subscribeProgramAccounts
. In this example we subscribe to any SOL margin account changes, but you can subscribe to any account types you wish to track.