shrimpy-python icon indicating copy to clipboard operation
shrimpy-python copied to clipboard

Trouble getting Users users: {'error': 'Invalid IP address, API Key, or signature'}

Open atka007 opened this issue 4 years ago • 5 comments

I am using this code:

import shrimpy public_key = 'xxxxxx' secret_key = 'xxxxxxxx' client = shrimpy.ShrimpyApiClient(public_key, secret_key) users = client.list_users() print("\n users: " + str(users))

Getting this error:

users: {'error': 'Invalid IP address, API Key, or signature'}

I just generated ne API keys. What am I missing?

atka007 avatar Nov 15 '21 16:11 atka007

Same problems here as well!

vinhloc30796 avatar Nov 17 '21 13:11 vinhloc30796

Can we get any help on this?

atka007 avatar Nov 22 '21 22:11 atka007

I am still trying to get this working. I generated new API Keys again. I am getting response for "supported_exchanges" and "ticker" but for the "users" I am still getting the error: users: {'error': 'Invalid IP address, API Key, or signature'}

Did anyone get this working recently. Developers PLEASE HELP!

See my code below:

import shrimpy

public_key = 'xxxxxx' secret_key = 'xxxxxxxxxx'

client = shrimpy.ShrimpyApiClient(public_key, secret_key) #alloc = shrimpy.allocation()

supported_exchanges = client.get_supported_exchanges() print("\n supported_exchanges: " + str(supported_exchanges))

ticker = client.get_ticker('binanceus') print("\n ticker: " + str(ticker)) #Get all Coin data on Binance

users = client.list_users() print("\n users: " + str(users))

atka007 avatar Dec 02 '21 17:12 atka007

@atka007 I'm not Shrimpy team, but are you using the API key from https://dashboard.shrimpy.io/ or are you using the key from https://developers.shrimpy.io/dashboard/? Because only the latter works. I don't know what the API key of the former is used for lolol

vinhloc30796 avatar Dec 02 '21 17:12 vinhloc30796

HAHAH this whole time I thought I need the API for my trading account. Using the Dev Account API keys works. Thank you very much. I wish that was clearer in the Doc.

atka007 avatar Dec 03 '21 03:12 atka007