Tag Archives: API

More hot #cryptocurrency pairs for today. It was a tough day but note that #coinmarketcap charges now for #api access

More hot pairs for today. It was a tough day but note that charges now for access

[igp-video src=”https://scontent.cdninstagram.com/vp/8fd0f042bdb7d3c17afc5209b422c58b/5C72D440/t50.2886-16/37596626_2024077130950419_2533627639139139584_n.mp4?_nc_ht=scontent.cdninstagram.com” poster=”https://scontent.cdninstagram.com/vp/ae11dc142d6e218c97db0e0935c0da36/5C73147E/t51.2885-15/e15/s640x640/37983845_280687872736985_6767407877557583872_n.jpg?_nc_ht=scontent.cdninstagram.com” size=”large”]
More hot #cryptocurrency pairs for today. It was a tough day but note that #coinmarketcap charges now for #api access

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!

Check out on my #Facebook quantlabs Page videos on the latest results with #bitcoin cash in switching from binance to #coinbase #cryptocurrency #api

Check out on my quantlabs Page videos on the latest results with cash in switching from binance to

[igp-video src=”https://scontent.cdninstagram.com/vp/77361741c355578d1ae22c27226c555e/5C730063/t50.2886-16/37638018_368470643684916_2797530173770039296_n.mp4?_nc_ht=scontent.cdninstagram.com” poster=”https://scontent.cdninstagram.com/vp/25642c3491abe82191ce3ba092712894/5C732A10/t51.2885-15/e15/s640x640/37050641_191748271687095_2812798284291112960_n.jpg?_nc_ht=scontent.cdninstagram.com” size=”large”]
Check out on my #Facebook quantlabs Page videos on the latest results with #bitcoin cash in switching from binance to #coinbase #cryptocurrency #api

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!

Webinar live at 7pm EDT: how I funded a #bitcoin wallet and did automated #cryptocurrency automated trades with binance #api

Webinar live at 7pm EDT: how I funded a wallet and did automated automated trades with binance

[igp-video src=”https://scontent.cdninstagram.com/vp/911fb3560bb1be4db75d1de08ff3214d/5C72AA74/t50.2886-16/36910511_210423326229596_8575777039762587648_n.mp4?_nc_ht=scontent.cdninstagram.com” poster=”https://scontent.cdninstagram.com/vp/ec3e7fcb707c2bfaab14fd599da1d6b8/5C73180D/t51.2885-15/e15/s640x640/37165155_1032229830278480_2690555603717193728_n.jpg?_nc_ht=scontent.cdninstagram.com” size=”large”]
Webinar live at 7pm EDT: how I funded a #bitcoin wallet and did automated #cryptocurrency automated trades with binance #api

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 live webinar on #Facebook Live on July 24 7 PM eastern daylight time how I funded #bitcoin transferred to largest #CryptoCurrency Exchange and did #API automated buy and sell order #Python

New live webinar on Live on July 24 7 PM eastern daylight time how I funded transferred to largest Exchange and did automated buy and sell order

[igp-video src=”https://scontent.cdninstagram.com/vp/9f53a20406ff3559824698b2db176475/5C73056F/t50.2886-16/37215472_202705660420836_3290371297254572032_n.mp4?_nc_ht=scontent.cdninstagram.com” poster=”https://scontent.cdninstagram.com/vp/c96256bbc41bab212e87e9fa1cded670/5C72E1BB/t51.2885-15/e15/s640x640/36745506_450690032071131_8500916489937747968_n.jpg?_nc_ht=scontent.cdninstagram.com” size=”large”]
New live webinar on #Facebook Live on July 24 7 PM eastern daylight time how I funded #bitcoin transferred to largest #CryptoCurrency Exchange and did #API automated buy and sell order #Python

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!

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

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

# Gist example of IB wrapper …
#
# Download API from http://interactivebrokers.github.io/#
#
# Install python API code /IBJts/source/pythonclient $ python3 setup.py install
#
# Note: The test cases, and the documentation refer to a python package called IBApi,
# but the actual package is called ibapi. Go figure.
#
# Get the latest version of the gateway:
# https://www.interactivebrokers.com/en/?f=%2Fen%2Fcontrol%2Fsystemstandalone-ibGateway.php%3Fos%3Dunix
# (for unix: windows and mac users please find your own version)
#
# Run the gateway
#
# user: edemo
# pwd: demo123
#
# Now I'll try and replicate the time telling example
from ibapi.wrapper import EWrapper
from ibapi.client import EClient
from threading import Thread
import queue
class TestWrapper(EWrapper):
"""
The wrapper deals with the action coming back from the IB gateway or TWS instance
We override methods in EWrapper that will get called when this action happens, like currentTime
"""
## error handling code
def init_error(self):
error_queue=queue.Queue()
self._my_errors = error_queue
def get_error(self, timeout=5):
if self.is_error():
try:
return self._my_errors.get(timeout=timeout)
except queue.Empty:
return None
return None
def is_error(self):
an_error_if=not self._my_errors.empty()
return an_error_if
def error(self, id, errorCode, errorString):
## Overriden method
errormsg = "IB error id %d errorcode %d string %s" % (id, errorCode, errorString)
self._my_errors.put(errormsg)
## Time telling code
def init_time(self):
time_queue=queue.Queue()
self._time_queue = time_queue
return time_queue
def currentTime(self, time_from_server):
## Overriden method
self._time_queue.put(time_from_server)
class TestClient(EClient):
"""
The client method
We don't override native methods, but instead call them from our own wrappers
"""
def __init__(self, wrapper):
## Set up with a wrapper inside
EClient.__init__(self, wrapper)
def speaking_clock(self):
"""
Basic example to tell the time
:return: unix time, as an int
"""
print("Getting the time from the server… ")
## Make a place to store the time we're going to return
## This is a queue
time_storage=self.wrapper.init_time()
## This is the native method in EClient, asks the server to send us the time please
self.reqCurrentTime()
## Try and get a valid time
MAX_WAIT_SECONDS = 10
try:
current_time = time_storage.get(timeout=MAX_WAIT_SECONDS)
except queue.Empty:
print("Exceeded maximum wait for wrapper to respond")
current_time = None
while self.wrapper.is_error():
print(self.get_error())
return current_time
class TestApp(TestWrapper, TestClient):
def __init__(self, ipaddress, portid, clientid):
TestWrapper.__init__(self)
TestClient.__init__(self, wrapper=self)
self.connect(ipaddress, portid, clientid)
thread = Thread(target = self.run)
thread.start()
setattr(self, "_thread", thread)
self.init_error()
if __name__ == '__main__':
##
## Check that the port is the same as on the Gateway
## ipaddress is 127.0.0.1 if one same machine, clientid is arbitrary
app = TestApp("127.0.0.1", 4001, 10)
current_time = app.speaking_clock()
print(current_time)
app.disconnect()

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!