Example #1
0
        Zorro2TDAmSymbol
        (
            string zSymbol
        )
        {
            // Create a TD Asset object, which will automatically parse the
            // symbol
            TDAsset         tdAsset = new TDAsset(zSymbol);
            OrderSubmission order   = new OrderSubmission(tdAsset, 0, 0, 0, false);

            return(order.GetOptionSymbol());
        }
Example #2
0
        public void addToFerret(Fields fields, OrderSubmitter submitter)
        {
            fields.put("SYMBOL", symbol.name);
            details.addToFerret(fields);
            duration.addToFerret(fields);
            ferretSubmission = new OrderSubmission();
            ferretSubmission.addToFerretOrderSubmit(fields);
            fields.put("SIDE", direction.longShort("BUY", "SELL"));
            fields.put("QUANTITY", size);
            var config = configs.get(symbol.type());

            fields.put("PLATFORM", config.platform());
            fields.put("ROUTE", config.route());
            fields.put("SECURITYTYPE", symbol.type().Equals("Future") ? "FUTURES" : "EQUITY");
            fields.put("STATUS", "NEW");
            fields.put("MESSAGETYPE", "NewOrder");
        }