Class Connection
Represents information about connection and provides an access to the current trading information(Symbols, Orders, Position, Accounts etc.).
public sealed class Connection
Properties
Provides access to all business objects which are belong to this connection
Declaration
public IBusinessObjectsProvider BusinessObjects { get; }
Property Value
Represents information about connection and provides an access to the current trading information(Symbols, Orders, Position, Accounts etc.).
Declaration
public string ConnectingProgress { get; }
Property Value
HistoryMetaData
Gets a matched available metadata info with the vendor's side
Declaration
public HistoryMetadata HistoryMetaData { get; }
Property Value
Declaration
public string Id { get; }
Property Value
Represents information about connection and provides an access to the current trading information(Symbols, Orders, Position, Accounts etc.).
Declaration
public ConnectionInfo Info { get; }
Property Value
Represents information about connection and provides an access to the current trading information(Symbols, Orders, Position, Accounts etc.).
Declaration
public ConnectionResult LastConnectionResult { get; }
Property Value
Messages count that one is waited to process
Declaration
public int MessagesQueueDepth { get; }
Property Value
Declaration
public string Name { get; set; }
Property Value
Represents information about connection and provides an access to the current trading information(Symbols, Orders, Position, Accounts etc.).
Declaration
public IEnumerable<SettingItem> NewsFeedSettings { get; }
Property Value
Represents connection ping time
Declaration
public TimeSpan? PingTime { get; }
Property Value
Represents information about connection and provides an access to the current trading information(Symbols, Orders, Position, Accounts etc.).
Declaration
public TimeSpan? RoundTripTime { get; }
Property Value
Represents information about connection and provides an access to the current trading information(Symbols, Orders, Position, Accounts etc.).
Declaration
public DateTime ServerTime { get; }
Property Value
Contains list of connection settings. Will be reused on each population time.
Declaration
public IList<SettingItem> Settings { get; set; }
Property Value
Gets connection's state (Connected/Connecting/Fail etc.)
Declaration
public ConnectionState State { get; }
Property Value
Represents information about connection and provides an access to the current trading information(Symbols, Orders, Position, Accounts etc.).
Declaration
public int TotalSubscriptionsCount { get; }
Property Value
TradesHistoryMetadata
Represents information about connection and provides an access to the current trading information(Symbols, Orders, Position, Accounts etc.).
Declaration
public TradesHistoryMetadata TradesHistoryMetadata { get; }
Property Value
Declaration
public ConnectionType Type { get; set; }
Property Value
Represents information about connection and provides an access to the current trading information(Symbols, Orders, Position, Accounts etc.).
Declaration
public TimeSpan Uptime { get; }
Property Value
Gets connection's vendor name
Declaration
public string VendorName { get; }
Property Value
Represents information about connection and provides an access to the current trading information(Symbols, Orders, Position, Accounts etc.).
Declaration
public VolumeAnalysisMetadata VolumeAnalysisMetadata { get; }
Property Value
Methods
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.
Declaration
public int CompareTo(object obj)
Parameters
Type
Name
Description
object
obj
An object to compare with this instance.
Returns
Type
Description
int
A value that indicates the relative order of the objects being compared. The return value has these meanings:
Value Meaning Less than zero This instance precedes obj
in the sort order. Zero This instance occurs in the same position in the sort order as obj
. Greater than zero This instance follows obj
in the sort order.
Exceptions
Establishes a connection to a specified vendor
Declaration
public ConnectionResult Connect()
Returns
Declaration
Represents information about connection and provides an access to the current trading information(Symbols, Orders, Position, Accounts etc.).
Declaration
public IEnumerable<NewsArticle> GetNews(GetNewsRequestParameters requestParameters)
Parameters
Returns
GetNewsArticleContent(GetNewsArticleContentRequestParameters)
Represents information about connection and provides an access to the current trading information(Symbols, Orders, Position, Accounts etc.).
Declaration
public string GetNewsArticleContent(GetNewsArticleContentRequestParameters requestParameters)
Parameters
Returns
GetOrdersHistory(OrdersHistoryRequestParameters)
Represents information about connection and provides an access to the current trading information(Symbols, Orders, Position, Accounts etc.).
Declaration
public IList<OrderHistory> GetOrdersHistory(OrdersHistoryRequestParameters parameters)
Parameters
Returns
GetTrades(TradesHistoryRequestParameters)
Represents information about connection and provides an access to the current trading information(Symbols, Orders, Position, Accounts etc.).
Declaration
public IList<Trade> GetTrades(TradesHistoryRequestParameters parameters)
Parameters
Returns
Represents information about connection and provides an access to the current trading information(Symbols, Orders, Position, Accounts etc.).
Declaration
public void SendCustomRequest(RequestParameters parameters)
Parameters
SubscribeNewsUpdates(SubscribeNewsRequestParameters, Action<NewsArticle>)
Represents information about connection and provides an access to the current trading information(Symbols, Orders, Position, Accounts etc.).
Declaration
public void SubscribeNewsUpdates(SubscribeNewsRequestParameters subscribeNewsRequestParameters, Action<NewsArticle> updateAction)
Parameters
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type
Description
string
A string that represents the current object.
Overrides
UnsubscribeNewsUpdates(SubscribeNewsRequestParameters, Action<NewsArticle>)
Represents information about connection and provides an access to the current trading information(Symbols, Orders, Position, Accounts etc.).
Declaration
public void UnsubscribeNewsUpdates(SubscribeNewsRequestParameters subscribeNewsRequestParameters, Action<NewsArticle> updateAction)
Parameters
Events
Declaration
public event EventHandler<ConnectionConnectingProgressChangedEventArgs> ConnectingProgressChanged
Event Type
Represents information about connection and provides an access to the current trading information(Symbols, Orders, Position, Accounts etc.).
Declaration
public event EventHandler<PerformedRequestEventArgs> NewPerformedRequest
Event Type
Represents information about connection and provides an access to the current trading information(Symbols, Orders, Position, Accounts etc.).
Declaration
public event EventHandler<RequestEventArgs> NewRequest
Event Type
Will be triggered when State changed.
Declaration
public event EventHandler<ConnectionStateChangedEventArgs> StateChanged
Event Type
Please enable JavaScript to view the comments powered by Disqus.