namespace CryptoExchange.Net.Objects { /// /// What to do when a request would exceed the rate limit /// public enum RateLimitingBehaviour { /// /// Fail the request /// Fail, /// /// Wait till the request can be send /// Wait } /// /// What to do when a request would exceed the rate limit /// public enum RateLimitWindowType { /// /// A sliding window /// Sliding, /// /// A fixed interval window /// Fixed, /// /// A fixed interval starting after the first request /// FixedAfterFirst, /// /// Decaying window /// Decay } /// /// Where the parameters for a HttpMethod should be added in a request /// public enum HttpMethodParameterPosition { /// /// Parameters in body /// InBody, /// /// Parameters in url /// InUri } /// /// The format of the request body /// public enum RequestBodyFormat { /// /// Form data /// FormData, /// /// Json /// Json } /// /// Status of the order book /// public enum OrderBookStatus { /// /// Not connected /// Disconnected, /// /// Connecting /// Connecting, /// /// Reconnecting /// Reconnecting, /// /// Syncing data /// Syncing, /// /// Data synced, order book is up to date /// Synced, /// /// Disposing /// Disposing, /// /// Disposed /// Disposed } /// /// Order book entry type /// public enum OrderBookEntryType { /// /// Ask /// Ask, /// /// Bid /// Bid } /// /// Define how array parameters should be send /// public enum ArrayParametersSerialization #pragma warning disable CS1570 // XML comment has badly formed XML { /// /// Send as key=value1&key=value2 /// MultipleValues, /// /// Send as key[]=value1&key[]=value2 /// Array, /// /// Send as key=[value1, value2] /// JsonArray #pragma warning restore CS1570 // XML comment has badly formed XML } /// /// How to round /// public enum RoundingType { /// /// Round down (flooring) /// Down, /// /// Round to closest value /// Closest } /// /// Type of the update /// public enum SocketUpdateType { /// /// A update /// Update, /// /// A snapshot, generally send at the start of the connection /// Snapshot } /// /// Reconnect policy /// public enum ReconnectPolicy { /// /// Reconnect is disabled /// Disabled, /// /// Fixed delay of `ReconnectInterval` between retries /// FixedDelay, /// /// Backof policy of 2^`reconnectAttempt`, where `reconnectAttempt` has a max value of 5 /// ExponentialBackoff } /// /// The data source of the result /// public enum ResultDataSource { /// /// From server /// Server, /// /// From cache /// Cache } }