Trader_V Posted April 25, 2020 Report Share Posted April 25, 2020 Hi. Is there any Medved API to populate a trade ticket? If not, are there any plans for this? Thanks! Quote Link to comment Share on other sites More sharing options...
0 Jerry Medved Posted April 25, 2020 Report Share Posted April 25, 2020 actually, there is but not documented yet. we will however be updating our API at which time lots of things will change. In general, our API docs are at https://medvedtrader.com/api the command in question is FillTradeTicket and is done as a POST to: http://127.0.0.1:16239/req?FillTradeTicket(SYMBOL, UpdateType, ForceNewInstance) (UpdateType and ForceNewInstance can be omitted, in which case they will be ReplaceAll and false respectively) SYMBOL: obviousUpdateType: there are a bunch of options but basically should just use ReplaceAll, meaning that everything on the trade ticket will be replaced with newly provided valuesForceNewInstance: if true, then always create a new TradeTicket window. Otherwise, it will reuse existing one if there is one POST DATA should be JSON or XML like this: <Order> <CommandType>NewOrder</CommandType> <ConditionalType>None</ConditionalType> <Legs> <Symbol>NFLX</Symbol> <Quantity>100</Quantity> <Action>Buy</Action> <OrderType>Limit</OrderType> <LimitPrice>420.00</LimitPrice> <Routing>NSDQ</Routing> <DisplaySize>200</DisplaySize> <TIF>Day</TIF> <TIFDate>2020-10-19</TIFDate> </Legs> </Order> Fill in the values accordingly. If JSON, same structure as above Quote Link to comment Share on other sites More sharing options...
0 Trader_V Posted April 26, 2020 Author Report Share Posted April 26, 2020 Thanks, Jerry! Quote Link to comment Share on other sites More sharing options...
0 Trader_V Posted April 27, 2020 Author Report Share Posted April 27, 2020 Will COLOR also be available for FillTradeTicket so that multiple tickets can get populated? Thanks again, Jerry. Quote Link to comment Share on other sites More sharing options...
0 Jerry Medved Posted April 27, 2020 Report Share Posted April 27, 2020 Color (Symbol Linking) is kind of a separate thing. There is already a function for setting a symbol for a symbol linking color. There is no functionality - in UI or API for setting an order based on the symbol linking color Quote Link to comment Share on other sites More sharing options...
0 Trader_V Posted April 28, 2020 Author Report Share Posted April 28, 2020 Thanks, Jerry. I'll have to play with it and figure out how to blend the API functionality and my trading style. Quote Link to comment Share on other sites More sharing options...
Question
Trader_V
Hi. Is there any Medved API to populate a trade ticket? If not, are there any plans for this?
Thanks!
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.