connect testnet.binancefuture.com

Hi! Please help. I can’t connect to testnet futures
I use the python-binance v1.0.15 library.

What argument should I pass to the “Client” class to connect to testnet.binancefuture.com .

from binance import Client

client = Client(api_key = ‘###’, api_secret=’###’)

Hi. I’m not familiar with this library since it is developed by the community. But I think there is a small mistake at the first line. It should be from binance import Client.
Also, when you are initiating the Client, you should be able to specify the environment. Here is the definition:

1 Like
  1. I fixed the error in the first line. Thank you :slight_smile:

  2. I used testnet = True. My program connects to the Network for spot testnet - https://testnet.binance .vision/api .

  3. I want to connect to a FUTURE test network - https://testnet.binancefuture.com/
    How do I do this?

hello,

did you find a way sir?

1 Like

client = Client(api_key = ‘###’, api_secret=’###’, testnet=True)

1 Like