Skip to content

Instantly share code, notes, and snippets.

@JamieCressey
Created July 10, 2014 12:01
Show Gist options
  • Save JamieCressey/6f12f4c25f67b614003f to your computer and use it in GitHub Desktop.
Save JamieCressey/6f12f4c25f67b614003f to your computer and use it in GitHub Desktop.
Pseudocode BTCJam Bot
$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