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

New endpoint: price history #114

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

0xBoringWozniak
Copy link

@0xBoringWozniak 0xBoringWozniak commented Jan 20, 2025

Overview

This pull request includes changes to add functionality for retrieving price history in the py_clob_client package. The most important changes include adding new methods to the ClobClient class, updating the endpoints, and creating an example script to demonstrate the new functionality.

Issue #89

Description

New functionality for retrieving price history:

  • py_clob_client/client.py: Added get_price_history_with_interval and get_price_history_with_timestamps methods to the ClobClient class to retrieve price history using different parameters.

Endpoint updates:

Example script:

  • examples/get_price_history.py: Created a new example script to demonstrate how to use the get_price_history_with_interval method of the ClobClient class.

Types of changes

  • Refactor/enhancement
  • Bug fix/behavior correction
  • New feature
  • Breaking change
  • Other, additional

Status

  • Prefix PR title with [WIP] if necessary (changes not yet made).
  • Add tests to cover changes as needed.
  • Update documentation/changelog as needed.
  • Verify all tests run correctly in CI and pass.
  • Ready for review/merge.

@0xBoringWozniak 0xBoringWozniak changed the title Add price history method New endpoint: Add price history method Jan 20, 2025
@0xBoringWozniak 0xBoringWozniak changed the title New endpoint: Add price history method New endpoint: price history Jan 20, 2025
@0xBoringWozniak
Copy link
Author

@poly-rodr plz take a look

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.

1 participant