Skip to content

dojoking/cobo-fastapi-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cobo WaaS 2 Demo

This project demonstrates how to use Cobo's WaaS 2 APIs/SDKs to build a basic wallet application.

Setup

  1. Clone the repository
  2. Install dependencies: pip install -r requirements.txt
  3. Copy .env.example to .env and fill in your Cobo API credentials
  4. Run the application: uvicorn app.main:app --reload

API Endpoints

  • GET /api/wallets: List all wallets
  • GET /api/wallets/{wallet_id}/balance: Get wallet balance
  • GET /api/wallets/{wallet_id}/transactions: Get wallet transactions
  • POST /api/wallets/{wallet_id}/deposit: Deposit to wallet
  • POST /api/wallets/{wallet_id}/withdraw: Withdraw from wallet
  • POST /api/webhook: Handle webhook events

Resources

About

A template for building Cobo Applications using fastapi framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages