Skip to content

Navigation Menu

Sign in
Sign up

Latest commit

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date

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

0 stars

Watchers

1 watching

Forks

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /