bingX-connector-python icon indicating copy to clipboard operation
bingX-connector-python copied to clipboard

example bingx perpetual v1

Open Magiccode2022 opened this issue 2 years ago • 5 comments

Please write an example below to create a connection and execute a function. Thank you

bingx perpetual v1

Magiccode2022 avatar Mar 06 '23 08:03 Magiccode2022

Hi @Magiccode2022, FYI.

from bingX.perpetual.v1 import Perpetual

client = Perpetual(api_key, api_secret)

kline_data = client.kline(symbol, interval, startTime, endTime, limit)

For more information, please refer to the official API documentation

Ming119 avatar Mar 29 '23 08:03 Ming119

As small additional question, I noticed BingX API does not have all the features of the dex (I'm still awaiting the response from their support), is it possible in your experience to replicate trailing actions from the API?

VladyslavY avatar Mar 30 '23 09:03 VladyslavY

The last three parameters should not be encapsulated in an array as shown above.

kline_data = client.kline(symbol, interval, startTime, endTime, limit)

@Ming119 do you know how to contact the actual developers of the BingX API? Their github doesn't allow us to register issues. I really like the platform and I want to train up short time frame quantitative model, but at the moment it seems like they only allow us to pull the past 32 days of Kline 1 minute data. That's just not enough data.

eezis avatar Mar 31 '23 00:03 eezis

@eezis , I was instructed by their support and telegram to contact [email protected] They actually do respond in a day or 2.

VladyslavY avatar Mar 31 '23 11:03 VladyslavY

Support replied to my inquiry, they confirm that data history for Klines is currently limited and said they will "optimize the schedule" in the future. So hopefully there will be an API upgrade before too long.

eezis avatar Apr 03 '23 12:04 eezis