How to submit stop (market) order using Redilib (C#) to the GS SOR?
We are trying to send a stop (market) order using the C# Redilib API and are trying to send via GS Smart Order Algo. However, we are not having much success. We are aware that we should be able to test order submission with VBA Excel using one of the using one of REDI VBA Excel Examples on GitHub (Order Entry Single - US Options), but we do not have this setup. Why can't the required fields be posted in a document somewhere?
Send a Redi Excel VBA "Stop Limit" order with Goldman Sachs. - Forum | Refinitiv Developer Community
new_order.Symbol = Symbol;
new_order.Side = Side; // (Side == "BUY" ? "SELL" : "BUY");
new_order.PriceType = "SOR GSDE";
new_order.Exchange = "GSCO ALGO";
new_order.Quantity = Quantity;
new_order.TIF = "Day";
new_order.Account = Account;
new_order.StopPrice = StopPrice;
new_order.SetNewVariable("(MB) Order Type", "Stop");
new_order.SetNewVariable("(MB) Stop", StopPrice);
Best Answer
-
Thank you for reaching out to us.
Typically, after setting a Symbol, you can call the GetExchangeX method to get a list of avaiable exchanges. Then, call the GetPriceTypeX method to get a list of price types.
ORDER hOrder = new ORDER();
hOrder.Symbol = "AAPL";
object objCount = null;
hOrder.GetExchangeCount(ref objCount);
for (int i = 0; i < (int)objCount; i++)
{
object objRef = null;
var objDynamic = hOrder.GetExchangeX(i, ref objRef);
Console.WriteLine(objRef.ToString());
}
Console.Write("Exchange: ");
hOrder.Exchange = Console.ReadLine();
objCount = null;
hOrder.GetPriceTypeCount(ref objCount);
for (int i = 0; i < (int)objCount; i++)
{
object objRef = null;
var objDynamic = hOrder.GetPriceTypeX(i, ref objRef);
Console.WriteLine(objRef.ToString());
}
Console.Write("Price Type: ");
hOrder.PriceType = Console.ReadLine();The output look like this:
0
Answers
-
Yes, this was helpful. However, we still can not send stop orders via SOR (using Redilib API). Are there additional fields we need to include?
2024-07-03 08:51:35,823 [1] INFO OrdMgr - Exchange: GSGU Algo
2024-07-03 08:51:35,831 [1] INFO OrdMgr - PriceType: [AXIS GSGU]
2024-07-03 08:51:35,832 [1] INFO OrdMgr - PriceType: [AUCTION GSGU]
2024-07-03 08:51:35,833 [1] INFO OrdMgr - PriceType: [VWAP GSGU]
2024-07-03 08:51:35,834 [1] INFO OrdMgr - PriceType: [TWAP GSGU]
2024-07-03 08:51:35,836 [1] INFO OrdMgr - PriceType: [STEALTH GSGU]
2024-07-03 08:51:35,838 [1] INFO OrdMgr - PriceType: [SOR GSGU]
2024-07-03 08:51:35,839 [1] INFO OrdMgr - PriceType: [SONAR DARK GSGU]
2024-07-03 08:51:35,840 [1] INFO OrdMgr - PriceType: [SONAR GSGU]
2024-07-03 08:51:35,841 [1] INFO OrdMgr - PriceType: [SMALLCAP GSGU]
2024-07-03 08:51:35,841 [1] INFO OrdMgr - PriceType: [SIGMA X2 GSGU]
2024-07-03 08:51:35,842 [1] INFO OrdMgr - PriceType: [SCALING GSGU]
2024-07-03 08:51:35,843 [1] INFO OrdMgr - PriceType: [PARTCIPATE GSGU]
2024-07-03 08:51:35,844 [1] INFO OrdMgr - PriceType: [NAVIGATOR GSGU]
2024-07-03 08:51:35,844 [1] INFO OrdMgr - PriceType: [IS GSGU]
2024-07-03 08:51:35,845 [1] INFO OrdMgr - PriceType: [GSPRINCPAL GSGU]
2024-07-03 08:51:35,846 [1] INFO OrdMgr - PriceType: [CUSTOM GSGU]
2024-07-03 08:51:35,846 [1] INFO OrdMgr - PriceType: [1CLICK GSGU]0 -
Did you try the code mentioned on this discussion?
You can contact the REDI support team directly via MyAccount to verify the code.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 684 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 249 ETA
- 554 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 643 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 192 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛