src/api/contract/combo.ts

Summary

Maintainability
A
0 mins
Test Coverage
import SecType from "../data/enum/sec-type";
import ComboLeg from "./comboLeg";
import { Contract } from "./contract";

/**
 * A Combo contract.
 */
export class Combo implements Contract {
  constructor(
    public symbol: string,
    public comboLegs: ComboLeg[],
    public currency?: string,
    public exchange?: string
  ) {
    this.currency = this.currency ?? "USD";
    this.exchange = this.exchange ?? "SMART";
  }

  public secType = SecType.BAG;
}

export default Combo;