Skip to content

Instantly share code, notes, and snippets.

@adrake33
Last active March 17, 2019 23:44
Show Gist options
  • Save adrake33/f7e71594182020a585ccf71306b83e31 to your computer and use it in GitHub Desktop.
Save adrake33/f7e71594182020a585ccf71306b83e31 to your computer and use it in GitHub Desktop.
// Should log each update to the market's price history?
export interface TimestampedPriceAmount {
price: string;
amount: string;
timestamp: number;
}
export interface GetMarketPriceHistoryResults {
[outcome: number]: Array<TimestampedPriceAmount>;
}
@nuevoalex
Copy link

Yup, this is something I noted elsewhere would be good to provide in particular because it simplifies the conditional logic for when a market finalizes and we should use the finalization payout amount

@adrake33
Copy link
Author

Sounds good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment