Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Zebpay REST Client

This is a simple example package to help people in integrating Zebpay REST APIs using python.

Getting Started

The file ./zebpay_client/ comes with folowing API implementations

  1. Login
  2. Verify OTP
  3. Verify PIN
  4. Balance
  5. Instant Buy/Sell

You can call function - authenticate_me which will initiate Login, VerifyOTP and VerfiyPIN APIs and autherize with your details provided via ZebPay class instance.

Sample use

# Create an instance of `ZebPay` class in your code which can be find in `project_directory/zebpay_client/`

z1 = ZebPay({
  'country_code': '<country_code>',
  'mobile_number': '<mobile_number>',
  'client_id': '<client_id>',
  'client_secret': '<client_secret>',
  'api_secret': '<api_secret>',
  'authorization_token': '<this_will_be_set_after_successful_authentication>',
  'req_limit_conf': {
    'daily_trade_limit': <your_choice>,
    'daily_withdraw_limit': <your_choice>,
    'total_trade_limit': <your_choice>,
    'total_withdraw_limit': <your_choice>,
    'scope': '<your_choice example - openid profile wallet:transactions:read wallet:transactions:send wallet:address:read trade:read trade:create offline_access>',
  'otp': '<your_otp>',
  'pin': '<your_pin>'
  }, '')

  print('Completed authetication........', z1.authenticate_me())
  print('Balances................', z1.get_balance('BTC-AUD').json())
  print('Instant................', z1.place_instant_order(0.005, 'BTC-AUD', 'buy', 14000.61).json())

You can’t perform that action at this time.