Bitcoin Forum
May 09, 2024, 11:44:41 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: BTC-E API Java Help Please (Willing to Pay)  (Read 2657 times)
theokep (OP)
Newbie
*
Offline Offline

Activity: 43
Merit: 0


View Profile
December 10, 2013, 03:49:45 AM
 #1

Hello,
I have written a small program for personal use in Java but it is missing one key piece of functionality. Namely, it needs the ability to query the BTC-E API for price information on bitcoins using Java. I have read the documentation on BTC-E's website as well as posts of other forum members. However, it is still not clear to me (as the documentation is a bit lacking).

If someone could help me with some simple Java code that just queries the BTC-E API for bitcoin price, that would be awesome. If necessary, I would be willing to pay for the aforementioned help.

So, can anyone assist me?

Thank you.
1715298281
Hero Member
*
Offline Offline

Posts: 1715298281

View Profile Personal Message (Offline)

Ignore
1715298281
Reply with quote  #2

1715298281
Report to moderator
1715298281
Hero Member
*
Offline Offline

Posts: 1715298281

View Profile Personal Message (Offline)

Ignore
1715298281
Reply with quote  #2

1715298281
Report to moderator
1715298281
Hero Member
*
Offline Offline

Posts: 1715298281

View Profile Personal Message (Offline)

Ignore
1715298281
Reply with quote  #2

1715298281
Report to moderator
"You Asked For Change, We Gave You Coins" -- casascius
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715298281
Hero Member
*
Offline Offline

Posts: 1715298281

View Profile Personal Message (Offline)

Ignore
1715298281
Reply with quote  #2

1715298281
Report to moderator
1715298281
Hero Member
*
Offline Offline

Posts: 1715298281

View Profile Personal Message (Offline)

Ignore
1715298281
Reply with quote  #2

1715298281
Report to moderator
iheartcryptocoin
Newbie
*
Offline Offline

Activity: 25
Merit: 0


View Profile
December 10, 2013, 04:29:10 AM
Last edit: December 10, 2013, 01:30:23 PM by iheartcryptocoin
 #2

Hey buddy, happy to help!  There is an example of how to query the Trading API here http://pastebin.com/jyd9tACF.  


If you just want the current price, it is much simpler.  Send a GET request here

https://btc-e.com/api/2/btc_usd/ticker

And the result will be returned as JSON which you can parse.  
EG

{"ticker":{"high":925,"low":808,"avg":866.5,"vol":27641876.50246,"vol_cur":31521.98718,"last":906,"buy":906,"sell":902.19,"updated":1386650589,"server_time":1386650589}}

Send me a PM with specific questions if you are having trouble.  And my btc address is in my signature, anything is appreciated! ;-)

******************************************
NOTE -
The API's BTC-e has are TICKER, TRADES and DEPTH

Ticker -  https://btc-e.com/api/2/insert_pair/ticker
Trades -  https://btc-e.com/api/2/insert_pair/trades
Depth -  https://btc-e.com/api/2/insert_pair/depth

EG

BTC/USD
Ticker -  https://btc-e.com/api/2/btc_usd/ticker
Trades -  https://btc-e.com/api/2/btc_usd/trades
Depth -  https://btc-e.com/api/2/btc_usd/depth

LTC/BTC
Ticker -  https://btc-e.com/api/2/ltc_btc/ticker
Trades -  https://btc-e.com/api/2/ltc_btc/trades
Depth -  https://btc-e.com/api/2/ltc_btc/depth

LTC/USD
Ticker -  https://btc-e.com/api/2/ltc_usd/ticker
Trades -  https://btc-e.com/api/2/ltc_usd/trades
Depth -  https://btc-e.com/api/2/ltc_usd/depth  

And just continue to modify for other pairs you need info for
PPC/USD Ticker -  https://btc-e.com/api/2/ppc_usd/ticker
NMC/USD Ticker -  https://btc-e.com/api/2/nmc_usd/ticker
NVC/USD Ticker -  https://btc-e.com/api/2/nvc_usd/ticker

ETC ETC ETC
daybyter
Legendary
*
Offline Offline

Activity: 965
Merit: 1000


View Profile
December 11, 2013, 08:26:02 PM
 #3

You might want to look at:

https://github.com/ReAzem/cryptocoin-tradelib/blob/master/modules/btc_e/src/de/andreas_rueckert/trade/site/btc_e/client/BtcEClient.java

abwaters
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
December 23, 2013, 08:39:25 PM
 #4

Or try the following...

https://github.com/abwaters/btce-api

Very easy to use API with only one dependency...
gweedo
Legendary
*
Offline Offline

Activity: 1498
Merit: 1000


View Profile
December 24, 2013, 12:24:43 AM
 #5

I have written a trading bot in java, and can easily help you. My trading bot framework...

https://github.com/italiano40/Bitcoin-Trading-bot

So pm and we can work out a deal.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!