Main API class. This provides access to everything else.

Namespace:  T4.API
Assembly:  T4API.20 (in T4API.20.dll)

Syntax

C#
public class Host : IDisposable
Visual Basic (Declaration)
Public Class Host _
	Implements IDisposable
Visual C++
public ref class Host : IDisposable

Remarks

The Host is the center of the API. Nothing works without a Host object being created and logging in successfully to the server.

As soon as the Host object is created it will attempt to connect to the servers and login. It will remain connected to the servers until the Dispose method is called. If it is disconnected from the server due to a network problem then it will automatically keep trying to reconnect until disposed of.

Market information can be obtained using the MarketData property which also allows access to the exchange and contract hierarchy.

Account information, including positions, existing orders and submitting new orders can be obtained via the Accounts property.

Inheritance Hierarchy

System..::.Object
  T4.API..::.Host

See Also