September 08, 2026, 01:37:23 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - miner007

Pages: [1]
1
I could share my opencart script if people are interested. It is just a modified version of https://github.com/btcgear/OpenCart_Bitcoin.

Only downside is you have to update the value daily. I could however update it to pull from an api if there is a site that has a daily average for goldcoin.

i can write an API if you are interested, as well as the server process that will constantly update it.

PM me if you're interested.

2
Project Development / Re: GoldCoin Price Checker !
« 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>'

3
Trading Discussion / Re: GLD-USD Ticker Script (Python CGI Script)
« on: December 07, 2013, 01:49:37 AM »
i guess it was multiplying by zero somewhere.  When i tried our script it showed zero  for all numerals.
i'm thinking you could have an alternate API call if one of them fails. Less to maintain by you.
Btw, what did you write your script in?  PHP? Just curious.

4
Project Development / Re: GoldCoin Price Checker !
« on: December 06, 2013, 05:37:41 AM »
my python script is better.. LOL   :P

5
Project Development / Re: GoldCoin Price Checker !
« 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.

6
Trading Discussion / GLD-USD Ticker Script (Python CGI Script)
« on: December 06, 2013, 01:03:11 AM »
Skillerz'   Script seems to be non-functional as of now. So i took some time off today and wrote a CGI script in python to do exactly what he has done. Later i'll be updating the HTML code inside it to auto-update and support other currency stuff through CGI Forms.

Usage is quite simple. you just upload it to a webserver, and assuming you have python-cgi enabled, it will poll the Cryptsy and BTCe for the current prices, and do the calculations.
I have this working on my notebook which has LightHTTP installed to it. If you have a VPS and want to run this script on your server, i can supply you with my configuration scripts which enable python-CGI.

If you really like this script, please donate some GLD  ^o^

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>'


7
I'll Help you if you would like...

8
Technical Support / Re: How to get my wallet from my PC to my tablet?
« on: December 05, 2013, 09:58:06 PM »
There's two ways you can do that....


1. you export the private key on the PC client
2. on the android client you use the import keys function...and then resync....

i haven't actually tried this.... but it should work.

i've looked at the Android Client's  /data/data/{appname}  directory on my tablet and there seems to be quite a bit of difference in that data directory compared to the PC version.

If you know how to use  Chroot Linux on Android, you can just directly copy the entire  Data directory from the PC over into that directory on the Chroot Linux system. You won't have the nice NFC transfer functions as you'll have on android (how often do you really use that?) but it would be more simple (relatively)

If you need help setting up Chroot linux on Android (i use it every day on my TF201 tablet) let me know. i can hook you up with the APK installer and the rootFS image.  You will need a rooted Android device though...

9
Project Development / Re: [HELP WANTED] Experienced Chinese Translator
« on: December 05, 2013, 07:35:07 PM »
I have experience translating user manuals here in china into english. Let me know if you want some help.
BTW... i'll work for GLDcoins   ;)

Pages: [1]