Created
July 10, 2014 12:01
-
-
Save JamieCressey/6f12f4c25f67b614003f to your computer and use it in GitHub Desktop.
Pseudocode BTCJam Bot
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
$investments = curl(https://btcjam.com/api/v1/listings?appid=[APP ID]&secret=[APP Secret]) \\ you get the idea | |
foreach($investments as $investment) { | |
if(!$db->query(FIND THIS INVESTMENT IN MY DB)){ | |
curl(https://btcjam.com/api/v1/investments&listing_id=$investment['id']&amount=0.000001); | |
$db->insert(WE HAVE INVESTED!); | |
}else{ | |
continue; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment