sudo apt install zsh
(Linux)
Mac- Mac comes default with zsh. No need to install seperately
chsh -s /usr/local/bin/zsh
// Use this to sign postman requests to the KuCoin API | |
// The following environmental variables should be set in postman, API_KEY, KUCOIN_URL, PASSPHRASE, API_SECRET | |
// The requests needs to have the URL like in the example, {{KUCOIN_URL}}/api/v1/sub/user. "{{KUCOIN_URL}}" as-is. | |
// Kucoin API Key version 2. For version 1, you need to pass plain text of the passphraseHash instead of hash | |
const apiKey = postman.getEnvironmentVariable("API_KEY"); | |
const secret = postman.getEnvironmentVariable("API_SECRET"); | |
const passphrase = postman.getEnvironmentVariable("PASSPHRASE"); | |
const url = postman.getEnvironmentVariable("KUCOIN_URL"); |
// Binance Futures API - Use this Pre request script in postman to generate the signature and timestamp query string parameters. | |
// The postman collection can be downloaded from https://github.com/binance/binance-api-postman. Please note that this collection requests have signature and timestamp parameters enabled within each request. Disable in the individual request as this script will properly generate these parameters. | |
const secret = postman.getEnvironmentVariable("binance-api-secret"); | |
const timestamp = Date.now(); | |
let [,params]=request.url.split("?") | |
params+= "×tamp="+timestamp.toString() | |
const signHash = CryptoJS.HmacSHA256(params, secret); | |
pm.request.addQueryParams({ |
//@version=5 | |
strategy("BB strategy Production", overlay=true, initial_capital=100, commission_type=strategy.commission.percent, commission_value=0.04) | |
// truncate() truncates a given number | |
// to a certain number of decimals | |
truncate(number, decimals) => | |
factor = math.pow(10, decimals) | |
int(number * factor) / factor | |
_close = close |
EXTRACTED_LOCATION=./extracted | |
TMP=tmp | |
TOOLS_LOC=<<Android_SDK_LOC>>/Android/sdk/build-tools/29.0.3 | |
OP_FILE=~/Desktop/tryThis.apks | |
rm -rf $OP_FILE | |
rm -rf $TMP && mkdir $TMP | |
echo Copying everything to $TMP folder.. |