Tag Archives: API

Working Oanda v2 API tips to work with Python

 

I still find thi s broker really tough to understand as explained below. As a result, my views of Oanda API has not changed. I am trying to help out those Americans who want to do algo trading. It seems Oanda is the last broker of it’s kind to support Python API for forex and CFD for US residents. Also, they are still a market maker so watch out in terms of trusting them. Based on my experience below, nothing huge has improved in terms of getting things working via their API.  As you will read, the second link was helpful to make it work. The question is how long will these examples will still work until Oanda decide to change their API functionality yet again.

I think I finally got Oanda v20 running with Python. This broker is a complete nightmare with the various document (or lack of) to install/implement via GitHub. I tried many different ways but you may want to visit these links below:

https://github.com/oanda/v20-python-samples

You will need to ensure that you create your broker account and API tokens. These will be needed for the examples below. The link above provides a convenient Python script to create your V20.conf file. You may want to follow that process. There are also mentions of needing different virtual environments. I found this is not needed with the example code below.

https://github.com/hootnot/oanda-api-v20

The examples found in this link seems to work as long as your provide a valid V20 API token and account Id. One confusing part is use the AccountID which is the active_account found in the .conf file. I never used the username in any of the example above. As I am using Mac OS where the .v20.conf is created and stored in /Users/currentuser

 

The next though part is to filter through the response data.

As for the backtrader Python package, I did not find a Quickstart Tutorial for how to implement Oanda. Either that or it was too involved. I found another forum posting so I just decided to go native Oanda instead of using another Python package for access.

Warning on your sleazy forex broker account and crypto currency exchange 

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Is Coinbase easiest for crypto currency funding with new exchange Coinbase Pro API

Is Coinbase easiest for crypto currency funding with new exchange Coinbase Pro API

Screw Coinbase. I think the requirement to fund Coinbase with photo ID is something I am not comfortable.

https://support.coinbase.com/customer/en/portal/articles/2106149-payment-methods-for-canadian-customers-

As a result, I am going the anonymous route using LocalCoin. It seems a little safer without the need to sending out unnecessary documents to an exchange like Coinbase.

How To Buy Bitcoin

It is little more expensive to go anonymously but for now, I  feel more comfortable with this route.

I have an iPhone which means the future of crypto currency exchanges will be measured on their native mobile app support on something like Apple IOS. It seems at the time of this writing, there are only 2 exchanges worthy of noting who are on this. This includes both Coinbase and Huobi in Asia. Since Coinbase is trustworthy since they are regulated out of USA, they might be the ones to watch for newbies wanting to fund an account safely. It will get interesting to see the future how the new exchange Coinbase Pro will do as it appears to be renamed from the old GDAX. As a result, I may focus on Coinbase for small funding of an account. I also want to test their functionality for both orders and data. As you know, I have focused both on Binance and Bitmex but it makes sense to use a more trustworthy exchange like Coinbase. This is especially true when you are starting out with live money. Always remember to fund an exchange with a tiny amount you can risk to lose. For me, it will be tiny amounts like $20 Canadian. As it stands, I just want to focus only connectivity testing and basic low risk automated strategy that I have built over the last few months. This Coinbase Pro might not be the smartest choice for now, but it should be the simplest to test with live money,

As for the support with the CCXT Python package, I have found some sources that seem to make life easier when switching over to Coinbase Pro. It is confirmed to work with old GDAX as hinted in these links:

New Exchange: Coinbase #466

https://github.com/ccxt/ccxt/issues/466

New Exchange: Coinbase Pro #3210

https://github.com/ccxt/ccxt/issues/3210

https://github.com/ccxt/ccxt/pull/3214

GDAX Migration to Coinbase Pro 

https://github.com/ccxt/ccxt/issues/3216

The volume for Coinbase Pro is tiny as compared to larger exchanges like Binance. It seems this will raise a concern for volume, slippage. Liquidity and so on. This is why you need to fund with a tiny amount you are willing to lose on.

https://coinmarketcap.com/exchanges/volume/24-hour/

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

quant elite with new FXCM API demo 30 min video for Pythoan Algo Trading course

 

I just posted a new ‘Module’ into my Python 3 Infrastructure Blocks with Crypto course which includes the description below. This has been added to the quant elite membership explained below.

I demonstrate how to use market data, historical data, and order type using the new FXCM API for forex and CFD trading. This is 100% in Python using a wrapper for their REST API.

This is a 30 minutes video to show it seems to run almost flawlessly.

You can get more info on this course I mentioned above

New Python3 Infrastructure Bootcamp for May 12

I have decided to make set May 12 for my LIVE bootcamp Q&A on this course. I will post a survey for this on my Facebook group at https://www.facebook.com/groups/quantlabsnet/

Also, if you want a better a better to get all three of my courses, you should try out my:

Quant ELITE 3 month trial  <– Check the store for this

or

Quant ELITE annual

Full details of the courses and other features in the above 2 links.

.

Thanks Bryan

course and quant analytics with live demo of trading charts and Python source code

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

New ONLINE STORE for all courses and membership services including dukascopy api and jforex platform

YouTube Preview Image

PURCHASE STORE LINKS HERE

POPULAR Single course

NOTES: If you are new to algo trading but want an instant ‘primitive trading’ system, you may be interested in our most popular course

Python 3 Infrastructure Blocks with Crypto
This course has 4 videos files which will introduce you to the Dukascopy API and JForex platform. It also includes an introduction to Visual JForex for non programmers. Note the advanced API required Java knowledge. Also, be aware that Dukascopy the forex broker does not take US residents as customers.
Price: $197.00

Quant ELITE memberships

NOTES: All courses include source code and source code video walkthroughs.

No  automatic recurring billing takes place after subscription term is completed. Prices may go up if you wish to continue.

ELITE Membership 3 month trial
All courses included with full access to Quant Analytics. This includes courses on Python 3 Infrastructure Algo Trading, Interactive Brokers, API, with futures/options fundamental analysis.
Price: $697.00

ELITE Membership

vAcademy, Books tips that helped me out, All my notes thus far on building this internal trading system called AK47, Some Excel files to assist my data analytics, Complete links to my math study of Khan Academy, R source code files for all lessons. Bonus and exclusive material: Excel Stock screeners, .NET C# Source code files , and Database examples with schemas for SQL Server. Many more many examples including source code and videos for your trading operations. Access to monthly contributions via monthly subscription.

Price: $1,497.00
Price: $2,787.00

Quant ANALYTICS membership

NOTES: This is monthly billed

Quant Analytics

Full service analysis of stock and currencies generated by my algo trading system

Price: $97.00
Price: $97.00

Single courses

Dukascopy JForex for programming forex and CFDs

NOTE: This course has 4 videos files which will introduce you to the Dukascopy API and JForex platform. It also includes an introduction to Visual JForex for non programmers. Note the advanced API required Java knowledge. Also, be aware that Dukascopy the forex broker does not take US residents as customers.

Dukascopy Visual JForex and API Java forex programming
This course has 4 videos files which will introduce you to the Dukascopy API and JForex platform. It also includes an introduction to Visual JForex for non programmers. Note the advanced API required Java knowledge. Also, be aware that Dukascopy the forex broker does not take US residents as customers.
Price: $137.00

 

Legacy Courses

Complete R (version 2.15) courses

NOTES: This R course is built from an old version R 2.15. For some reason, this is still in demand but realize how old this course is.

Complete R Courses
Complete set of courses including: Technical Analysis in R, R Course with Quant including GARCH, R Course with Quant, R Course with Mean Reversion and Pair Trading, R Course with Arbitrage and Volatility
Price: $137.00

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Interactive Brokers API native Python 3 is not stable yet

Running Interactive Brokers with native Python support seems to be a pain in the ass. As I see it, I will continue with the methodologies I show in my Interactive Brokers API course. It seems that using Python 3 on Mac is a real pain so I am not bothered to fully implement or install until there is an official document to show to to implement. It seems that this current API version is not fully stable but only experimental.

What I will do

As for me, I will continue with the same path in using Redis NOSQL for the central data hub. We can connect Redis with either C++ or Java to interface with Interactive Brokers Treader Workstation (TWS). I shall stick with this for many reasons as we currently sit.

I have included some useful URL tips if you are interested. Pleaseunderstand I get frustrated with all these unofficial ways to implement.  I will just stick with the current non Python techniques I have.

https://qoppac.blogspot.ca/2017/03/interactive-brokers-native-python-api.html

Interactive Brokers makes new API available for Python programmers

https://groups.io/g/twsapi/topic/how_to_install_python_api_on/4852334?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,20,4852334

Interactive Brokers makes new API available for Python programmers

https://www.elitetrader.com/et/threads/ib-native-python-api-for-dummies.307989/

I am sure this will get hammered out over the next few months. Note that this API client release (with the Python client) is not stable. As a result, I will not even enter the fray of playing around with this until there is a stable release you can download.

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Create powerful trading robots with JForex API

Create powerful trading robots with JForex API

Robots are more and more commonly used in the financial markets.
Have you ever dreamed creating your own automatic trading algorithm?
This presentation will give you a beginner’s guide to one of the most sophisticated Java trading platforms – JForex.
We will implement a simple robot in Java using the JForex API. After creation we will test and optimize it for trading the EUR/USD market.

You will be introduced into the following topics and techniques:

– Foreign exchange market (Forex)
– Broker Dukascopy and their main concept of the JForex platform
– Robot structure in Java using JForex API
– Definition of a trading setup
– We implement the robot and compile it
– Back testing of our robot
– Optimization of the robot
– We start the robot on a server for fully automated trading
– Quick resources guide, pros and cons of algorithmic trading, outlook

Within 90 min you will get an idea how robot Java programming works on JForex and why this API helps you a lot while programming. After this little approach you might be able to dare the next step: develop your own simple robot!

(let me know if you would be interested in doing a webinar on this topic)

You can find my final presentation here  https://prezi.com/p/ec_yf95vng9y/
You can download the latest CandleFool Robot for JForex3 here:
http://www.stash.de/vortrag/180129/CandleFool0_7.java

#1 goal in forex trading is not to lose money but profit is 2nd

64 bit version Dukascopy Forex tips with Bitcoin crypto addition

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Learn how to work Interactive Brokers API like ib java test client demo

 

4 5 hr workshop live recorded to learn how to work Interactive Brokers API and TWS

Get your latest deal now with full details below
Buy Now
A super duper cheap deal for Interactive Brokers API and TWS
https://quantlabs.net/blog/2018/01/4-5-hr-workshop-live-recorded-learn-work-interactive-brokers-api-tws/
Video details:Interative Brokers 4.5 hour Workshop Bootcamp

This is an eire 4.5 hour online LIVE workshop of the following online course

INTERACTIVE BROKERS API

Source code sample and files can be found  by purchasing here

 

PREREQUISITES AND REQUIREMENTS

Depending on your language of choice, these demos with source code are useful for those who want take advantage of  the Interactive Bokers TWS software.

WHAT WILL YOU LEARN?

This course will give you an overview of the critical components needed for your own algo trading system. This will give thought on pieces that will make you successful as indie automated trader to control your own destiny.

MODULE 1: WHY REDIS

Here is an introduction to the world’s in memory NOSQL database. This demo introduce why it should be used with source code.

MODULE 2:  WHY PYTHON FOR MY ALGOS AND AUTOMATED TRADING

Simple demo of Interactive Brokers Python integration with iBPy package. Sample code incuded.

MODULE 3: DEMO OF JAVA AND PYTHON WITH REDIS PUB SUB

MODULE 4: IB JAVA TEST CLIENT DEMO

IB Java Test Client demo

Netbeans IDE Java project ibredis2-tar

LRANGE Python demo found in this directory redis-chat

MODULE 5: JAVA PUSH LPUSH PYTHON LRANGE

Java Push LPUSH Python LRANGE

MODULE 6: PYTHON PUB TO JAVA SUB IB TWS ORDER

Python pub to Java sub IB TWS Order

Python code under

Netbeans Java Project

MODULE 7: TWS API C++ LIBRARY AND IB C++ ON POSIX MAC

C++ source is made available from IB API sample package as hinted in video

 

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Bitcoin HFT client using FIX vs REST API

Bitcoin HFT client using FIX vs REST API

Is it FIX protocol or REST API to implement a crypto currency trading system

https://bitcointalk.org/index.php?topic=1059302.0

https://github.com/Aurora-Team/BitcoinExchangeFH

https://github.com/timmolter/XChange/wiki/Exchange-support

https://github.com/thrasher-/gocryptotrader

https://github.com/ctubio/Krypto-trading-bot

 

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Demo of Java API running Dukascopy Jforex platform for algo forex trading

 

  • Demo of Java API running Dukascopy Jforex platform for algo forex trading`
  • Command and control demo from Netbeans IDE Java can interface with JForex
  • Mentioned API strategy example can be found here
  • https://www.dukascopy.com/wiki/en/development/strategy-api/strategy-examples/sma-crossover#visual-version
  • https://youtu.be/9nG9774vt5o

 

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!