bitbns-official / node-bitbns-api

This is Official Bitbns API nodeJs Library.
16 stars 19 forks source link

public get trade history #31

Open shortthefomo opened 3 years ago

shortthefomo commented 3 years ago

Need a way to see the executed trades on your exchange filtered by pair thanks.

sanket-buyhatke commented 3 years ago

noted,

to get historical data, you can use getOHLCData

shortthefomo commented 3 years ago

"error": "invalid api key",

sanket-buyhatke commented 3 years ago

hi, @lathanbritz

could you please explain in detail the error you are facing ? also, it would be really helpful if you could report in the suggested format for reporting bugs, as it makes reproducing the issue possible on our end and provide quick support, and help others facing similar issues, resolve it faster.

template:

Describe your environment

Describe the problem:

Explain the problem you have encountered

Steps to reproduce:




Observed Results:

Relevant code exceptions or logs

Code Sample, a copy-pastable example

// Your code here

logs, a copy-pastable example

// paste your log here
keshav-iitr commented 3 years ago

Hi, I have been trying the private rest APIs from Android device but I always get 403 in error code. Can anyone help here? I was trying listExecutedOrders specifically .

sanket-buyhatke commented 3 years ago

hi, @keshav-iitr, 403 error is generated when an invalid request is sent, you refer to this document on how to send REST POST request: https://documenter.getpostman.com/view/2372406/Szt5hBp7?version=latest#08419d5a-e82b-4883-935c-96f3c018f558

keshav-iitr commented 3 years ago

Hi @sanket-buyhatke , Thank you for quick response. I was able to solve the issue by changing the Retrofit implementation a bit. Somehow the full url was not being passed correctly. Also I have a small query, do I need to use listExecutedOrders by passing each asset symbol to it , to get all the order history of an user. Or there is some simpler way to fetch user's order history.

sanket-buyhatke commented 3 years ago

@keshav-iitr, great to hear

No, currently the way to query listExecutedOrders is by sending in each asset symbol to it.

keshav-iitr commented 2 years ago

Hi @sanket-buyhatke, Is there a rest equivalent to getOHLCData api to fetch trade history for assets?

sanket-buyhatke commented 2 years ago

Hi, @keshav-iitr this is current endpoint used the library, currently the team is working on releasing a new endpoint with added functionality, it should be released soon.

Note: frequency of data returned is 5 minute candlesticks (can be resampled to higher time frames if required)

keshav-iitr commented 2 years ago

Hi @sanket-buyhatke , Thank you, I have checked the API mentioned, but I see that the data returned are 31st Jan and before(today is 2nd Feb). So this has very old data. We need the following current data as shown on exchange-

image

Do you have another end-point for this?