July 29, 2026, 05:32:32 AM

Author Topic: GoldCoin Price Checker !  (Read 21554 times)

0 Members and 1 Guest are viewing this topic.

Offline gsdffsdfsd

  • Gold Panner
  • **
  • Posts: 36
  • Karma: +1/-0
    • View Profile
Re: GoldCoin Price Checker !
« Reply #15 on: December 03, 2013, 02:43:50 AM »
I would just like to ask how this price checker works. Does it use Cryptsy's API to check for GLD/BTC and than some other API to check BTC/USD or is there some other magic?

Offline bustingbuster

  • Gold Miner
  • ****
  • Posts: 115
  • Karma: +6/-0
    • View Profile
Re: GoldCoin Price Checker !
« Reply #16 on: December 04, 2013, 04:48:36 AM »
I would just like to ask how this price checker works. Does it use Cryptsy's API to check for GLD/BTC and than some other API to check BTC/USD or is there some other magic?

Uses cryptsy's api for gld/btc price and mtgox's api for btc/usd price and multiply ;).

-Thanks-
Goldcoin address :
DzcjnbTgQh3BbsM9Bv3LDF21qNaWuJrNYi

Offline manto

  • Newbie
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: GoldCoin Price Checker !
« Reply #17 on: December 04, 2013, 09:24:03 AM »
Is GLD traded (in $, not other coins) on any exchange? I can't seem to find any.
GLD  E414pJa9AxrR4tyc2ruf9TuDfM2KYSNgKZ

Offline AZIZ1977

  • Gold Miner
  • ****
  • Posts: 573
  • Karma: +25/-0
    • View Profile
Re: GoldCoin Price Checker !
« Reply #18 on: December 04, 2013, 09:26:27 AM »
Is GLD traded (in $, not other coins) on any exchange? I can't seem to find any.

Not yet.
GLD: DvCsNBJowwzManPa6YSMsNFanFXMxqgFuk
BTC: 16F9CkTbDAAa76EzpqhEhQsRP93Gn49GpW

Offline Stormcrow

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: GoldCoin Price Checker !
« Reply #19 on: December 05, 2013, 10:06:39 PM »
It looks busted right now:

$ curl http://gld.skillerzforum.com/system/lazy2.php
0.00000

Offline miner007

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: GoldCoin Price Checker !
« Reply #20 on: December 06, 2013, 05:36:34 AM »
I wrote my own during the down time in Python.
If someone is willing to donate 5 GLD, i'll modify my python script to work with Qpython, which would allow you to access the price quotes via the local browser on their android device.

for example,  start the script with Qpython, and then open up a browser and goto  http://localhost/ticker.py  then the current prices will be displayed every time the page is refreshed.

Offline miner007

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: GoldCoin Price Checker !
« Reply #21 on: December 06, 2013, 05:37:41 AM »
my python script is better.. LOL   :P

Offline harshal360

  • Newbie
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: GoldCoin Price Checker !
« Reply #22 on: December 06, 2013, 08:25:11 AM »
yea its been 0 according to ur site for a while

Sent from my Nexus 7 using Tapatalk


Offline bustingbuster

  • Gold Miner
  • ****
  • Posts: 115
  • Karma: +6/-0
    • View Profile
Re: GoldCoin Price Checker !
« Reply #23 on: December 06, 2013, 11:36:42 PM »
Its fixed, Idk what happened but the mtgox's api didn't retrieve the btc's price for a while then after sometime its automatically fixed :P.
Now its alright.

-Thanks-
Goldcoin address :
DzcjnbTgQh3BbsM9Bv3LDF21qNaWuJrNYi

Offline harshal360

  • Newbie
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: GoldCoin Price Checker !
« Reply #24 on: December 07, 2013, 12:24:52 AM »
I dont know if I should trust this or http://coinmarketcap.com/

Offline miner007

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: GoldCoin Price Checker !
« Reply #25 on: December 07, 2013, 07:25:29 AM »
try this python script that i wrote. It uses the APIs from Cryptsy and BTCe.

Code: [Select]
#!/usr/bin/python

import httplib
import urllib
import json
from decimal import *

def CryptsyTickerAPI(marketID):
    # Get current Buy/Sell values for a given marketID
    headers = {"Content-type": "application/x-www-form-urlencoded", "Accept": "text/plain"}
    params = ''
    conn = httplib.HTTPConnection('pubapi.cryptsy.com:80')

    # Sometimes the connection times out (slow connections) or the network is down
    # Catch the error so that the entire script doesn't crash
    try:
        conn.request('GET', '/api.php?method=singlemarketdata&marketid=' + str(marketID), params, headers)
        response = conn.getresponse()
        data = json.load(response)
   
        buyPrice = data["return"]["markets"]["GLD"]["buyorders"][0]['price']
        sellPrice = data["return"]["markets"]["GLD"]["sellorders"][0]['price']

        conn.close()

        return buyPrice, sellPrice
    except:
        TickerAPI(marketID)

# Get current Buy/Sell data
def BTCeTicker(pair):
    # pair can be: ltc_usd, btc_usd, etc...
    # reqType can be: ticker, trades, or depth
    # Get ticker information

    headers = {"Content-type": "application/x-www-form-urlencoded", "Accept": "text/plain"}
    params = ''
    #conn = httplib.HTTPSConnection('btc-e.com')
    try:
       conn = httplib.HTTPSConnection("btc-e.com")

       conn.request('GET', '/api/2/' + pair + 'ticker', params, headers)
       response = conn.getresponse()
       data = json.load(response)
       buyPrice = data['ticker']['buy']
       sellPrice = data['ticker']['sell']

       conn.close()

       return buyPrice, sellPrice

    except:
       print 'Connection failure...retrying.'
       BTCeTicker(pair)

LTCGLD_currentPrice = CryptsyTickerAPI(36)
LTCUSD_currentPrice = BTCeTicker('ltc_usd/')
GLDUSD_currentBuy  =  round(Decimal(LTCGLD_currentPrice[0]) * Decimal(LTCUSD_currentPrice[0]), 6)
GLDUSD_currentSell =  round(Decimal(LTCGLD_currentPrice[1]) * Decimal(LTCUSD_currentPrice[1]), 6)

print 'Content-type:text/html\r\n\r\n'
print '<html>'
print '<head>'
print '<title>Current GLD/USD exchange Prices on Cryptsy.com</title>'
print '</head>'
print '<body>'
print '<center>Current GLD/USD exchange Prices on Cryptsy.com</center>'
print '<center>compliments of the Cryptsy and BTC-e Ticker APIs</center>'
print '<p>'
print 'Current Buy:  ' + '<b>' + str(GLDUSD_currentBuy) + '</b><br>'
print 'Current Sell: ' + '<b>' + str(GLDUSD_currentSell) + '</b>'
print '<p>'
print '<p>'
print 'Note ** Later versions of this script will include an interactive CGI interface so that more alt-currencies can be used'
print '<p><p>'
print 'If you found this script useful consider donating a little bit of GLD here:<p>'
print 'ECQatb9BMuEFmPDUmMWypvFpwiMUwEv6au <p>'
print 'contact: miner007 (celtic_tigger1(a.t.)hotmail.com)'
print '</body>'
print '</html>'

Offline bustingbuster

  • Gold Miner
  • ****
  • Posts: 115
  • Karma: +6/-0
    • View Profile
Re: GoldCoin Price Checker !
« Reply #26 on: December 07, 2013, 10:50:14 AM »
I dont know if I should trust this or http://coinmarketcap.com/

Both shows similar prices just a bit different due to btc price differences.

-Thanks-
Goldcoin address :
DzcjnbTgQh3BbsM9Bv3LDF21qNaWuJrNYi