Finance Professor Predicted Bitcoin Will Emerge as Digital Gold

Finance Professor Predicts Bitcoin Will Emerge as Digital Gold

The headline is pretty well a little rich. I mean Bitcoin or the like really does have a future. I just did my first transaction but I feel more secure using these methodologies versus traditional deposits in a bank or a broker. To be honest, I feel more comfortable doing this now with no need to have permissions to do this via sending photos for government compliance. Serious WTF? Here is the article but let me know what you think.

https://cryptoslate.com/finance-professor-predicts-bitcoin-will-emerge-as-digital-gold/amp/

Here are some hint I can offer in my latest video to show you how I converted cash to Bitcoin which ended in my crypto exchange of choice. This does cost 10% as a transaction fee so I would never recommend a high amount you cannot afford to lose. It just goes to show it can be done. Also, understand I can automate my trades as well since I can now verify my LIVE trade orders.

Here is that link.

http://quantlabs.net/blog/2018/07/how-i-deposited-cash-into-bitcoin-into-binance-with-an-atm-and-cash/

Just remember this will now be part of my Quant Analytics service against a LIVE account found in Binance! Do you know other services offer this instead of just pure education?

Thanks Bryan

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!

How I deposited cash into Bitcoin into Binance with an ATM and cash

 

How I deposited Bitcoin into Binance with an ATM and cash

Set of instructions on how to deposit cash into an crypto currency exchange with links

 

Bitcoin funding from ATM to Coinami Wallet to Coinbase

Helpful links from the video:

https://www.chainbits.com/tools-and-platforms/how-to-use-binance/

How To Buy Bitcoin

https://itunes.apple.com/us/app/coinomi-wallet/id1333588809?mt=8

https://itunes.apple.com/ca/app/google-authenticator/id388497605?mt=8

Montreal

https://support.binance.com/hc/en-us/articles/115000840592-Binance-API-Beta

https://support.binance.com/hc/en-us/articles/115000433432-Google-2FA-Guideline

 

 

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 funding from ATM to Coinami Wallet to Coinbase

So the Genius in me has figured out to transfer cash to Bitcoin to the Binance exchange. I am so smart. As hinted as I originally wanted to fund a Coinbase account for their Coinbase Pro, they wanted a photo ID. I ain’t comfortable with that (for now!)

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

Private funding but pricey

So I figured out that there is a way to do this privately via an ATM using a local service listed in the link above. You need to get a secure virtual wallet like Coinami which is listed above. It seems pretty simple to use but the ATM has difficulthy reading the Coinami wallet QR Code. The store clerk helped out by offering cheaper funding services. Thanks but no thanks. The transaction cost 10% which is pretty high. I thought it was 6% but it was only $20 CDN. As a result, I may get over the Photo ID thing to go with hopeful lower transaction costs on Coinbase. Can anyone offer insight on these transaction costs?

Once you got Bitcoin in your wallet, you can login into Binance to fund the account. It seems you just follow these instructions.

https://support.binance.com/hc/en-us/articles/115000622212-How-to-Register-and-Deposit-on-Binance

I can send form the Coinami wallet to Binance which apparently takes 15 minutes to 1.5 hours. It depends on how the transaction percolates through the Blockchain. More to come.

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!

Video for automated watchlist to put positions on or enter market

If you look at my pseudo code link at

Psuedo code for automated market entry open positions and exit for crypto currency 

Historical video

I made a video on this. I am sure the indicators will change along with the actual threshold. I try to explain this as market conditions can change in the near future. It is important to re-clibrate these thresholds in the near future.Just remember I am using RSI and does the http://quantlabs.net/blog/wp-admin/media-upload.php?post_id=69873&type=image&TB_iframe=1crypto pair outperform against a benchmark like BTC/USD.

 

 

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!

Ken Griffin’s $30B hedge fund has out performance vs industry this year

If you looked at these crummy returns, you would think this performance from the big dogs of the hedge fund industry is sort of sad. I am not an expert here but I am hoping to get my trading daily goals will be at least 0.5% psotive moves against my portfolio. However, when you have the most intelligent industry managers with such low performance, it make me wonder who are they to attack the crypto currency asset class space? I do see daily tiny opportunities to make the goals I would like to achieve. See this CNBC article here:

https://www.cnbc.com/amp/2018/07/12/ken-griffins-30-billion-hedge-fund-citadel-is-outperforming.html

Corrections help

Someone in my Telegram group corrected my views on both on Markowitz and Sortino. I like this type of criticism since it improves my view of algo trading. Also, you need to keep an open mind to this as well. If you want to see these corrections, go here:

http://quantlabs.net/blog/2018/07/corrected-markowitz-sortino-views-enhanced-portfolio-management/

This will greatly improve my results on the Quant Analytics service I am running.

Thanks Bryan

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!

Corrected Markowitz and Sortino views for optimal expected return

If you have seen any of my views of Markowitz for portfolio optimization for improved expected return.  You see them here:

Testing of Python Markowitz Portfolio packages

Deep testing of Python Markowitz Portfolio packages

You can always search for more with this

Here are some corrections on both Sortino and Markowitz from some an expert on my Telegram PRIVATE group:

Corrected view

I just wanted to mention a couple of things related to your recent posts.

The first is that Markowitz optimisations assume the returns are normally distributed (which is never the case in finance), so don’t expect to achieve the ‘expected’ return. Also bear in mind that such portfolio optimisation is intended to be done over much longer periods of time; doing it over a week or month is likely an exercise in futility because you’ll constantly be fitting your weights to very recent data which is almost guaranteed to change in the subsequent period due to the nature of financial markets.

In fact, many practioners have come up with improvements to Modern Portfolio Theory (which is certainly not modern these days), and many have also found equally-weighted portfolios to be preferable (e.g. https://www.diva-portal.org/smash/get/diva2:694576/FULLTEXT01.pdf). In any case, minimum variance optimizations should be preferred to mean-variance (aka Markowitz); the ‘expected’ return will likely be lower, but it will also be much more realistic than that of the Markowitz portfolio due to the greater out-of-sample persistence of risk-related measures such as variance when compared to those that contain information about absolute returns (e.g. mean of the return distribution).

The second is in relation to the Sortino ratio. You mentioned that the difference between it and the Sharpe is that the Sortino accounts for volatility. This is not the case; the Sortino is identical to the Sharpe except that it does not penalise positive deviation. For me personally, I prefer Sharpe because the objective function that I’m maximising is stability of returns. If you’re more interested in absolute returns, then Sortino is still preferable. But again, measuring over 7 or 30 days is essentially a random exercise.

Combining best performing forex pair should hugely increase your expected return and Sharpe Ratio

 

 

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!

unknown crypto currency error: Send order to Binance exchange with Python CCXT package 

Sending order to Binance exchange with Python CCXT package

To enable API, you login to follow these instructions  but understand working with unknown code from Binance crypto currency exchange. Realize that this is not an easy process like Coinbase. This is confirmation is not as slick as other brokers/exchanges I have worked with.

https://support.coinigy.com/hc/en-us/articles/360001144614-How-do-I-find-my-API-key-on-Binance-com-

https://support.binance.com/hc/en-us/articles/115000840592-Binance-API-Beta

Also for CCXT Python package, use this source code example

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

When I run this sample with test enabled, I get this return code:

{‘info’: {}, ‘id’: None, ‘timestamp’: None, ‘datetime’: None, ‘lastTradeTimestamp’: None, ‘symbol’: None, ‘type’: None, ‘side’: None, ‘price’: None, ‘amount’: None, ‘cost’: None, ‘filled’: 0.0, ‘remaining’: None, ‘status’: None, ‘fee’: None}

Confirmed Binance login

Do understand this account is unfunded so it does confirm to work when you enter the correct API and secret keys. If the secret or API keys were incorrect, you will get this exceptions:

File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ccxt/binance.py”, line 834, in handle_errors
raise ExchangeError(self.id + ‘: unknown error code: ‘ + body + ‘ ‘ + error)
ccxt.base.errors.ExchangeError: binance: unknown error code: {“code”:-1022,”msg”:”Signature for this request is not valid.”} -1022

In the Trenches with Crypto Currencies video replay

Here is an ongoing dialogue with my most helpful dialogue PRIVATE Telegram group:

for anyone with Binance API experience. I am using this example with binance for CCXT https://github.com/ccxt/ccxt/issues/2552

Some coding examples

It seems to login ok with the proper API keys. I test a fake one which resulted as an error as expected. When I try set up these coding parameters with:

symbol = ‘XZC/BNB’

#symbol = ‘BCH/BNB’

type = ‘limit’ # or ‘market’

side = ‘buy’ # or ‘buy’

amount = 1.0

price = 1.302 #0.060154 # or None

# extra params and overrides if needed

params = {

‘test’: True, # test if it’s valid, but don’t actually place it

}

order = exchange.create_order(symbol, ‘limit’, side, amount, price, params)

It results in which is nothing:

{‘info’: {}, ‘id’: None, ‘timestamp’: None, ‘datetime’: None, ‘lastTradeTimestamp’: None, ‘symbol’: None, ‘type’: None, ‘side’: None, ‘price’: None, ‘amount’: None, ‘cost’: None, ‘filled’: 0.0, ‘remaining’: None, ‘status’: None, ‘fee’: None}

My test account has a Bitcoin balance of 0.00176200. Do I need to choose another pair with a lower value? Do I need to only use a crypto currency pair with BTC not BNB?

Thanks

also, i tried this code:

symbol = ‘XLM/BTC’

#symbol = ‘XZC/BNB’

#symbol = ‘BCH/BNB’

type = ‘limit’ # or ‘market’

side = ‘buy’ # or ‘buy’

amount = 1.0

#price = 1.302 #0.060154 # or None

price =0.00003550

but now get response of: ccxt.base.errors.InvalidOrder: binance {“code”:-1013,”msg”:”Filter failure: MIN_NOTIONAL”}

any pointers?

—–

MIN_NOTIONAL hints at your account not having enough capital/margin for the transaction. Have you verified this?

I’d suggest you try a transaction with an amount of 0.01 or something like that ← tried this but it did not correct the problem

For the currency question based on the pair:

Yes, in this case you need BNB in order to convert it to XZC. So you would first have to convert your BTC to BNB using the BNB/BTC pair.

…Yes, it sounds like you’re hitting a minimum order size restriction. Don’t forget that order sizes are denominated in the base currency of the pair (XLM in this case). One XLM is only worth 27c, so try increasing the order size to 10, or 50 or something like that.

It looks the like the minimum order size on Binance is 0.002 BTC, so try an order size greater than 55 or 60.

Source code updates compared to a few weeks

I also got this CCXT exception:

ccxt.base.errors.ExchangeNotAvailable: binance POST https://www.binance.com/api/v1/order 400 Bad Request {“code”:-1104,”msg”:”Not all sent parameters were read; read ‘8’ parameter(s) but was sent ‘9’.”}

But here is the latest source code sample:

import ccxt

exchange = ccxt.binance({

‘apiKey’: , ## these appear to work with valid keys

‘secret’: ,

‘enableRateLimit’: True,

})

symbol = ‘XLM/BTC’

#symbol = ‘XZC/BNB’

#symbol = ‘BCH/BNB’

typ = ‘limit’ # or ‘market’

side = ‘buy’ # or ‘buy’

amount = 55 #1.0 tried 0.1 but not balid

#price = 1.302 #0.060154 # or None

price =0.00003550

# extra params and overrides if needed

#removed because of this exception

#ccxt.base.errors.ExchangeNotAvailable: binance POST https://www.binance.com/api/v1/order 400 Bad Request {“code”:-1104,”msg”:”Not all sent parameters were read; read ‘8’ parameter(s) but was sent ‘9’.”}

# File “testBinanceOrder.py”, line 26, in <module>

# order = exchange.create_order(symbol, ‘limit’, side, amount, price, params)

# NameError: name ‘params’ is not defined

params = {

‘test’: True # test if it’s valid, but don’t actually place it

}

order = exchange.create_order(symbol, typ, side, amount, price, params)

print(order)

note the new exception of Not all sent parameters were read; read ‘8’ parameter(s) but was sent ‘9’.”

i am sending a total of 9 of but what am I supposed to eliminate? i tired the extra params but that did not help

I finally got something working with this https://github.com/ccxt/ccxt/issues/298

Can you post verbose output for it?

Try a minimal example:

import ccxt
binance = ccxt.binance({
    "apiKey": "YOUR_KEY",
    "secret": "YOUR_SECRET",
    "verbose": True,
})
print(binance.create_market_sell_order('BTC/USDT', 0.00711675))


This also seems to work fine as well:

#print(binance.create_market_sell_order(‘BTC/USDT’, 0.0001))
print(binance.create_market_buy_order(‘BTC/USDT’, 0.00001))

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!

Machine Learning Made Easy For Quant Analytics

Despite what I reported yesterday, I always find an article that can contradict what is said. This particular article highlights machine learning/deep learning/artificial intelligent concepts I am of course not reporting about your little brother’s level of artificial intelligence. This for quant analytics.  Anyhow, forget that bad humor.

This article explains the difference while giving realistic examples of each of these concepts:

Three ways we teach machines are SupervisedUnsupervised, and Reinforcement Learning. T

These are well explained so you may want to read this article with focus if you do not know what machine learning is.

https://thenewstack.io/machine-learning-made-easy/

In case you missed this from yesterdays email with the latest updates in which I am working on:

No Webinar This Monday

As for the latest software developments, I was hoping to showcase some of the advancements I am making on the ‘watchlist.’ I have decided to separate this nerve center script in to two separate functions of market entries with market exits. We all know about the report, I am adding some more reliable indicators before trading entries can happen. As for the exit, Average True Range will always remain as the only indicator needed working no different than a trailing stop. Because I was not able to finish up the coding for a live demo, I am holding off until later in the week for one. It will be a last minute impromptu live session on my Youtube.com/quantlabs channel.

There would be a number of charts and spreadsheets that this new watchlist will generate. As usual, these files will become part of the Quant Analytics service.

>>>>> JOIN ANALYTICS NOW <<<<

I would also like to mention that you can expect some extra demo videos of how to use the crypto currency scripts coming. I will add these to the Python 3 Infrastructure Blocks with Crypto course. If needed, I will add extra months for the new content.

NOTE: Before I add this new content, I will keep the current price low but expect a significant price increase. Do remember this course is the backbone for the all current scripts I am running on the strategy I have been showcasing over the last number of months.

>>> BUY THIS PYTHON COURSE NOW <<<

Thanks Bryan

Buy This Python Course Now
Join the QUANT ANALYTICS for Traders
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!