Category Archives: Uncategorized

Python coding limits for Linux service and cronjob

This is a running list to understand the caveats with these Linux things and Python coding.

Here are some of the latest

https://stackoverflow.com/questions/8685695/how-do-i-run-long-term-infinite-python-processes

This above recommended this http://supervisord.org/

Here were some recommended ways to launch and run Supervisord

http://thedjbway.b0llix.net/services.html or http://smarden.org/runit/runscripts.html

Both were found under “Examples of Program Configurations” under Preprocess at supervisord.org

https://stackoverflow.com/questions/20170251/how-to-run-the-python-program-forever

There are some strict best practices you may to learn about:

et some free tech trading book https://quantlabs.net/

Talk to me about your trading https://quantlabs.net/questions/

Get lifetime access to our private chart server? https://quantlabs.net/dvd/

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!

Happy New Year: Nothing but short trading

I think 2021 could be tougher for most people. Happy News year but we should start trading shorts

Get some free tech trading book https://quantlabs.net/

Talk to me about your trading https://quantlabs.net/questions/

Get lifetime access to our private chart server? https://quantlabs.net/dvd/

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!

Use Waitress WSGI server instead of Python Flask development server

When I launch the default Flask development server, I get this warning

WARNING: Do not use the development server in a production environment.    
Use a production WSGI server instead.

As a result, there are some options to overcome this. You can use a package called Waitress as documented in the offical Flask documents

https://flask.palletsprojects.com/en/1.1.x/tutorial/deploy/

But this is the best answer with coding samples embedded in your Flask server code

One option is to use Waitress, a production WSGI server. Other servers include Gunicorn and uWSGI.

https://stackoverflow.com/questions/51025893/flask-at-first-run-do-not-use-the-development-server-in-a-production-environmen

For my MacOS, the above does not work it seems with the serve package portion not to be found. Waitress appeears to work on CentOS 7 Linux. This includes these Python import commands:

from waitress import serve

These are WSGI alternatives to Waitress

https://flask.palletsprojects.com/en/master/deploying/wsgi-standalone/

As a result, I am trying

https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-gunicorn-and-nginx-on-ubuntu-18-04

This links appears to work fine with an introduction to set up as a service within your Linux environment. This uses Gunicorn.

Also, my hosting provider KnownHos preferred me to use daemons/service instead

https://github.com/torfsen/python-systemd-tutorial

This GitHub post recommended to pip install systemd. This failed both on my Mac environment and regular user Linux account. It installed fine with root access.

Another tech at my hosting company suggested setting up a Python service with

How To Setup Autorun a Python Script Using Systemd

Note the comment of:

A fine and simple to follow tutorial. I would add a couple of caveats – with the .service file as written the python script will be run as root and this may have unintended consequences. Also the environment will be different from that for a normal user. To fix add the lines User=username and Group=groupname before the ExecStart line. To add environment variables expected by the script add the line Environment=”variable_name=variable_value” before the ExecStart line.

to run as non root follow

https://superuser.com/questions/1098167/how-to-run-service-not-as-root

Is Google PubSub better ?

https://stackoverflow.com/questions/12232304/how-to-implement-server-push-in-flask-framework

https://pypi.org/project/Flask-PubSubDecorator/

More options

https://stackoverflow.com/questions/12232304/how-to-implement-server-push-in-flask-framework

https://github.com/chrisliatas/pubsub-monitor

https://github.com/mercadona/rele

Get some free tech trading book https://quantlabs.net/

Talk to me about your trading https://quantlabs.net/questions/

Get lifetime access to our private chart server? https://quantlabs.net/dvd/

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 went up $2k so I posted the craziest daily returns in my private chat server

I have posted the craziest set of  returns of yesterday. Find these in the QLN Private Chat Server. It was a crazy high amount for 1 day. Why? Bitcoin went up 2k in the last few days.

These results were posted in my Private Chat Server only. Just remember the results from these bot are theoretical but still uses real market data. Expect more exclusive content posted there.

If you want to join this Chat Server which has no 3rd party tracking. I wil be closing the WhatsApp chat group as well to migrate those who want to be moved over.

You can join here with some extra training goodies to get access to this Private Chat server. Lifetime access is given access as well!

dvd

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 weak is trading US dollar today

I would think the USA dollar would show some trading strength. I am not seeing but how is the British Pound doing during these Brexit negotiations.

Get some free tech trading book https://quantlabs.net/

Talk to me about your trading https://quantlabs.net/questions/

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 trading alt coins return 5% today while everything else goes to pot?

Well sit down sunny and let the fat old man tell you why . hear are some trading tips.

Get some free tech trading book https://quantlabs.net/

Talk to me about your trading https://quantlabs.net/questions/

Interesting in getting these live trading signals https://quantlabs.net/elite/

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!

Back to normal USA markets trading struggle. Why?

Everything is mixed so I shall try explain from a global view. Just remember to follow the hot trading capital order flow.

Get some free tech trading book https://quantlabs.net/

Talk to me about your trading https://quantlabs.net/questions/

Interesting in getting these live trading signals https://quantlabs.net/elite/

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!

Crypto trading bot script of BTC ETH and defi coin signals

This is a quick demo to show you how this trading bot client that receives of email signals to trading automatically on your behalf. This works with both Kraken exchange (for BTC and ETH) and Binance futures.

If you are interested int the service, join NOW

Prices go up after Cyber Monday

Or answer these questions to enhance your trading? https://quantlabs.net/questions/

Or get free tech trading PDFs? https://quantlabs.net/

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!

Capital requirements for crypto copy trading with HUGE potential

Here is a video I made about cryptocurrency crypto trading question from someone:

Thank you for your information in the zoom meeting the other day. I would like to know your service cost provided and the minimum capital requirement to invest in Crypto. Per our meetup the other day, you told me your system is to provide somekind of copy trade thru some broker like Binance or Kraken. As in Malaysia I know the broker is LUNO. wondering if you copy trade signal could link up with Luno. My initial intention was to learn algortithm from your course work to trade in equity or etf. I understand you told me now the crypto is better now. Hence I am thinking if I could try some on Crypto. As I could not afford big capital in Crypto hence I would like to know what is the investment capital recomended by you as well as your service cost per year.

Thanks Bryan

P.S. Get in your questions in building custom trading solutions: https://quantlabs.net/questions/

More details to come on this….
Get some free trading books https://quantlabs.net/

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 adds 1k but these trading #bots report awesome

Bitcoin has reported reports of awesome returns. So have the trading bots. See how you can benefit from it.

want some trading tech secret books for free? https://quantlabs.net/
Enhance your trading performance by talking to myself? https://quantlabs.net/questions/

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!