Click or drag to resize

ExternalConnectionBase Class

Base class for building an External Connection
Inheritance Hierarchy

Namespace:  SharpCharts.Base.Connection
Assembly:  SharpCharts.Base (in SharpCharts.Base.dll) Version: 1.0.0.42 (1.0.0.42)
Syntax
C#
public abstract class ExternalConnectionBase : PrintLogBase

The ExternalConnectionBase type exposes the following members.

Constructors
  NameDescription
Public methodExternalConnectionBase
Constructor for External Connection
Top
Properties
  NameDescription
Public propertyConnectionState
Gets the current Connection State
Protected propertyDialogService (Inherited from MessageBoxBase.)
Public propertyError
Gets the Error string
(Inherited from MessageBoxBase.)
Protected propertyFileService (Inherited from MessageBoxBase.)
Public propertyIsOrderFeed
Gets if the connection supports order submission
Public propertyItem
Gets the IDataErrorInfo error string
(Inherited from MessageBoxBase.)
Protected propertyMessageBox (Inherited from MessageBoxBase.)
Public propertyOptions
Gets the External Options
Protected propertySingletonService (Inherited from MessageBoxBase.)
Top
Methods
  NameDescription
Public methodStatic memberAdddOrGetPosition
Adds or gets a position
Public methodStatic memberAppendDayData
Backfill day data
Public methodStatic memberAppendL2Data
Append market depth data
Public methodStatic memberAppendMinuteData
Backfill minute data
Public methodStatic memberAppendRealTimeQuotes
Append real-time quotes
Public methodStatic memberAppendTickData
Backfill tick data
Public methodCancelAllOrders
Cancels all orders
Public methodCancelOrder
Cancel an order
Public methodChangeOrder
Change/Modify an existing order
Public methodConnect
Connects to the connection
Public methodCreateAccount(String, String, OrderType, TimeInForce, ProductType, Type, Boolean, Boolean, Boolean)
Create a new account
Public methodStatic memberCreateAccount(ExternalConnectionBase, String, String, OrderType, TimeInForce, ProductType, Type, Boolean, Boolean, Boolean)
Create a new account
Public methodStatic memberCreateOrder
Create a new order
Public methodDisconnect
Disconnect from the connection
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodStatic memberFillTrade
Updates when an order is filled/part-filled
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberGetAccount
Gets the account
Public methodStatic memberGetConnectionState
Gets the present connection state
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodStatic memberGetInstrument(Dispatcher, FuncInstrumentDefination, Boolean, String, InstrumentType, Exchange, Currency, Double, Boolean, Boolean)
Gets the instrument from database
Public methodStatic memberGetInstrument(Dispatcher, FuncInstrumentDefination, Boolean, String, InstrumentType, Exchange, Currency, Double, DateTime, Double, Boolean, Boolean)
Gets the instrument from database
Public methodStatic memberGetInstrument(Dispatcher, FuncInstrumentDefination, Boolean, String, InstrumentType, Exchange, Currency, Double, DateTime, Double, Boolean, Boolean, Boolean)
Gets the instrument from database
Public methodStatic memberGetInstrument(Dispatcher, FuncInstrumentDefination, Boolean, String, String, InstrumentType, Exchange, Currency, Double, DateTime, Double, Boolean, Boolean, OptionType, Double, Boolean)
Gets the instrument from database
Public methodGetSnapQuote
Gets snap quote
Public methodGetSnapQuotes
Gets snap quotes
Public methodGetSymbolByDataFeedProvider(Instrument)
Get symbol from instrument as defined for External Connection
Public methodGetSymbolByDataFeedProvider(Instrument, DataFeedProvider)
Get symbol from instrument from defined data feed provider
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodLog
Log message. It will be displayed in the Logs tab in Main View
(Inherited from PrintLogBase.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberNotifyHistoricalDataDownloadEnd
Notify if the backfill data loading has been completed.
Protected methodPrint(String)
Prints the message in the Output view
(Inherited from PrintLogBase.)
Protected methodPrint(String, Brush)
Prints the message in the Output view
(Inherited from PrintLogBase.)
Public methodRefreshAccount
Refresh the account
Public methodRefreshHoldings
Refresh the holdings
Public methodRefreshOrders
Refresh the orders
Public methodRefreshPositions
Refresh the positions
Public methodRefreshTrades
Refresh the trades
Public methodStatic memberSetApiId
Set the Api Id
Public methodSetConnectionState(ConnectionState)
Set connection state
Public methodStatic memberSetConnectionState(ExternalConnectionBase, ConnectionState)
Set connection state
Public methodStatic memberSetId
Set the order Id
Public methodStatic memberSetOrderId
Sets the orderId
Public methodStatic memberSetParentOrderId
Set the parent order id
Public methodStatic memberSetTradeId
Sets the trade id
Public methodSubmitOrder
Submits a new order
Public methodSubscribeHistoricalData
Get historical data
Public methodSubscribeLevel1
Subscribe to real-time data
Public methodSubscribeLevel2
Subscribe to market depth
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUnsubscribeLevel1
Unsubscribe from real-time data
Public methodUnsubscribeLevel2
Unsubscribe from market depth
Public methodStatic memberUpdateOrder(IOrder, DateTime, OrderState, Boolean)
Update the order
Public methodStatic memberUpdateOrder(IOrder, DateTime, OrderState, Int32, Int32, Double, Double, Double, Boolean, Boolean)
Update the order
Public methodStatic memberUpdateOrder(IOrder, DateTime, OrderState, Int32, Int32, Double, Double, Double, Int32, Boolean, Boolean)
Update the order
Public methodStatic memberUpdatePosition(IPosition, Int32, Double, Double)
Update the position
Public methodStatic memberUpdatePosition(IPosition, MarketPosition, Int32, Double, Double)
Update the position.
Top
See Also