Algorithmic-Trading | Algorithmic Trading software designed to make money
kandi X-RAY | Algorithmic-Trading Summary
kandi X-RAY | Algorithmic-Trading Summary
Algorithmic Trading software designed to make money on the equity market.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Algorithmic-Trading
Algorithmic-Trading Key Features
Algorithmic-Trading Examples and Code Snippets
Community Discussions
Trending Discussions on Algorithmic-Trading
QUESTION
I'm trying to import https://github.com/chrisconlan/algorithmic-trading-with-python in my code. I've never imported anything from GitHub before and have looked at various other questions that have been asked on Stack Overflow regarding this problem but it just doesn't work. When I try to run the 'portfolio.py' code for example I keep getting a ModuleNotFound error for 'pypm'. What exactly is the correct way to import such a module or the whole GitHub directory? I'm working with Visual Studio Code on Windows.
...ANSWER
Answered 2021-Mar-04 at 23:17You will need to pip install the module. In your case the command you would need to run is python -m pip install -U git+https://github.com/chrisconlan/algorithmic-trading-with-python
. Once you have done that you need to find the name of the module. You can do this with pip list
. Find the name of the module you just installed.
Then you just stick import
at the top of your code with the rest of your imports.
QUESTION
As a means of learning the very basics of algorithmic trading and OANDA, I found a tutorial on how to make a very basic trading algorithm to "practice" algorithmic trading. The only issue is that the tutorial uses OANDA's v1 REST API, whereas it now uses v20 REST API.
The Python module oandapyV20
seems to have replaced oandapy
, and it seems like there are methods that have become deprecated in the newest module. For example, on line #7 of the tutorial, it uses a method called get_history
, and that seems to be totally deprecated now from what I can tell.
My question is, what could I do to replace the get_history
method in particular, and are there any other sections of the code in the tutorial that someone who is familiar with the OANDA v20 REST API might see that are also going to be problematic/need to be totally reworked?
ANSWER
Answered 2020-Jun-26 at 02:51I believe you are looking for the History instrument via the candles
QUESTION
I'm trying to use algo-trading as described in this tutorial:
https://www.oreilly.com/learning/algorithmic-trading-in-less-than-100-lines-of-python-code
...ANSWER
Answered 2018-Jun-14 at 09:39see: Python code issues with Oanda API Rest V20 - Unable to run automatic code, v1 is deprecated. You need v20 support: https://github.com/benjaminchodroff/oandamomentum/blob/master/oandamomentumv20.ipynb
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Algorithmic-Trading
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page