-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flip/Trade entity #29
Comments
|
here is the data shape currently created on client side getting all the flip events on a collection from squid is good enough, as the rest is simple summation export type FlipEvent = {
nft: NFTExcludingEvents
soldPrice: number
soldTo: string
sellTimeStamp: number
boughtPrice: number
profit: number
}
export type Flippers = {
[identity: string]: {
flips: FlipEvent[]
owned: number
totalBought: number
totalsold: number
bestFlip: number
latestflipTimestamp: number
}
} |
But not effective imho, you still need to iterate over buys or so
Marked as
Yup otherwise it would be always 100% profit |
absolutely, getting it all nice and organized straight from Mr.squid would be ideal |
To make some trading views easier the optional path is to make a Trade entity like following
May @daiagi can have more information since he was working on Flipper UI in Kodadot
The text was updated successfully, but these errors were encountered: