Memphis Grizzlies 110 @ 113 Golden State Warriors
|
|
|
Charlotte Hornets 101 @ 104 Boston Celtics
|
|
|
Thanks! tested and it works for me. Here is a minimalist sample that works on python3. There are a lot of changes needed for python3, including frequently converting str to bytes, incompatible urlencode() and lack of urllib2. This example uses python-requests to shorten the code in attempt to manifest the security measurement: import hmac, base64, hashlib, urllib, time, requests
base = 'https://data.mtgox.com/api/2/' key = "" sec = ""
def request(get_or_post, path, inp={}):
def sign(path, data): # not used by any other functions return hmac.new(base64.b64decode(bytes(sec, 'UTF-8')), bytes(path+chr(0)+data, 'UTF-8'), hashlib.sha512)
if get_or_post == 'get': return requests.get(base+path)
inp[u'tonce'] = str(int(time.time()*1e6)) post_data = urllib.parse.urlencode(inp) headers = { 'Content-Type': 'application/x-www-form-urlencoded', 'Rest-Key': key, 'Rest-Sign': base64.b64encode(sign(path, post_data).digest()) } return requests.post(base+path, data = post_data, headers = headers)
# example: get #r = request('get', 'BTCUSD/money/ticker_fast') #print(r.text)
# example: post #r = request('post', 'BTCUSD/money/info') #print(r.text)
# example: post with params (use your own order ID here) #data = {'order': 'd5111d57-c495-48a0-923d-59b729dba331', 'type':'ask'} #r = request('post', 'BTCUSD/money/order/result', data) #print(r.text)
Output (activated the last most-complicated example) !python3 /tmp/test.py [No se ha escrito nada al disco desde el último cambio] {"result":"success","data":{"order_id":"d5111d57-c495-48a0-923d-59b729dba331","trades":[{"trade_id":"1373688054789976","primary":"Y","currency":"USD","type":"ask ","properties":"limit","item":"BTC","amount":{"value":"0.01000000","value_int":"1000000","display":"0.01000000\u00a0BTC","display_short":"0.01\u00a0BTC","currenc y":"BTC"},"price":{"value":"91.89874","value_int":"9189874","display":"$91.89874","display_short":"$91.90","currency":"USD"},"spent":{"value":"0.91899","value_in t":"91899","display":"$0.91899","display_short":"$0.92","currency":"USD"},"date":"2013-07-13 04:00:54"}],"total_amount":{"value":"0.01000000","value_int":"100000 0","display":"0.01000000\u00a0BTC","display_short":"0.01\u00a0BTC","currency":"BTC"},"total_spent":{"value":"0.91899","value_int":"91899","display":"$0.91899","d isplay_short":"$0.92","currency":"USD"},"avg_cost":{"value":"91.89900","value_int":"9189900","display":"$91.89900","display_short":"$91.90","currency":"USD"}}}
Hi, Currently trying this code. Works well with get but when I try send I get syntax error at this line: inp[u'tonce'] = str(int(time.time()*1e6)) why is that? I'm using python3.2 @ linux mint
|
|
|
isn't gavin and other pretty trustworthy people behind that project?
|
|
|
^^^ Word. Bitcoin truly need to be stress tested. Pirate is doing us all a favour.
|
|
|
Are you serious? Take a look around here. Even though the legitimate restrictions on newly registered people there is still a massive amount of worthless posting and trolling.
|
|
|
Very interesting. Thank you for sharing.
|
|
|
Becuase Nefario is one sexy and trustworthy biatch. 
|
|
|
I have to say that the idea is very appealing.
|
|
|
Funds are on their way!
LZ6akBAYBCHS7dQZ7cMfvzsUeDKkASinBb
|
|
|
Does exist any binary (.deb?) version yet? I'm apparently to retarded to compile it myself. 
|
|
|
Why is that a problem? Since every single bitcoin is high divisible I can't see the problem.
Btw. This has been discussed tons of times before.
|
|
|
When I run Electrum I get the following error: Connected to ecdsa.org:50001 received error: {u'id': 4, u'error': u'limit reached'}
What in the what now?
I added a limit on the number of transactions that can be returned on requested addresses. it is a DOS prevention measure. the limit is probably too low. I will raise it if necessary. I have received 109 transactions on one specific address and about ~120 in total. And now I get the error all the time. What should I do in order to be able to access the coins connected to that address? And what happens if more transactions are sent to that address now when I have reached the limit?
|
|
|
When I run Electrum I get the following error: Connected to ecdsa.org:50001 received error: {u'id': 4, u'error': u'limit reached'}
What in the what now?
|
|
|
Can anyone sell me a (cheap?) 4GB or 2GB micro SD card for btc? I live in Sweden. Send me a pm if you have an offer.
|
|
|
|