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

    (@berkux)

    try this:

    [jsoncontentimporter url=https://api.tradingeconomics.com/markets/commodities?c=guest:guest&format=json numberofdisplayeditems=1 DEAKdebugmode=10]
    LastUpdate: {LastUpdate} Symbol: {Symbol}: YearlyPercentualChange: {YearlyPercentualChange}[/jsoncontentimporter]

    Bernhard

    Thread Starter kaymineralprices

    (@kaymineralprices)

    Hi Bernhard,

    Thank you for your help. I might have phrased the question incorrectly. The JSON editor is showing 10 arrays (or items) in the link provided above. I would like to isolate array 1 only. The desired output I want is as follows :

    LastUpdate: 2018-09-09T15:56:00 Symbol: JBP:COM: YearlyPercentualChange: 1.9104

    My current output is :

    LastUpdate: 2018-09-09T15:56:00 Symbol: BIT:COM: YearlyPercentualChange: 39.0893

    Thanks again.

    Plugin Author berkux

    (@berkux)

    Hi Kay,

    ok, try this:

    [jsoncontentimporter url=https://api.tradingeconomics.com/markets/commodities?c=guest:guest&format=json oneofthesewordsmustbein="JBP:COM" oneofthesewordsmustbeindepth=2 DEAKdebugmode=10]
    LastUpdate: {LastUpdate} Symbol: {Symbol}: YearlyPercentualChange: {YearlyPercentualChange}
    [/jsoncontentimporter]

    Bernhard

    Thread Starter kaymineralprices

    (@kaymineralprices)

    Hi Bernhard,

    Thank you. I can’t seem to get rid of the Symbol in the output and just get a result of LastUpdate. Is there a way to isolate without publishing the symbol?

    Plugin Author berkux

    (@berkux)

    Hi,

    this can’t be done with the free plugin. With the pro plugin this is not problem.

    Bernhard

    Thread Starter kaymineralprices

    (@kaymineralprices)

    Hi Bernhard,

    Thank you once again. I will upgrade my plug-in to the pro version and hopefully it will all work out fine.

    Kind Regards,
    Kay

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

The topic ‘Template for Commodity prices’ is closed to new replies.