coinfloor / API

All you need to know about the APIs for Coinfloor's Trade Engine
Apache License 2.0
34 stars 20 forks source link

trades between dates #45

Closed dlefcoe closed 3 years ago

dlefcoe commented 3 years ago

Is there a method in the coinfloor.py module (in Python) that allows the user to get all trades between a start and end date for a given currency ? or instruction on how to do this please ?

thanks.

kamilbolka commented 3 years ago

No there isn't. However, you can use our BIST v2 User Transactions endpoint to retrieve all trades, deposits and withdrawals for the given currency.

dlefcoe commented 3 years ago

Thanks for the reply.

When i replace the url to the url endpoint given, it fails, so was wondering the following:

Is this endpoint usable via the websocket or does the user need to acces with requests? (or, even better, if there is a basic example this would be most helpful).

dlefcoe commented 3 years ago

solution is like this:

` url = 'https://webapi.coinfloor.co.uk/v2/bist/XBT/GBP/user_transactions/'

data = {'key':'value'}
r = requests.post(url, data=data, auth=('username', 'password') )
print(r.status_code)
print(r.text)

`

need to have the data variable otherwise get status_code = 415 error.