Bitcoin Forum
October 23, 2018, 06:10:38 AM *
News: Make sure you are not using versions of Bitcoin Core other than 0.17.0 [Torrent], 0.16.3, 0.15.2, or 0.14.3. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: get Bitcoin price using asp.net  (Read 1460 times)
kieran5405
Newbie
*
Offline Offline

Activity: 16
Merit: 0


View Profile
May 14, 2013, 02:44:08 PM
 #1


Hi,

Does anyone know how to get the buying and selling bitcoin price using .NET from the mt gox or similar site . 

I have looked at the API sites and nothing seems to be aimed at .NET.

Thanks for any pointers and help...
1540275038
Hero Member
*
Offline Offline

Posts: 1540275038

View Profile Personal Message (Offline)

Ignore
1540275038
Reply with quote  #2

1540275038
Report to moderator
1540275038
Hero Member
*
Offline Offline

Posts: 1540275038

View Profile Personal Message (Offline)

Ignore
1540275038
Reply with quote  #2

1540275038
Report to moderator
1540275038
Hero Member
*
Offline Offline

Posts: 1540275038

View Profile Personal Message (Offline)

Ignore
1540275038
Reply with quote  #2

1540275038
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1540275038
Hero Member
*
Offline Offline

Posts: 1540275038

View Profile Personal Message (Offline)

Ignore
1540275038
Reply with quote  #2

1540275038
Report to moderator
1540275038
Hero Member
*
Offline Offline

Posts: 1540275038

View Profile Personal Message (Offline)

Ignore
1540275038
Reply with quote  #2

1540275038
Report to moderator
1540275038
Hero Member
*
Offline Offline

Posts: 1540275038

View Profile Personal Message (Offline)

Ignore
1540275038
Reply with quote  #2

1540275038
Report to moderator
n8rwJeTt8TrrLKPa55eU
Hero Member
*****
Offline Offline

Activity: 588
Merit: 500



View Profile
May 14, 2013, 03:52:47 PM
 #2

First, use System.Net.WebClient to retrieve the content from

http://data.mtgox.com/api/2/BTCUSD/money/ticker

Then, depending on how complex you wanna get, either just parse the result via Regex.Match to extract the "last" trade value, or alternatively the built-in DataContractJsonSerializer to map to a .NET class, or the built-in JsonReaderWriterFactory.CreateJsonReader will create XML from JSON, or find some free add-on libraries that will parse JSON (e.g. http://json.codeplex.com/).
kieran5405
Newbie
*
Offline Offline

Activity: 16
Merit: 0


View Profile
May 15, 2013, 09:25:28 AM
 #3


cheers for that...got it working with ur help...
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!