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

[Feature] Polygon Currency Snapshots #6333

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

deeleeramone
Copy link
Contributor

  1. Why?:

    • Adds another provider to the endpoint.
  2. What?:

    • obb.currency.snapshots(provider="polygon")
  3. Impact:

    • Minimal maintenance required.
  4. Testing Done:

Example:

obb.currency.snapshots(provider="polygon", base="XAU,USD,CAD,NZD", counter_currencies="EUR,JPY,USD")

(not the complete table)

base_currency XAU XAU XAU
counter_currency EUR JPY USD
last_rate 2162.65 356721.0 2305.45
open 2189.8 361193.1 2333.17
high 2189.9 361260.7 2334.11
low 2156.05 355550.7 2297.78
volume 597 604 785
prev_close 2189.25 361221.0 2333.39
vwap 2171.1703 358131.7396 2314.3478
change -26.59999999999991 -4500.0 -27.940000000000055
change_percent -0.012150279776179017 -0.012457747473153556 -0.011973994917266317
prev_open 2238.4 368929.0 2386.84
prev_high 2238.4 368929.0 2386.84
prev_low 2181.15 359955.0 2325.22
prev_volume 2682.0 2773.0 3624.0
prev_vwap 2205.9136 363673.5531 2350.4423
bid 2162.65 356721.0 2305.45
ask 2165.05 356824.0 2305.75
minute_open 2163.6 356725.3 2305.4
minute_high 2163.6 356725.3 2305.45
minute_low 2162.65 356721.0 2305.4
minute_close 2162.65 356721.0 2305.45
minute_volume 2.0 2.0 2.0
minute_vwap 2163.125 356723.15 2305.425
minute_transactions 2.0 2.0 2.0
quote_timestamp 2024-04-23 04:59:54+00:00 2024-04-23 04:59:54+00:00 2024-04-23 04:59:54+00:00
minute_timestamp 2024-04-23 04:59:00+00:00 2024-04-23 04:59:00+00:00 2024-04-23 04:59:00+00:00
last_updated 2024-04-23 05:00:00+00:00 2024-04-23 05:00:00+00:00 2024-04-23 05:00:00+00:00

@deeleeramone deeleeramone added enhancement Enhancement platform OpenBB Platform v4 PRs for v4 labels Apr 23, 2024
@IgorWounds IgorWounds added this pull request to the merge queue Apr 23, 2024
Merged via the queue into develop with commit 6b3d6fb Apr 23, 2024
13 checks passed
@IgorWounds IgorWounds deleted the feature/polygon-currency-snapshots branch April 23, 2024 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement platform OpenBB Platform v4 PRs for v4
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants