Last active
May 26, 2021 00:04
-
-
Save jensdon/417918263bbc1d4af2426ee157cc55c2 to your computer and use it in GitHub Desktop.
Use the Nefertiti crypto bot and trade on all the ETH-XXX market pairs with a single click.
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
# Trade on all the ETH-XXX market pairs. | |
# Written bij Jens Don <info AT jensdon DOT nl> | |
# Place this script in the same folder as cryptotrader.exe | |
# Example: ./ETH-XXX.ps1 -exchange Bittrex -price 0.05 -apikey X -apisecret X -pushoverappkey X -pushoveruserkey X | |
Param( | |
[Parameter(Mandatory=$True)][string]$Exchange, | |
[Parameter(Mandatory=$True)][string]$Price, | |
[Parameter(Mandatory=$True)][string]$ApiKey, | |
[Parameter(Mandatory=$True)][string]$ApiSecret, | |
[Parameter(Mandatory=$True)][string]$PushoverAppKey, | |
[Parameter(Mandatory=$True)][string]$PushoverUserKey | |
) | |
$Markets = & ./cryptotrader.exe 'markets', --exchange=$Exchange | |
$Markets = ConvertFrom-Json $Markets | |
foreach ($Market in $Markets.name) | |
{ | |
$Quote = & ./cryptotrader.exe 'quote', --exchange=$Exchange, --market=$Market | |
if($Quote -eq 'ETH'){ | |
& ./cryptotrader.exe 'cancel', --exchange=$Exchange, --market=$Market, --api-key=$ApiKey, --api-secret=$ApiSecret, --api-secret=$ApiSecret, --pushover-app-key=$PushoverAppKey, --pushover-user-key=$PushoverUserKey, --side=buy | |
& ./cryptotrader.exe 'buy', --exchange=$Exchange, --market=$Market, --api-key=$ApiKey, --api-secret=$ApiSecret, --api-secret=$ApiSecret, --pushover-app-key=$PushoverAppKey, --pushover-user-key=$PushoverUserKey, --top=1, --repeat=1, --price=$Price --quote=ETH | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment