Script repair or creation of a new one

Employer
SolidnyPartner
SolidnyPartner
Description

I have a script that has stopped working.

It is an API for XTB

http://developers.xstore.pro/documentation/

the connection and API is definitely working - verified with a simple download of the EURPLN exchange rate.

I have a new server with the latest Debian 12 for testing.

I don't see any errors in the logs and I'm not very familiar with nodejs, I don't know how to diagnose it. The script was downloading 20 currencies by api and generating xml from them also entering the values into the database tables for history.

Published
on 2023-12-14
Category
Required functions:
connection to the api downloading values for USDJPY, OIL.WTI, LITECOIN, USDCHF, GBPPLN, COPPER, RIPPLE, EURJPY, CHFPLN, SILVER, ETHEREUM, EURGBP, USDPLN, GOLD, BITCOIN, EURUSD, EURPLN generation of XML with arrows if, for example, the rate increase +1.32% is a green arrow, etc. structure of the resulting file: <RADEK2> <courses2> <box11> <boxName11>EUR/PLN</boxName11>. <boxVal11>4.34</boxVal11>. <boxDiff11>-0.22%</boxDiff11> <boxDiffColor11>FFB30000</boxDiffColor11>. <boxTriRed11>true</boxTriRed11>. <boxTriGreen11>false</boxTriGreen11>. </box11> <box12>. <boxName12>EUR/USD</boxName12>. <boxVal12>1.10</boxVal12>. <boxDiff12>+0.71%</boxDiff12> <boxDiffColor12>FF28D700</boxDiffColor12>. <boxTriRed12>false</boxTriRed12>. <boxTriGreen12>true</boxTriGreen12>. </box12> <box13>. <boxName13>BTC/USD</boxName13>. <boxVal13>38051.45</boxVal13> <boxDiff13>-1.60%</boxDiff13> <boxDiffColor13>FFB30000</boxDiffColor13>. <boxTriRed13>true</boxTriRed13>. <boxTriGreen13>false</boxTriGreen13>. </box13> .....

Offers sent (16)

seyCo
seyCo
1 deal
on 2023-12-17
django
javascript
python
+ 2 more
no avatar
sjd
2 deals
on 2023-12-16
c
databases
html5
+ 5 more
Budget
Negotiable
Copyright
-
Expires in
30 days

Recent jobs from category