Skip to content

CryptocracyExchange/balances

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

balances

CircleCI

API Contract

  • initBalance (to set a new user's balance for all currencies, available & actual, to 0)
    • receives: {userID: [string, required]}
  • checkBalance (to check a desired usernames balance of specified currency type)
    • receives: {userID: [string, required], currency: [string, required, options: [BTC, LTC, ETH]]}, balanceType: {string, required, options:['available', 'actual']}
  • updateBalance (to increment or decrement desired usernames balance of specified currency type)
    • receives: {userID: [string, required], update: [integer], currency: [string, required, options: [BTC, LTC, ETH]], balanceType: [string, required (unless isExternal === false)], isExternal: [boolean] }
  • returnBalance (response event to 'checkBalance' & 'updateBalance')
    • returns: {userID: [string, required], currency: [string, required, options: [BTC, LTC, ETH], balance: [integer], balanceType: [string, options:['available', 'actual']]}

About

Cryptocracy Balances Service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •