question

Upvotes
Accepted
61 2 4 9

Getting the Name of Exchange from a RediLib.CacheControl object.

I am able to submit an order where the Exchange (Destination) has a simple name like DEMF Shares. However on subsequent messages via CacheControl the Exchange returned is in an int format and giving me a value of 1026953. Is there a method I can call to change that number into the string name for the Destination?

Note, your documentation states this field is a string object yet when you try to extract a string it throws an exception.

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.

Upvote
Accepted
38.1k 71 35 53

I think that you are using the CacheControl.GetCell(...) method with the "Exchange" field to get the exchange. It returns a number.

Please try to call that method with the "DisplayExchange" field instead. From my test, it returns the name of exchange.

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.

Upvotes
61 2 4 9

That's what I was looking for! Thanks! Is there a list of all the available property names out there? DisplayExchange wasn't in the documentation I've received from TR and I'm wondering what else I'm missing.

Thanks again!

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