Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

307 error #30

Open
L-Oosterloo opened this issue Nov 22, 2021 · 1 comment
Open

307 error #30

L-Oosterloo opened this issue Nov 22, 2021 · 1 comment

Comments

@L-Oosterloo
Copy link

I set API keys and put my ip address but, when I use them I get this error:
{'errorCode': 307, 'error': 'This key does not allow access from this IP.'}

I checked my public IP and this was present in the whitelist. I created a new API and whitelisted only this IP.. same result.. what am I missing here?

@NostraDavid
Copy link

A piece of code would be helpful: What did you write to set it up?

I did it like this (do note that most of the values that I pass are the default values):

# dependency: pip install python-dotenv
import os
from dotenv import load_dotenv
from python_bitvavo_api.bitvavo import Bitvavo

load_dotenv()
bitvavo = Bitvavo(
    {
        "APIKEY": os.environ["BITVAVO_APIKEY"],
        "APISECRET": os.environ["BITVAVO_APISECRET"],
        "RESTURL": "https://api.bitvavo.com/v2",
        "WSURL": "wss://ws.bitvavo.com/v2/",
        "ACCESSWINDOW": 10000,
        "DEBUGGING": False,
    },
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants