Skip to main content

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

localbitcoins-sdk-0.0.4.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

localbitcoins_sdk-0.0.4-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

Details for the file localbitcoins-sdk-0.0.4.tar.gz.

File metadata

  • Download URL: localbitcoins-sdk-0.0.4.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.1 requests/2.26.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5

File hashes

Hashes for localbitcoins-sdk-0.0.4.tar.gz
Algorithm Hash digest
SHA256 5a2dd733283730a9ed91c40d790689edad1c15ad9b130f5012a0694ebdb0a0f4
MD5 d1575605d0d246683d238f0c7d37746d
BLAKE2b-256 2fcd0fa57c46c26769eded4663c9e3bbd94cd2c96a9155828f5e3e470c8b1a25

See more details on using hashes here.

File details

Details for the file localbitcoins_sdk-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: localbitcoins_sdk-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 18.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.1 requests/2.26.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5

File hashes

Hashes for localbitcoins_sdk-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f25cf8283fa9f154b9dada67ff0635853b06631e5d624fa72017e1e595fc74bf
MD5 8ec04a7f1889448bdd1eb37dbe0c9bf3
BLAKE2b-256 76e195c4d17b5b9ea37441f6a480ef01c21d593d8d0e4df79bc63b9c0fe99429

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page