I’m messing around with the v2 subscriptions and want to find the best way of tracking the buys and sells of a token. I’m new to v2 but from what I can tell so far I have to do two individual queries where I look for buys using the address, or sells using the address. I can put this into one subscription using the OR operator and then pull out what I need in my code, or I can do two subscriptions at the same time. Both of these are workable but seem somewhat clumsy. In v1 we could just search for the transfer and there was a flag to say if it was a buy or a sell, so I feel like I’m not doing it the best way. I’m also not sure how charging works with subscriptions.
- Is this the best way of doing it?
- If so, credit-wise, is it more efficient to run one subscription with the OR operator, or is it better to run two subscriptions?
- Do subscriptions get charged for each event? Am I right in assuming that each event gets charged differently depending on its complexity?
Thanks.