question

Upvotes
Accepted
1 0 0 3

REDI Auctions

Hereunder the code that EBBS used to assign the price and order type:

hOrder.exchange = "GSIE ALGO"
hOrder.SetNewVariable "(MB) Order Type", "Limit"
hOrder.SetNewVariable "(MB) Time in Force", "Day"
hOrder.PriceType = "AUCTION GSIE"

How do you specify the Open/Close Auction ?
Below does not work. They didnt specify anything and the order went as "Close Auction"

hOrder.PriceType = "AUCTION GSIE"
hOrder.AuctionType = "Open"

redi-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
410 1 0 1

Hi @Sanjay.Bhudia,

The "Autcion Type" parameter is a MB algo parameter, so the method of submission is a little different.

Our https://github.com/TR-API-Samples/Example.REDI.VB.ExcelExamples/blob/master/Order%20Entry%20-%20Singles%20Batch%20Load%20(Global%20Equities%20%26%20Futures).xlsm has sample code for this:

RetVal = hOrder.GetMBFieldX(J, vName, vValue, vType) RetVal1 = hOrder.SetNewVariable("(MB) " + vName, CStr(Worksheets("REDIEquityEntry").Cells(I, 14 + J).Value))

For example, on the sheet, Destination (H) = GSIE ALGO, Order Type (I) = AUCTION GSIE, and Auction Type (S) = Open. Be sure to clear out the other values in columns N/etc that you aren't using.

Thanks,

Brian


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea