using System;
namespace Krs.Ats.IBNet.Contracts
{
///
/// Future Class - uses default constructors for creating an future contract.
///
///
[Serializable()]
public class Future : Contract
{
///
/// Create n Future Contract for a specific exchange
///
/// Symbol for the future contract. See .
/// Exchange for the future contract. See .
/// Expiry for a future contract. See .
public Future(string symbol, string exchange, string expiry)
: base(symbol, exchange, SecurityType.Future, "USD", expiry)
{
}
///
/// Create a Future Contract for a specific exchange
///
/// Symbol for the future contract. See .
/// Exchange for the future contract. See .
/// Expiry for a future contract. See .
/// Currency for a future contract. See .
public Future(string symbol, string exchange, string expiry, string currency)
: base(symbol, exchange, SecurityType.Future, currency, expiry)
{
}
///
/// Create a Future Contract for a specific exchange
///
/// Symbol for the future contract. See .
/// Exchange for the future contract. See .
/// Expiry for a future contract. See .
/// Currency for a future contract. See .
/// Multiplier for a future contract. See .
public Future(string symbol, string exchange, string expiry, string currency, decimal multiplier)
: base(symbol, exchange, SecurityType.Future, currency, expiry)
{
Multiplier = multiplier.ToString();
}
}
}