Is it possible to specify the number of decimal places in the result when calling the REST API Ex...

Is it possible to specify the number of decimal places in the result when calling the REST API ExtractWithNotes? For example, to get a Mid Price of exchange rates that is rounded to 2 decimal places?

Best Answer

  • @josef.pozny,

    In a nutshell: no, it is not possible.

    ExtractWithNotes is an OnDemand call. It is not possible to set the number of decimal places in an OnDemand call. It is possible to set it in a template used in a scheduled extraction, but that is a different workflow.

    Consideringt the use case you mention, I guess the easiest would be for you to apply the rounding programmatically to the results you receive.

    For more information see this thread.