• Resolved omERgin

    (@omergin)


    Hi,

    API URL: https://api.coinpaprika.com/v1/exchanges/paribu?quotes=TRY

    I want show “reported_volume_24h” and i build this:

    [jsoncontentimporter url=https://api.coinpaprika.com/v1/exchanges/paribu?quotes=TRY]
    {subloop:quotes:-1}
    {subloop-array:quotes.TRY:-1}
    {quotes.TRY.reported_volume_24h}
    {/subloop-array:quotes.TRY}
    {/subloop:quotes}
    [/jsoncontentimporter]

    What’s wrong?

    In addition, can I show the value “reported_volume_24h” in price format? For example, 106,177,601 instead of 106177601.24052007

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author berkux

    (@berkux)

    Hi,

    remove the “-array” and try this:
    [jsoncontentimporter url=https://api.coinpaprika.com/v1/exchanges/paribu?quotes=TRY]
    {subloop:quotes:-1}
    {subloop:quotes.TRY:-1}
    {quotes.TRY.reported_volume_24h}
    {/subloop:quotes.TRY}
    {/subloop:quotes}
    [/jsoncontentimporter]

    <<In addition, can I show the value “reported_volume_24h” in price format? For example, 106,177,601 instead of 106177601.24052007>>
    Unfortunately no. The free plugin can’t calc and additionally it uses the PHP way to handle numbers. Here a number like 68041352.87891005 is used as
    68041352.8789
    The pro plugin can handle this by converting the number into a string before.
    Another way would be to change the JSON at the API. You might suggest that at https://api.coinpaprika.com

    Bernhard

    Plugin Author berkux

    (@berkux)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘JSON Doesn’t Display Value :/’ is closed to new replies.