Skip to main content

tradermade is Python SDK for getting forex data via REST API or Websocket.

Installation

Use the package manager pip to install foobar.

pip install tradermade

Get API key by signing up for free

Usage

REST API

import tradermade as tm

# set api key
tm.set_rest_api_key(api_key)


tm.live(currency='EURUSD,GBPUSD',fields=["bid", "mid", "ask"]) # returns live data - fields is optional

tm.historical(currency='EURUSD,GBPUSD', date="2021-04-22",interval="daily", fields=["open", "high", "low","close"]) # returns historical data for the currency requested interval is daily, hourly, minute - fields is optional

tm.timeseries(currency='EURUSD', start="2021-04-20",end="2021-04-22",interval="hourly",fields=["open", "high", "low","close"]) # returns timeseries data for the currency requested interval is daily, hourly, minute - fields is optional

tm.cfd_list() # gets list of all cfds available

tm.currency_list() # gets list of all currency codes available add two codes to get code for currencypair ex EUR + USD gets EURUSD

Streaming Data

from tradermade import stream

# set streaming key - not the same as rest API key

stream.set_ws_key(streaming key)

stream.set_symbols("USDJPY,EURGBP")

stream.connect()

Contributing

For changes, please open an issue to discuss what you would like to change.

License

MIT

Metadata

Release files for tradermade 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tradermade 0.5.0
File Size Uploaded Provenance Actions
tradermade-0.5.0.tar.gz 4.5 kB Without provenance Details for tradermade-0.5.0.tar.gz

Release files / tradermade-0.5.0.tar.gz

Download URL tradermade-0.5.0.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
20fb9034012dcd372174dc9d7067427d2073af426ee741991c958d1551f4aec4
BLAKE2b-256 checksum
How to use checksums
236d0ce5af149501f118c8a827d1c9499cfca883fe1fa740a9a45e3e64741b00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.19.1 CPython/3.7.3

Security for tradermade 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page