bitbns-official / node-bitbns-api

This is Official Bitbns API nodeJs Library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

public get trade history

shortthefomo opened this issue · comments

commented

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

noted,

to get historical data, you can use getOHLCData

commented

"error": "invalid api key",

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

  • Operating system: ____
  • Node Version: _____ (node -v)

Describe the problem:

Explain the problem you have encountered

Steps to reproduce:




Observed Results:

  • What happened?
  • What did you expect to happen?

Relevant code exceptions or logs

Code Sample, a copy-pastable example

// Your code here

logs, a copy-pastable example

// paste your log here

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 .

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

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.

@keshav-iitr, great to hear

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

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

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)

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?