This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.android.volley.toolbox.HurlStack; | |
import com.squareup.okhttp.OkHttpClient; | |
import java.io.IOException; | |
import java.net.HttpURLConnection; | |
import java.net.URL; | |
/** | |
* An {@link com.android.volley.toolbox.HttpStack HttpStack} implementation which | |
* uses OkHttp as its transport. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#server side: | |
#server live directory: /var/www/domain.com | |
#server repository: /var/repo/site.git | |
1. clone project from git/bitbucket into /var/www/domain.com or init the folder by "git init". | |
2. go to /var/repo/site.git and init the folder as git bare | |
$git init --bare | |
--bare means that our folder will have no source files, just the version control. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests as req | |
import json | |
import time | |
import MetaTrader5 as mt5 | |
order = json.loads('{ "status": "NEW", "type": "BUY", "ticker": "EURUSD", "take_profit": "1.0820987897891143", "stop_loss": "1.0819768153163283" }') | |
# display data on the MetaTrader 5 package | |
print("MetaTrader5 package author: ", mt5.__author__) | |
print("MetaTrader5 package version: ", mt5.__version__) |