summaryrefslogtreecommitdiffstats
path: root/oanda.scm
diff options
context:
space:
mode:
authormsglm <msglm@techchud.xyz>2024-04-03 13:06:38 -0500
committermsglm <msglm@techchud.xyz>2024-04-03 13:06:38 -0500
commite8c7a4c52e4de0b852afcc421caca0c187bbc3f5 (patch)
tree10b49762182ccdc0f5b8e76254487cd2da8b3cde /oanda.scm
parent09f05e820846f339c74850b042dda08e2c88c557 (diff)
downloadguix-msglm-e8c7a4c52e4de0b852afcc421caca0c187bbc3f5.tar.gz
guix-msglm-e8c7a4c52e4de0b852afcc421caca0c187bbc3f5.tar.bz2
guix-msglm-e8c7a4c52e4de0b852afcc421caca0c187bbc3f5.zip
add oanda python api support
Diffstat (limited to 'oanda.scm')
-rw-r--r--oanda.scm29
1 files changed, 29 insertions, 0 deletions
diff --git a/oanda.scm b/oanda.scm
new file mode 100644
index 0000000..881b37b
--- /dev/null
+++ b/oanda.scm
@@ -0,0 +1,29 @@
+(define-module (oanda)
+ #:use-module (gnu packages python)
+ #:use-module (gnu packages python-web)
+ #:use-module (gnu packages python-xyz)
+ #:use-module (guix build-system python)
+ #:use-module (guix build-system pyproject)
+ #:use-module (guix build utils)
+ #:use-module (guix packages)
+ #:use-module (guix download)
+ #:use-module ((guix licenses) :prefix license:)
+)
+
+(define-public python-oanda-v20
+ (package
+ (name "python-oanda-v20")
+ (version "3.0.25.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "v20" version))
+ (sha256
+ (base32 "1wll5gw6mqpfz3mc1k5bz1xgc7d11y4ihvvqqfsy9284jxv8zwgv"))))
+ (build-system pyproject-build-system)
+ (propagated-inputs (list python-requests python-ujson python-pyyaml))
+ (home-page "https://github.com/oanda/v20-python")
+ (synopsis "OANDA v20 bindings for Python")
+ (description "OANDA v20 bindings for Python")
+ (license license:expat)))
+