Skip to main content

A Python library for retrieving financial data.

Project description

Financial Data Retrieval Library

oandadata

oandadata is a Python library designed to retrieve financial data from the OANDA API. It provides a simple and efficient way to access candle data for a specified currency pair.

Features

  • Easy-to-use API: With just a few lines of code, you can retrieve candle data for any currency pair available on the OANDA platform.
  • Flexible Parameters: You can specify the number of candles to retrieve, the timeframe for each candle, the type of price data to retrieve, and the currency pair.
  • Pandas Integration: The retrieved data is returned as a pandas DataFrame, making it easy to analyze and manipulate the data.

Example

Here's an example of how you can use oandadata to retrieve candle data:

import oandadata

# Define your parameters
token = 'your_api_token'
count = 100
timeframe = 'H1'
price_type = 'MBA'
currency_pair = 'XAU_CAD'

# Retrieve the candle data
df = oandadata.get_candles(token, count, timeframe, price_type, currency_pair)

# Now 'df' is a DataFrame containing the candle data

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oandadata-0.1.4.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oandadata-0.1.4-py2.py3-none-any.whl (3.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file oandadata-0.1.4.tar.gz.

File metadata

  • Download URL: oandadata-0.1.4.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for oandadata-0.1.4.tar.gz
Algorithm Hash digest
SHA256 38bc0f160399a8ff3d8d072a1e28e887f9f1b920f7b69f9130fe9c78a3817ef9
MD5 68c93e5c986156d050a413de44164cbd
BLAKE2b-256 d54d05679fd991e01ab72963e2b33bec3bf7c6796b664b50536c917719ea803d

See more details on using hashes here.

File details

Details for the file oandadata-0.1.4-py2.py3-none-any.whl.

File metadata

  • Download URL: oandadata-0.1.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for oandadata-0.1.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d4786a59f70767aadce94e0dfe146dbcebc9c2679d108fce1e94ba6344ee8fa9
MD5 11af4dc31a9e301c58c124d9eef60129
BLAKE2b-256 84cfd1facc7ccbd9954c4e6526c1b09061f5b9f100eacb7c848b05e73c909c67

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page