Skip to content

annu12340/QuoteManager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

QuoteManager

The different classes in the file :-

  1. Quote

  2. TradeResult

  3. QuoteManager

    • add_or_update_quote_by_guid
    • remove_quote
    • remove_all_quotes
    • get_best_quote_with_available_volume
    • execute_Trade

    extra added function

    • execute_Trade_recursion
    • print_all_Quote_dic
    • print_all_Trade_dic

The data structure used is dictionary

  • Quote_dic : To store the details about the quotes
  • Trade_dic : To store the trade execution details

A python dictionary is thread safe


SCREENSHOTS

  1. add_or_update_quote_by_guid 1

  2. remove_all_quotes

2

  1. get_best_quote_with_available_volume 3

  2. execute_Trade 4 6

Pytest Screenshot (70)

About

Coding Assignment for StoreFront

Topics

Resources

Stars

Watchers

Forks

Languages