Created
February 8, 2019 16:44
-
-
Save shaunsales/497b111a03342c9b8108d69328feb0c1 to your computer and use it in GitHub Desktop.
Gateway Requests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var latestNews = await dispatcher.QueryAsync<GetLatestNews, GetLatestNewsResponse>(new GetLatestNews | |
{ | |
QueryId = Environment.TickCount, | |
ItemCount = 6 | |
}); | |
var quoteTicker = await dispatcher.QueryAsync<GetQuoteTicker, GetQuoteTickerResponse>(new GetQuoteTicker | |
{ | |
QueryId = Environment.TickCount, | |
ItemCount = 5 | |
}); | |
var marketPerformance = await dispatcher.QueryAsync<GetMarketPerformance, GetMarketPerformanceResponse>(new GetMarketPerformance | |
{ | |
QueryId = Environment.TickCount, | |
HistoryRange = HistoryRangeType.TwentyFourHours | |
}); | |
var marketWatch = await dispatcher.QueryAsync<GetMarketWatch, GetMarketWatchResponse>(new GetMarketWatch | |
{ | |
QueryId = Environment.TickCount, | |
HistoryRange = HistoryRangeType.TwentyFourHours | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment