Search content
Sort by

Showing 20 of 3,009 results by DaRude
Post
Topic
Board Beginners & Help
python3 mtgox api
by
DaRude
on 04/04/2013, 07:11:22 UTC
Ok so i'm going crazy trying to write a python3 code to get to gox's api v1
i found few programs but they either didn't work for me or are still doing v0 api  Huh
when i execute the following code i get
Code:
e.code -> 403
e.read -> b'{"result":"error","error":"Identification required to access private API","token":"login_error_invalid_rest_key"}'

(API keys are correct and are enabled on gox) so if someone can tell me where i'm being an idiot i'd greatly appreciate it.

Code:
import time
import urllib.parse
import urllib.request
import base64
import hmac
import hashlib

url = "https://data.mtgox.com/api/1/generic/info"

GOX_secret = "your secret here"
GOX_secret = base64.b64decode((GOX_secret.encode()))
GOX_key = "your keyname here"

params = {"nonce":str(int(time.time()*1000))}
post_data = urllib.parse.urlencode(params)

#ahmac = base64.b64encode(str(hmac.new(base64.b64decode(self.secret),post_data,hashlib.sha512).digest()))
H = hmac.new(GOX_secret, post_data.encode(), hashlib.sha512).digest()
sign = base64.b64encode(H)
header = {"User-Agent": 'myGoxAPI', "Rest-Key": GOX_key, "Rest-Sign": sign}


req = urllib.request.Request(url, post_data, header) #POST

try:
        response = urllib.request.urlopen(req, post_data.encode()) #POST
except urllib.error.HTTPError as e:
        print("e.code ->", e.code)
        print("e.read ->", (e.read()))
        exit(5)

print("It'd be nice to get here")
Post
Topic
Board Altcoin Discussion
Re: is btc-e down for anyone else?
by
DaRude
on 17/04/2013, 06:28:08 UTC
Yeah a planned maintenance with few days heads up time or hell make it a weekly think like every sat for one hour. Don't announce it 15min before ninja maintenance
Post
Topic
Board Altcoin Discussion
Re: is btc-e down for anyone else?
by
DaRude
on 17/04/2013, 05:30:04 UTC
Down
Post
Topic
Board Altcoin Discussion
Re: is btc-e down for anyone else?
by
DaRude
on 17/04/2013, 06:16:26 UTC
The one grc quoted 04/16/2013 ... 7-00 to 8-00 MSK
it's 04/17/2013 1017am there now

There was an announcement near the top of their page all day today saying they will have scheduled maintenance... that might be why the site is down.

According to google the announcement said:

Quote
Dear Customers. 04/16/2013 we close our BTC-E site for Maintenance from 7-00 to 8-00 MSK. With regards, support BTC-E.
Post
Topic
Board Altcoin Discussion
Re: is btc-e down for anyone else?
by
DaRude
on 17/04/2013, 05:34:32 UTC
Hope you didn't move them to gox cause after their cooldown that wouldn't be much of a win
Post
Topic
Board Beginners & Help
Re: OKPAY Verification
by
DaRude
on 06/04/2013, 01:50:43 UTC
It's my old credit union they have the lowest wire transfer fees but i don't have any branches near me any more. Yeah i can understand them making you jump through the loops to create account (if you don't want to don't do it), but it's another thing when they took my money hostage interest free and now telling me that i have to do stuff before they are willing to release it! And i didn't see anywhere on their site where it says that after i get verified they will take my money and hold it interest free until i can satisfy all of their requests whatever they decide to ask for
Post
Topic
Board Exchanges
Re: BTC-E.com exchange Bitcoin, Litecoin, Namecoin <-> USD\BTC (fee 0.2%)
by
DaRude
on 17/04/2013, 06:03:27 UTC
Yeah it's been line an hour an update would be nice.
Post
Topic
Board Beginners & Help
Re: Mtgox should explain the failure now!
by
DaRude
on 04/04/2013, 07:44:59 UTC
I thought they already said that they were getting DDOSed?
Post
Topic
Board Beginners & Help
Re: python3 mtgox api
by
DaRude
on 04/04/2013, 08:40:49 UTC
MineMind, that's python2 and a lot of code for me right now. But i'll start digging.

dflatline, just for readability. I know it looks odd but it's not the same encoding/decoding  When you paste the key from GOX it comes in as a string, so initially GOX_secret.encode() changes a string into a bytes, and then  base64.b64decode changes those bytes to base64 for GOX's API. I guess those two lines could be replaced by GOX_secret = base64.b64decode(("your secret here".encode()))
Post
Topic
Board Bitcoin Technical Support
Re: Need help with mtgox api on python3
by
DaRude
on 04/04/2013, 19:59:48 UTC
Disregard, apparently the code works and the issue was with my API keys. Generated a new set, and it worked  Shocked
Post
Topic
Board Beginners & Help
Re: Whitelist Requests (Want out of here?)
by
DaRude
on 04/04/2013, 11:18:01 UTC
I want out of here. been reading this forum without logging in
Post
Topic
Board Beginners & Help
Re: OKPAY Verification
by
DaRude
on 04/04/2013, 10:21:14 UTC
Yeah i finally got verified. On a separate note, just got an email that my discover card online password was changed (which i didn't change) low and behold someone got in, changed my email, username, reset my password. After jumping through the loops i finally get in and see a charge and a refund for the same amount that wasn't mine. The only new accounts i opened in a while were Okpay and Dwolla (which !#!@# forced me to use my social security# to get verified)
Post
Topic
Board Beginners & Help
Re: OKPAY Verification
by
DaRude
on 05/04/2013, 15:15:34 UTC
Just wanted to post an update. After sending all the bills in and my drivers license i finally get an email stating "Congratulations! Your account state has been changed to Verified." So i send them a wire transfer which they sit on for 3 days or so and then get the following email.

The wire "tranSfer" was initiated from my bank online, so no receipt, and i just got this months statement from the bank meaning the transaction wont post until next month statement!!! So they expect to sit on my money for a month interest free while making me jump through all these hoops?? It'd actually be easier to claim that it was send from a 3rd party, and take a picture of me naked flipping them off?

Quote
We apologize for the delay you will experience regarding your wire tranfer in the time being, however, we give you our commitment that this delay will not re-occur next time (should your documents be in good standing).
To verify and confirm your recent bank wire transaction please perform the following steps:

    Upload a scanned image of a bank wire transfer receipt or the most recent bank account statement (with the transfer information) into your OKPAY account Profile » General Information section;
    Then create a support ticket to contact us regarding this matter.

In case the wire was sent by a 3rd party to your account, you will also need to:

    State the purpose of payment (in support ticket);
    Take a picture of yourself holding your identification document and a paper with your OKPAY WalletID. Upload it into your OKPAY account Profile » General Information section.
Post
Topic
Board Trading Discussion
Re: MtGox OKPay Withdrawal Delay
by
DaRude
on 10/04/2013, 00:28:44 UTC
My withdraw has been sitting with Status: todo for over 30hrs now and its Tuesday  Huh heard they ran out of funds and topping up which should take by Friday??? hope that's not the case cause a week to withdraw is unacceptable
Post
Topic
Board Service Discussion
Re: Deposit to BTC-e through OKPAY
by
DaRude
on 20/05/2013, 15:16:37 UTC
Yeah btc-e no news no information no transparency from btc-e besides "be back approx. May 20" yeah i can't see why this exchanges has so much lower volume than gox
Post
Topic
Board Beginners & Help
Re: Is BitInstant working? When was your last successful purchase?
by
DaRude
on 04/04/2013, 07:51:37 UTC
Is it possible to transfer funds from Bininstant to btc-e? BTC-E's site claims "BitInstant: 13478 USD" but i don't see btc-e as an option to transfer to on bitinstants site
Post
Topic
Board Service Discussion
Re: MTGox to OKPay: Really slow!
by
DaRude
on 25/04/2013, 02:08:05 UTC
If they have funds in their okpay account about an hr from my experience. If they're low on funds...who knows up to a week?Huh
Post
Topic
Board Beginners & Help
Re: mt.gox > okpay ... withdrawal error
by
DaRude
on 25/04/2013, 02:11:23 UTC
means there was an error in transferring your funds (most likely cause they're low on okpay funds themselves to credit you) support is backlogged for about 4days. So open a ticket and wait 4 days
Post
Topic
Board Beginners & Help
Re: python3 mtgox api
by
DaRude
on 04/04/2013, 10:08:12 UTC
You can, it'd be the same result just wouldn't be considered a nice style. It's a common practice to declare your variables together at the begging of the code e.g. if the api url changes you only have to change it in one place and don't have to hunt the code looking for every occurrence.
Post
Topic
Board Bitcoin Technical Support
Need help with mtgox api on python3
by
DaRude
on 04/04/2013, 16:39:36 UTC
Ok so i'm going crazy trying to write a python3 code to get to gox's api v1
i found few programs but they either didn't work for me or are still doing v0 api. After taking all of the stuff out it came down that even the basic test case fails. Can someone please point out what i'm doing wrong here?
when i execute the following code i get
Code:
e.code -> 403
e.read -> b'{"result":"error","error":"Identification required to access private API","token":"login_error_invalid_rest_key"}'

(API keys are correct and are enabled on gox)

Code:
import time
import urllib.parse
import urllib.request
import base64
import hmac
import hashlib

url = "https://data.mtgox.com/api/1/generic/info"

GOX_secret = "your secret here"
GOX_secret = base64.b64decode((GOX_secret.encode()))
GOX_key = "your keyname here"

params = {"nonce":str(int(time.time()*1000))}
post_data = urllib.parse.urlencode(params)

#ahmac = base64.b64encode(str(hmac.new(base64.b64decode(self.secret),post_data,hashlib.sha512).digest()))
H = hmac.new(GOX_secret, post_data.encode(), hashlib.sha512).digest()
sign = base64.b64encode(H)
header = {"User-Agent": 'myGoxAPI', "Rest-Key": GOX_key, "Rest-Sign": sign}


req = urllib.request.Request(url, post_data, header) #POST

try:
        response = urllib.request.urlopen(req, post_data.encode()) #POST
except urllib.error.HTTPError as e:
        print("e.code ->", e.code)
        print("e.read ->", (e.read()))
        exit(5)

print("It'd be nice to get here")