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

Options

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.

Tagged:

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    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.

Answers

  • 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!