What language are you using?
Here's a good example with PHP straight from btc-e
http://pastebin.com/8fbMCguM
Just put in your info and uncomment the last line by removing the forward slashes.
Comment
Uncomment: This will buy $1 USD worth when BTC is worth $100
This will buy $5 USD worth when BTC is worth $300
Here's a good example with PHP straight from btc-e
http://pastebin.com/8fbMCguM
Just put in your info and uncomment the last line by removing the forward slashes.
Comment
Code:
//$result = btce_query('Trade', array('pair' => 'btc_usd', 'type' => 'buy', 'amount' => 1, 'rate' => 100));
Code:
$result = btce_query('Trade', array('pair' => 'btc_usd', 'type' => 'buy', 'amount' => 1, 'rate' => 100));
This will buy $5 USD worth when BTC is worth $300
Code:
$result = btce_query('Trade', array('pair' => 'btc_usd', 'type' => 'buy', 'amount' => 5, 'rate' => 300));
Thanks for the reply. I am using Javascript. Sorry I guess I should have mentioned that. I don't really know how to translate that code to javascript though which is the biggest issue I've been having with all the examples.
Could I just get an example url that the bot would be sending? What in an example situation would go after "https://btc-e.com/tapi/"?
BTC-e's trade API requires you to do a HMAC SHA512 hash of your post data. As far as I know javascript does not do HMAC SHA512 hashes. Did you look at some of the language examples available? https://btc-e.com/api/documentation
Oh okay. Well that's disappointing. The reason I wanted to do it with javascript was because I wanted to make it in google sheets because it allows you to set up a timer that will trigger the script every set interval of time which would mean it would run off of google's servers for free and I wouldn't have to keep my computer running it. Also Since it's google sheets I could have it store the data in a spreadsheet. Damn so there is no way to get it to work in javascript?