Skip to content

PratikMahajan/Dynamic-Currency-Pricing-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dynamic Currency Pricing API

This project contains the following functionality:

  1. Transaction Matching Algorithm
  2. Coin Pricing Algorithm
  3. Verification Backend

Transaction Matching Algorithm:

Created a thread that ran the Transacton Mathing every minute. Used SQLITE3 to store all the transactions.
Following Tables were created.

  1. Buy_coins
  2. Sell_couns
  3. matched_txn + sell_txn + buy_txn
    Transacton matched and stored for users to query and retreive

Used Python-Flask and deployed on heroku/AWS-EBS

Coin Pricing Algorithm:

Dynamically price the coin according to to the current market sentiment(Twitter) and demand and supply gap.

Market Sentiment:
  • Positive news increased the price, negative decrease it.
  • Weights are given to user
    - If verified account/celebrities -> More Impact
    - If Followers>Following -> Impact according to ratio
    - If Following>Followers -> Less or negligible impact because can be spam accounts
  • Created custom formula so that prices are stable and not fluctuating randomly or frequently in minutes.

Verification Backend:

Used a combination of python-flask and AWS S3

  • Documents of users uploaded to AWS S3 and verification set through python flask on heroku/AWS-EBS
  • Verification admin manually verified users and sent verification confirmation
Pricing Algorithm and Matching algorithm are running as daemon threads

API Endpoints

BUY
  • URL:
    /buy
  • Method:
    POST
  • URL Params
    None
  • Data Params
  • Success Response
  • Error Response
SELL
  • URL:
    /sell
  • Method:
    POST
  • URL Params
    None
  • Data Params
  • Success Response
  • Error Response
BUY Matched
  • URL:
    /buymatched
  • Method:
    POST
  • URL Params
    None
  • Data Params
  • Success Response
  • Error Response
SELL Matched
  • URL:
    /sellmatched
  • Method:
    POST
  • URL Params
    None
  • Data Params
  • Success Response
  • Error Response
Get Dynamic Price
  • URL:
    /dynamicPrice
  • Method:
    GET
  • URL Params
    None
  • Data Params
  • Success Response
  • Error Response
Send Verification Flag
  • URL:
    /sendVerify
  • Method:
    POST
  • URL Params
    None
  • Data Params
  • Success Response
  • Error Response
Receive Verification Flag
  • URL:
    /recVerify
  • Method:
    POST
  • URL Params
    None
  • Data Params
  • Success Response
  • Error Response
Sell Transaction Received
  • URL:
    /delsel
  • Method:
    POST
  • URL Params
    None
  • Data Params
  • Success Response
  • Error Response
Buy Transaction Received
  • URL:
    /delbuy
  • Method:
    POST
  • URL Params
    None
  • Data Params
  • Success Response
  • Error Response
Get All Transactions
  • URL:
    /getTransactions
  • Method:
    POST
  • URL Params
    None
  • Data Params
  • Success Response
  • Error Response

About

Financial Transaction Matching & Currency Pricing API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages