Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Process curency price updates twice daily #51

Merged
merged 5 commits into from
Mar 5, 2022

Conversation

Razzmatazzz
Copy link
Contributor

@Razzmatazzz Razzmatazzz commented Mar 2, 2022

Updates currency prices twice per day. The output is formatted the same as in update-trader-prices.js:
{ '5696686a4bdc2da3298b456a': [ { id: '5696686a4bdc2da3298b456a', source: 'peacekeeper', min_level: 1, price: 145, updated: 2022-03-02T12:02:49.000Z, quest_unlock: false, quest_unlock_id: null, currency: 'RUB' } ], '569668774bdc2da2298b4568': [ { id: '569668774bdc2da2298b4568', source: 'skier', min_level: 2, price: 164, updated: 2022-03-02T15:06:48.000Z, quest_unlock: false, quest_unlock_id: null, currency: 'RUB' } ] }

Must un-comment the code at the end of update-currency-prices.js to specify the appropriate endpoint.

The trader price update script now gets the latest USD/EUR values and the USD/EUR values from when an item was scanned. All USD/EUR prices are updated to reflect the latest exchange rates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants