Skip to content

Instantly share code, notes, and snippets.

@Onaiplee
Created July 17, 2019 23:17
Show Gist options
  • Save Onaiplee/ee447f69647a4f456364a5c565396fa9 to your computer and use it in GitHub Desktop.
Save Onaiplee/ee447f69647a4f456364a5c565396fa9 to your computer and use it in GitHub Desktop.
void AddOrUpdateQuote(IQuote quote)
{
if(quote?.Id != null && quoteMap.containsKey(quote.Id) && !quote.equals(quoteMap[quote.Id]))
{
existingquote = quoteMap[quote.Id];
existingquote.Price = quote.Price;
existingquote.AvailableVolume = quote.AvailableVolume;
...
this.BookLookupTable[quote.Symbol].sort()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment