A simple sdk for working with LocalBitcoins API
Project description
localbitcoins-sdk
A simple library for working with LocalBitcoins API
I created this library to make it easier to use the LocalBitcoins API.
The library is very simple.
It has just one object Client
, with one custom method send_request
.
How to use it?
Install it
pip install localbitcoins-sdk
Use it
# Import the Client
from lb_sdk import Client
# Create a Client object with the hmac key and the hmac secret from localbitcoins.
client = Client('your-hmac-key-here', 'your-hmac-secret-here')
# Send a request and get a response data.
data = client.send_request('/api/myself/')
# By default the client uses the get request method, but you can send a post request.
data = client.send_request('/api/logout/', 'post')
# Or you can send a request with any parameters.
params = {
'trade_type': 'LOCAL_SELL',
'currency': 'RUB',
'countrycode': 'RU',
}
data = client.send_request('/api/ads/', params=params)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for localbitcoins_sdk-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f25cf8283fa9f154b9dada67ff0635853b06631e5d624fa72017e1e595fc74bf |
|
MD5 | 8ec04a7f1889448bdd1eb37dbe0c9bf3 |
|
BLAKE2b-256 | 76e195c4d17b5b9ea37441f6a480ef01c21d593d8d0e4df79bc63b9c0fe99429 |