Struct ExchangeSymbolPair
- Namespace
- WhalesSecret.TradeScriptLib.Entities
- Assembly
- WhalesSecret.TradeScriptLib.dll
Represents a pair of a symbol pair and an exchange market.
[JsonConverter(typeof(ExchangeSymbolPairConverter))]
public readonly struct ExchangeSymbolPair : IEquatable<ExchangeSymbolPair>, IComparable<ExchangeSymbolPair>
- Implements
- Inherited Members
- Extension Methods
Constructors
- ExchangeSymbolPair(ExchangeMarket, SymbolPair)
Creates a new instance of the object.
Properties
- ExchangeMarket
Exchange market of the wrapping structure.
- SymbolPair
Symbol pair part of the wrapping structure.
Methods
- CompareTo(ExchangeSymbolPair)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
- Equals(object?)
Indicates whether this instance and a specified object are equal.
- Equals(ExchangeSymbolPair)
Indicates whether the current object is equal to another object of the same type.
- GetHashCode()
Returns the hash code for this instance.
- Parse(string)
Parses output of ToString() back to the exchange symbol pair.
- ToString()
Returns the fully qualified type name of this instance.
- ToUiString()
Creates a UI string representation of the exchange symbol pair.
- TryParseToString(string, out ExchangeSymbolPair?)
Parses output of ToString() back to the symbol pair.
Operators
- operator ==(ExchangeSymbolPair, ExchangeSymbolPair)
Determines whether two ExchangeSymbolPair have the same values.
- operator >(ExchangeSymbolPair, ExchangeSymbolPair)
Determines whether the first given exchange symbol pair follows the other in the sort order.
- operator >=(ExchangeSymbolPair, ExchangeSymbolPair)
Determines whether the first given exchange symbol pair follows or equals to the other in the sort order.
- operator !=(ExchangeSymbolPair, ExchangeSymbolPair)
Determines whether two ExchangeSymbolPair have different values.
- operator <(ExchangeSymbolPair, ExchangeSymbolPair)
Determines whether the first given exchange symbol pair precedes the other in the sort order.
- operator <=(ExchangeSymbolPair, ExchangeSymbolPair)
Determines whether the first given exchange symbol pair precedes or equals to the other in the sort order.