Hi, I want to check my account status by running the following Python script:
from binance.spot import Spot as Client
from binance.lib.utils import config_logging
base_url = 'https://api.binance.us'
client = Client(base_url=base_url, key=<mykey>, secret=<mysecret>)
But the response says “404 not found”. I’d like to ask how to fix it. Thanks.
The endpoint is not available for binance US, refer to the documentation above to check if an endpoint is available.
I just follow the document in
If I want to check my account status, how to use the method?
There is no issue with the code snippet linked.
Please make sure you are not trying to access Binance from a restricted country.
I use a proxy to connect to https://api.binance.us.
GET /sapi/v1/account/status is not support by Binance US (https://api.binance.us/), therefore it is not possible to use client.account_status().
To confirm that you your connection with the api is successful use the following method
If successful you should receive a 200 response with the following content
/api/v3/account you can use this endpoint to query.