example bingx perpetual v1
Please write an example below to create a connection and execute a function. Thank you
bingx perpetual v1
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
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?
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 , I was instructed by their support and telegram to contact [email protected] They actually do respond in a day or 2.
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.