Pages:
Author

Topic: [Exchange] GRAVIEX Exchange: low fees, fast withdrawals, high security - page 33. (Read 38494 times)

member
Activity: 628
Merit: 10
New exchange generation
member
Activity: 628
Merit: 10
New exchange generation
newbie
Activity: 7
Merit: 0
How to get market with python 3?

    access_key = 'xxxx'
    secret_key = 'yyyy'
    ctx = ssl.create_default_context()
    ctx.check_hostname = False
    ctx.verify_mode = ssl.CERT_NONE
    epoch_time = str(int(time.time())) + '000'
    request = 'access_key=' + access_key + '&tonce=' + epoch_time
    message = 'GET|/api/v2/markets|' + request
    signature = hmac.new(b'secret_key',b'message',hashlib.sha256).hexdigest()
    query = 'https://graviex.net/api/v2/markets?' + request + '&signature=' + signature
    graviex = urllib.request.urlopen(query, context=ctx).read()
    print(graviex)

Not work:
401. Unauthorized


hello mazertwo, I solve this problem!

{"error":{"code":2007,"message":"The tonce 1527560783000 is invalid, current timestamp is 1527560317000."}}

you need to leave your tonce (timestamp your PC converted to UTC) exactly the same as the timestamp UTC graviex


#Python 3.6

import hashlib
import hmac
import requests
import time
import ssl
import json

access_key = 'api key here '
secret_key = 'secret key here'


# 0. making ssl context - verify should be turned off
ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE

# ------------------
# Get markets list
# ------------------

# 1. list markets

epoch_time = str(int(time.time()+30))+'000'
print(epoch_time)
request = 'access_key=' + access_key + '&tonce=' + epoch_time
message = 'GET|/api/v2/markets|' + request

secret_key_bytes= bytes(secret_key , 'latin-1')
message_bytes = bytes(message, 'latin-1')

# 1.1 generate the hash.
signature = hmac.new(
    secret_key_bytes,
    message_bytes,
    hashlib.sha256
).hexdigest()

# 1.2 list markets
query = 'https://graviex.net/api/v2/markets?' + (request) + '&signature=' + (signature)


print(query) #put in the browser



r = requests.get(query)
data = json.loads(r.content.decode('utf-8'))
print(data)


#---------------------------------------------------------------------



#I had to increase 30 units in the timestamp to work here in my region. You should get the value of "query" and put in the browser subitrair #the timestamp value of graviex server by its timestamp.

#I spent many hours to solve this problem.



member
Activity: 628
Merit: 10
New exchange generation
member
Activity: 628
Merit: 10
New exchange generation
member
Activity: 628
Merit: 10
New exchange generation
newbie
Activity: 1
Merit: 0
Anyone here used their APIs? Looking for a code snippet to pull my trades so that i can format and import into cointracker without having to do the tedious copy and paste atm. Was ok when i was only doing a few trades but now I'd rather automate if i can.

I tried their guide: https://graviex.net/documents/api_v2#!/trades/GET_version_trades_format but am still getting something wrong with my syntax.

Using ESS as an example:

Code:
# ------------------
# Get trades list
# ------------------

epoch_time = str(int(time.time())) + '000'
request = 'access_key=' + access_key + '&tonce=' + epoch_time + '&market=essbtc'
message = 'GET|/api/v2/trades/my|' + request

# Generate the hash.
signature = hmac.new(
    secret_key,
    message,
    hashlib.sha256
).hexdigest()

# Get trades
query = 'https://graviex.net/api/v2/trades/my?' + request + '&signature=' + signature
content = urllib2.urlopen(query, context=ctx).read()
print(content)

But this returns

Code:
Traceback (most recent call last):
  File "gvximport.py", line 33, in
    content = urllib2.urlopen(query, context=ctx).read()
  File "/usr/lib64/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib64/python2.7/urllib2.py", line 437, in open
    response = meth(req, response)
  File "/usr/lib64/python2.7/urllib2.py", line 550, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib64/python2.7/urllib2.py", line 475, in error
    return self._call_chain(*args)
  File "/usr/lib64/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/usr/lib64/python2.7/urllib2.py", line 558, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 401: Unauthorized

The unauthorized is in relation to the call as I can pull market pairs using my keys without issue from the same machine.

I have raised a support ticket but guessing someone here will probably get back to me faster.
member
Activity: 628
Merit: 10
New exchange generation
I'm trying to access my account plus it's giving authentication error, it does not accept the numbers that the Google authenticator reports.

i have sent 110 coin to my wallet on graviex, in deposit history i can t see the deposit, on explorer yes but i see another send of 110 coins on another wallet, i don't understand, so i have sending about 0.33 coin, all ok

i need support thanks

http://explorer.essence.direct/address/EX82s8GEKb597u3sSTi9HuSypK7JrVKo58

please contact support https://graviex.net/tickets or join the chat https://t.me/graviex

And to use this https://graviex.net/tickets path only accept if it is logged, something that I can not do 2 days


you can ask for support in our group https://t.me/graviex
member
Activity: 628
Merit: 10
New exchange generation
newbie
Activity: 19
Merit: 0
I'm trying to access my account plus it's giving authentication error, it does not accept the numbers that the Google authenticator reports.

i have sent 110 coin to my wallet on graviex, in deposit history i can t see the deposit, on explorer yes but i see another send of 110 coins on another wallet, i don't understand, so i have sending about 0.33 coin, all ok

i need support thanks

http://explorer.essence.direct/address/EX82s8GEKb597u3sSTi9HuSypK7JrVKo58

please contact support https://graviex.net/tickets or join the chat https://t.me/graviex

And to use this https://graviex.net/tickets path only accept if it is logged, something that I can not do 2 days
member
Activity: 628
Merit: 10
New exchange generation
I'm trying to access my account plus it's giving authentication error, it does not accept the numbers that the Google authenticator reports.

i have sent 110 coin to my wallet on graviex, in deposit history i can t see the deposit, on explorer yes but i see another send of 110 coins on another wallet, i don't understand, so i have sending about 0.33 coin, all ok

i need support thanks

http://explorer.essence.direct/address/EX82s8GEKb597u3sSTi9HuSypK7JrVKo58

please contact support https://graviex.net/tickets or join the chat https://t.me/graviex
member
Activity: 628
Merit: 10
New exchange generation
newbie
Activity: 19
Merit: 0
I'm trying to access my account plus it's giving authentication error, it does not accept the numbers that the Google authenticator reports.
full member
Activity: 232
Merit: 100
i have sent 110 coin to my wallet on graviex, in deposit history i can t see the deposit, on explorer yes but i see another send of 110 coins on another wallet, i don't understand, so i have sending about 0.33 coin, all ok

i need support thanks

http://explorer.essence.direct/address/EX82s8GEKb597u3sSTi9HuSypK7JrVKo58
jr. member
Activity: 102
Merit: 1
Can anybody log in into Graviex now? Seems that whole website is down.
Any news whether they have been attacked?
Thanks for any response


From Telegram Group:
Andrew Demuskov, [24.05.18 23:26]
"comm equipment
we in contact with tech stuff
i think we will fix soon"
newbie
Activity: 24
Merit: 0
Can anybody log in into Graviex now? Seems that whole website is down.
Any news whether they have been attacked?
Thanks for any response
member
Activity: 628
Merit: 10
New exchange generation
member
Activity: 628
Merit: 10
New exchange generation
member
Activity: 628
Merit: 10
New exchange generation
newbie
Activity: 1
Merit: 0
Yo, I like what you're doing so far graviex, quick question?

Are you going to list more shitcoins with poor liquidity and low volume until you have 5000 different coins and wallets and then sell your gravion when you can't handle it
OR
Are you going to list more cryptos from top 20  > develop strong api> invite arbitrage bots > pump gravio coin > pump volume > get dividends > and then sell to expand

I mean can you handle 100x load and 100x transfers on your servers ? You can be better than poloniex, but I really don't want you to end up like coinsmarkets


Pages:
Jump to: