|
| 1 | +using System; |
| 2 | +using System.Collections.Generic; |
| 3 | +using System.Text; |
| 4 | +using Newtonsoft.Json; |
| 5 | + |
| 6 | +namespace Emun.CoinMarketCap { |
| 7 | + |
| 8 | + public class ExchangeMapQuery { |
| 9 | + |
| 10 | + /// <summary> |
| 11 | + /// Only active exchanges are returned by default. Pass inactive to get a list of exchanges that are no longer active. |
| 12 | + /// Pass untracked to get a list of exchanges that are registered but do not currently meet methodology requirements |
| 13 | + /// to have active markets tracked. You may pass one or more comma-separated values. |
| 14 | + /// default : `active` |
| 15 | + /// </summary> |
| 16 | + [JsonIgnore] |
| 17 | + public ListingStatus ListingStatus { get; set; } |
| 18 | + |
| 19 | + [JsonProperty] |
| 20 | + public string listing_status => this.ListingStatus.ToStrValue(); |
| 21 | + |
| 22 | + /// <summary> |
| 23 | + /// Optionally pass a comma-separated list of exchange slugs (lowercase URL friendly shorthand name with spaces replaced with dashes) |
| 24 | + /// to return CoinMarketCap IDs for. If this option is passed, other options will be ignored. |
| 25 | + /// </summary> |
| 26 | + public string Slug { get; set; } |
| 27 | + |
| 28 | + /// <summary> |
| 29 | + /// Optionally offset the start (1-based index) of the paginated list of items to return. |
| 30 | + /// </summary> |
| 31 | + public int Start { get; set; } = 1; |
| 32 | + |
| 33 | + /// <summary> |
| 34 | + /// Optionally specify the number of results to return. Use this parameter and the "start" parameter to determine your own pagination size. |
| 35 | + /// </summary> |
| 36 | + public int Limit { get; set; } |
| 37 | + |
| 38 | + /// <summary> |
| 39 | + /// What field to sort the list of exchanges by. |
| 40 | + /// Valid values : "volume_24h", "id" |
| 41 | + /// </summary> |
| 42 | + [JsonProperty("sort")] |
| 43 | + public string Sort { get; set; } = "id"; |
| 44 | + |
| 45 | + /// <summary> |
| 46 | + /// Default : "first_historical_data,last_historical_data,is_active" |
| 47 | + /// Optionally specify a comma-separated list of supplemental data fields to return. |
| 48 | + /// Pass first_historical_data, last_historical_data, is_active, status to include all auxiliary fields. |
| 49 | + /// </summary> |
| 50 | + [JsonProperty("aux")] |
| 51 | + public string Aux { get; set; } |
| 52 | + |
| 53 | + /// <summary> |
| 54 | + /// Optionally include one fiat or cryptocurrency IDs to filter market pairs by. |
| 55 | + /// For example ?crypto_id=1 would only return exchanges that have BTC. |
| 56 | + /// </summary> |
| 57 | + public string CryptoId { get; set; } |
| 58 | + |
| 59 | + } |
| 60 | +} |
0 commit comments