Jump to content
Sign in to follow this  
Guest mrdavidlaing

Orders stream.ExecutionPrice returns string rather than decimal value

Recommended Posts

Guest mrdavidlaing

The orders stream should return a decimal value for the ExecutionPrice property

However, it currently seems to be returning the string “CityIndex.Atlas.Business.OrderExecutionPrice”.

The following test recreates this behaviour on PPE, producing the logs like the following:

4/30/2012 4:22:15 PM [INFO]  com.lightstreamer.ls_client.actions - Adding MERGE table [ORDERS ; AutoRollover ClientAccountId CurrencyId CurrencyISO Direction ExecutionPrice LastChangedTime MarketId OpenPrice OrderId OriginalLastChangedDateTime OriginalQuantity PositionMethodId Quantity ReasonId Status TradingAccountId Type] to session Sfad9db06fbf5409cT2215005
2012-04-30 16:22:22Z [INFO]  Salient.ReliableHttpClient.RequestController - Received #4 : https://ciapipreprod.cityindextest9.co.uk/TradingApi/order/newtradeorder 
2012-04-30 16:22:22Z [DEBUG] Salient.ReliableHttpClient.RequestInfo - request completed: latency 00:00:00.9490000
ITEM
Item: #4 POST https://ciapipreprod.cityindextest9.co.uk/TradingApi/order/newtradeorder [719f89c9-8a81-470f-89c1-d016f2a32552]
Target/UriTemplate: https://ciapipreprod.cityindextest9.co.uk/TradingApi/order/newtradeorder
State: Processing
Headers:
    UserName = DM813766
    Session = 33b66585-6ba0-44a1-83d4-05b85c5bf5f6
Parameters:
    trade = CIAPI.DTO.NewTradeOrderRequestDTO
Content Type: request - JSON, response - JSON
Body: {"MarketId":154297,"Currency":null,"AutoRollover":false,"Direction":"buy","Quantity":2.00000000,"QuoteId":null,"BidPrice":1.62310,"OfferPrice":1.62328,"AuditId":"

4/30/2012 4:22:22 PM [DEBUG] com.lightstreamer.ls_client.stream - Read data: 2,1|false|400134233|11||1|CityIndex.Atlas.Business.OrderExecutionPrice|\u005C/Date(1335799341000)\u005C/|154297|1.62328|478010838|\u005C/Date(1335799341000)\u005C/|2.00000000|1|2.00000000|1|Open|400198331|Trade
4/30/2012 4:22:22 PM [DEBUG] com.lightstreamer.ls_client.protocol - Read event for item n°1 in table n°2 with values [false, 400134233, 11, UNCHANGED, 1, CityIndex.Atlas.Business.OrderExecutionPrice, \/Date(1335799341000)\/, 154297, 1.62328, 478010838, \/Date(1335799341000)\/, 2.00000000, 1, 2.00000000, 1, Open, 400198331, Trade]
4/30/2012 4:22:22 PM [DEBUG] com.lightstreamer.ls_client.actions - Got event for item 1 with values [false, 400134233, 11, UNCHANGED, 1, CityIndex.Atlas.Business.OrderExecutionPrice, \/Date(1335799341000)\/, 154297, 1.62328, 478010838, \/Date(1335799341000)\/, 2.00000000, 1, 2.00000000, 1, Open, 400198331, Trade]
4/30/2012 4:22:22 PM [DEBUG] com.lightstreamer.ls_client.actions - Notifying event for item 1 with values [ false, 400134233, 11, (null), 1, CityIndex.Atlas.Business.OrderExecutionPrice, \/Date(1335799341000)\/, 154297, 1.62328, 478010838, \/Date(1335799341000)\/, 2.00000000, 1, 2.00000000, 1, Open, 400198331, Trade ]
A first chance exception of type 'System.FormatException' occurred in mscorlib.dll
A first chance exception of type 'System.FormatException' occurred in CIAPI.Phone7.dll
2012-04-30 16:22:22Z [ERROR] StreamingClient.TableListener`1[[CIAPI.DTO.OrderDTO, CIAPI.Phone7, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]] - System.FormatException: FormatException

This seems like a bug in the streaming API implementation. Could you confirm?

Thanks

Share this post


Link to post

The orders stream should return a decimal value for the ExecutionPrice property

However, it currently seems to be returning the string “CityIndex.Atlas.Business.OrderExecutionPrice”.

The following test recreates this behaviour on PPE, producing the logs like the following:

4/30/2012 4:22:15 PM [INFO]  com.lightstreamer.ls_client.actions - Adding MERGE table [ORDERS ; AutoRollover ClientAccountId CurrencyId CurrencyISO Direction ExecutionPrice LastChangedTime MarketId OpenPrice OrderId OriginalLastChangedDateTime OriginalQuantity PositionMethodId Quantity ReasonId Status TradingAccountId Type] to session Sfad9db06fbf5409cT2215005
2012-04-30 16:22:22Z [INFO]  Salient.ReliableHttpClient.RequestController - Received #4 : https://ciapipreprod.cityindextest9.co.uk/TradingApi/order/newtradeorder 
2012-04-30 16:22:22Z [DEBUG] Salient.ReliableHttpClient.RequestInfo - request completed: latency 00:00:00.9490000
ITEM
Item: #4 POST https://ciapipreprod.cityindextest9.co.uk/TradingApi/order/newtradeorder [719f89c9-8a81-470f-89c1-d016f2a32552]
Target/UriTemplate: https://ciapipreprod.cityindextest9.co.uk/TradingApi/order/newtradeorder
State: Processing
Headers:
    UserName = DM813766
    Session = 33b66585-6ba0-44a1-83d4-05b85c5bf5f6
Parameters:
    trade = CIAPI.DTO.NewTradeOrderRequestDTO
Content Type: request - JSON, response - JSON
Body: {"MarketId":154297,"Currency":null,"AutoRollover":false,"Direction":"buy","Quantity":2.00000000,"QuoteId":null,"BidPrice":1.62310,"OfferPrice":1.62328,"AuditId":"

4/30/2012 4:22:22 PM [DEBUG] com.lightstreamer.ls_client.stream - Read data: 2,1|false|400134233|11||1|CityIndex.Atlas.Business.OrderExecutionPrice|\u005C/Date(1335799341000)\u005C/|154297|1.62328|478010838|\u005C/Date(1335799341000)\u005C/|2.00000000|1|2.00000000|1|Open|400198331|Trade
4/30/2012 4:22:22 PM [DEBUG] com.lightstreamer.ls_client.protocol - Read event for item n°1 in table n°2 with values [false, 400134233, 11, UNCHANGED, 1, CityIndex.Atlas.Business.OrderExecutionPrice, \/Date(1335799341000)\/, 154297, 1.62328, 478010838, \/Date(1335799341000)\/, 2.00000000, 1, 2.00000000, 1, Open, 400198331, Trade]
4/30/2012 4:22:22 PM [DEBUG] com.lightstreamer.ls_client.actions - Got event for item 1 with values [false, 400134233, 11, UNCHANGED, 1, CityIndex.Atlas.Business.OrderExecutionPrice, \/Date(1335799341000)\/, 154297, 1.62328, 478010838, \/Date(1335799341000)\/, 2.00000000, 1, 2.00000000, 1, Open, 400198331, Trade]
4/30/2012 4:22:22 PM [DEBUG] com.lightstreamer.ls_client.actions - Notifying event for item 1 with values [ false, 400134233, 11, (null), 1, CityIndex.Atlas.Business.OrderExecutionPrice, \/Date(1335799341000)\/, 154297, 1.62328, 478010838, \/Date(1335799341000)\/, 2.00000000, 1, 2.00000000, 1, Open, 400198331, Trade ]
A first chance exception of type 'System.FormatException' occurred in mscorlib.dll
A first chance exception of type 'System.FormatException' occurred in CIAPI.Phone7.dll
2012-04-30 16:22:22Z [ERROR] StreamingClient.TableListener`1[[CIAPI.DTO.OrderDTO, CIAPI.Phone7, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]] - System.FormatException: FormatException

This seems like a bug in the streaming API implementation. Could you confirm?

Thanks

I’m glad someone else reported this issue as I though I was the only one to have it and that the problem was down to my implementation of the Lightstreamer! :–) Do you know if there any proposed ETA for fixing this?

Share this post


Link to post
Guest sky.sanders

The orders stream should return a decimal value for the ExecutionPrice property

However, it currently seems to be returning the string “CityIndex.Atlas.Business.OrderExecutionPrice”.

The following test recreates this behaviour on PPE, producing the logs like the following:

4/30/2012 4:22:15 PM [INFO]  com.lightstreamer.ls_client.actions - Adding MERGE table [ORDERS ; AutoRollover ClientAccountId CurrencyId CurrencyISO Direction ExecutionPrice LastChangedTime MarketId OpenPrice OrderId OriginalLastChangedDateTime OriginalQuantity PositionMethodId Quantity ReasonId Status TradingAccountId Type] to session Sfad9db06fbf5409cT2215005
2012-04-30 16:22:22Z [INFO]  Salient.ReliableHttpClient.RequestController - Received #4 : https://ciapipreprod.cityindextest9.co.uk/TradingApi/order/newtradeorder 
2012-04-30 16:22:22Z [DEBUG] Salient.ReliableHttpClient.RequestInfo - request completed: latency 00:00:00.9490000
ITEM
Item: #4 POST https://ciapipreprod.cityindextest9.co.uk/TradingApi/order/newtradeorder [719f89c9-8a81-470f-89c1-d016f2a32552]
Target/UriTemplate: https://ciapipreprod.cityindextest9.co.uk/TradingApi/order/newtradeorder
State: Processing
Headers:
    UserName = DM813766
    Session = 33b66585-6ba0-44a1-83d4-05b85c5bf5f6
Parameters:
    trade = CIAPI.DTO.NewTradeOrderRequestDTO
Content Type: request - JSON, response - JSON
Body: {"MarketId":154297,"Currency":null,"AutoRollover":false,"Direction":"buy","Quantity":2.00000000,"QuoteId":null,"BidPrice":1.62310,"OfferPrice":1.62328,"AuditId":"

4/30/2012 4:22:22 PM [DEBUG] com.lightstreamer.ls_client.stream - Read data: 2,1|false|400134233|11||1|CityIndex.Atlas.Business.OrderExecutionPrice|\u005C/Date(1335799341000)\u005C/|154297|1.62328|478010838|\u005C/Date(1335799341000)\u005C/|2.00000000|1|2.00000000|1|Open|400198331|Trade
4/30/2012 4:22:22 PM [DEBUG] com.lightstreamer.ls_client.protocol - Read event for item n°1 in table n°2 with values [false, 400134233, 11, UNCHANGED, 1, CityIndex.Atlas.Business.OrderExecutionPrice, \/Date(1335799341000)\/, 154297, 1.62328, 478010838, \/Date(1335799341000)\/, 2.00000000, 1, 2.00000000, 1, Open, 400198331, Trade]
4/30/2012 4:22:22 PM [DEBUG] com.lightstreamer.ls_client.actions - Got event for item 1 with values [false, 400134233, 11, UNCHANGED, 1, CityIndex.Atlas.Business.OrderExecutionPrice, \/Date(1335799341000)\/, 154297, 1.62328, 478010838, \/Date(1335799341000)\/, 2.00000000, 1, 2.00000000, 1, Open, 400198331, Trade]
4/30/2012 4:22:22 PM [DEBUG] com.lightstreamer.ls_client.actions - Notifying event for item 1 with values [ false, 400134233, 11, (null), 1, CityIndex.Atlas.Business.OrderExecutionPrice, \/Date(1335799341000)\/, 154297, 1.62328, 478010838, \/Date(1335799341000)\/, 2.00000000, 1, 2.00000000, 1, Open, 400198331, Trade ]
A first chance exception of type 'System.FormatException' occurred in mscorlib.dll
A first chance exception of type 'System.FormatException' occurred in CIAPI.Phone7.dll
2012-04-30 16:22:22Z [ERROR] StreamingClient.TableListener`1[[CIAPI.DTO.OrderDTO, CIAPI.Phone7, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]] - System.FormatException: FormatException

This seems like a bug in the streaming API implementation. Could you confirm?

Thanks

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×