-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
1,428 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"esbonio.sphinx.confDir": "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
![GitHubActions](https://github.com/karelze/tclf//actions/workflows/tests.yaml/badge.svg) | ||
![Codecov](https://codecov.io/gh/karlze/tclf/branch/master/graph/badge.svg) | ||
![CircleCI](https://dl.circleci.com/status-badge/img/gh/KarelZe/tclf/tree/master.svg?style=svg) | ||
![ReadTheDocs](https://readthedocs.org/projects/tclf/badge/?version=latest) | ||
|
||
# tclf 💸 | ||
|
||
[`scikit-learn`](https://scikit-learn.org/stable/)-compatible implementation of popular trade classification algorithms to classify financial markets transactions into buyer- and seller-initiated trades. | ||
|
||
## Algorithms | ||
|
||
- Tick test | ||
- Quote rule | ||
- LR algorithm | ||
- EMO rule | ||
- CLNV rule | ||
- Depth rule | ||
- Tradesize rule | ||
|
||
## Usage | ||
|
||
Documentation is available [here](https://tclf.readthedocs.io/en/latest/quick_start.html). | ||
|
||
## References | ||
|
||
<div class="csl-bib-body" style="line-height: 2; margin-left: 2em; text-indent:-2em;"> | ||
<div class="csl-entry">Chakrabarty, B., Li, B., Nguyen, V., & Van Ness, R. A. (2007). Trade classification algorithms for electronic communications network trades. <i>Journal of Banking & Finance</i>, <i>31</i>(12), 3806–3821. <a href="https://doi.org/10.1016/j.jbankfin.2007.03.003">https://doi.org/10.1016/j.jbankfin.2007.03.003</a></div> | ||
<span class="Z3988" title="url_ver=Z39.88-2004&ctx_ver=Z39.88-2004&rfr_id=info%3Asid%2Fzotero.org%3A2&rft_id=info%3Adoi%2F10.1016%2Fj.jbankfin.2007.03.003&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.atitle=Trade%20classification%20algorithms%20for%20electronic%20communications%20network%20trades&rft.jtitle=Journal%20of%20Banking%20%26%20Finance&rft.volume=31&rft.issue=12&rft.aufirst=Bidisha&rft.aulast=Chakrabarty&rft.au=Bidisha%20Chakrabarty&rft.au=Bingguang%20Li&rft.au=Vanthuan%20Nguyen&rft.au=Robert%20A.%20Van%20Ness&rft.date=2007&rft.pages=3806%E2%80%933821&rft.spage=3806&rft.epage=3821"></span> | ||
<div class="csl-entry">Ellis, K., Michaely, R., & O’Hara, M. (2000). The accuracy of trade classification rules: Evidence from nasdaq. <i>The Journal of Financial and Quantitative Analysis</i>, <i>35</i>(4), 529–551. <a href="https://doi.org/10.2307/2676254">https://doi.org/10.2307/2676254</a></div> | ||
<span class="Z3988" title="url_ver=Z39.88-2004&ctx_ver=Z39.88-2004&rfr_id=info%3Asid%2Fzotero.org%3A2&rft_id=info%3Adoi%2F10.2307%2F2676254&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.atitle=The%20accuracy%20of%20trade%20classification%20rules%3A%20evidence%20from%20nasdaq&rft.jtitle=The%20Journal%20of%20Financial%20and%20Quantitative%20Analysis&rft.volume=35&rft.issue=4&rft.aufirst=Katrina&rft.aulast=Ellis&rft.au=Katrina%20Ellis&rft.au=Roni%20Michaely&rft.au=Maureen%20O'Hara&rft.date=2000&rft.pages=529%E2%80%93551&rft.spage=529&rft.epage=551"></span> | ||
<div class="csl-entry">Grauer, C., Schuster, P., & Uhrig-Homburg, M. (2023). <i>Option trade classification</i>. <a href="https://doi.org/10.2139/ssrn.4098475">https://doi.org/10.2139/ssrn.4098475</a></div> | ||
<span class="Z3988" title="url_ver=Z39.88-2004&ctx_ver=Z39.88-2004&rfr_id=info%3Asid%2Fzotero.org%3A2&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&rft.type=document&rft.title=Option%20trade%20classification&rft.aufirst=Caroline&rft.aulast=Grauer&rft.au=Caroline%20Grauer&rft.au=Philipp%20Schuster&rft.au=Marliese%20Uhrig-Homburg&rft.date=2023"></span> | ||
<div class="csl-entry">Harris, L. (1989). A day-end transaction price anomaly. <i>The Journal of Financial and Quantitative Analysis</i>, <i>24</i>(1), 29. <a href="https://doi.org/10.2307/2330746">https://doi.org/10.2307/2330746</a></div> | ||
<span class="Z3988" title="url_ver=Z39.88-2004&ctx_ver=Z39.88-2004&rfr_id=info%3Asid%2Fzotero.org%3A2&rft_id=info%3Adoi%2F10.2307%2F2330746&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.atitle=A%20day-end%20transaction%20price%20anomaly&rft.jtitle=The%20Journal%20of%20Financial%20and%20Quantitative%20Analysis&rft.volume=24&rft.issue=1&rft.aufirst=Lawrence&rft.aulast=Harris&rft.au=Lawrence%20Harris&rft.date=1989&rft.pages=29"></span> | ||
<div class="csl-entry">Hasbrouck, J. (2009). Trading costs and returns for U.s. Equities: Estimating effective costs from daily data. <i>The Journal of Finance</i>, <i>64</i>(3), 1445–1477. <a href="https://doi.org/10.1111/j.1540-6261.2009.01469.x">https://doi.org/10.1111/j.1540-6261.2009.01469.x</a></div> | ||
<span class="Z3988" title="url_ver=Z39.88-2004&ctx_ver=Z39.88-2004&rfr_id=info%3Asid%2Fzotero.org%3A2&rft_id=info%3Adoi%2F10.1111%2Fj.1540-6261.2009.01469.x&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.atitle=Trading%20costs%20and%20returns%20for%20U.s.%20Equities%3A%20estimating%20effective%20costs%20from%20daily%20data&rft.jtitle=The%20Journal%20of%20Finance&rft.volume=64&rft.issue=3&rft.aufirst=Joel&rft.aulast=Hasbrouck&rft.au=Joel%20Hasbrouck&rft.date=2009&rft.pages=1445%E2%80%931477&rft.spage=1445&rft.epage=1477"></span> | ||
<div class="csl-entry">Lee, C., & Ready, M. J. (1991). Inferring trade direction from intraday data. <i>The Journal of Finance</i>, <i>46</i>(2), 733–746. <a href="https://doi.org/10.1111/j.1540-6261.1991.tb02683.x">https://doi.org/10.1111/j.1540-6261.1991.tb02683.x</a></div> | ||
<span class="Z3988" title="url_ver=Z39.88-2004&ctx_ver=Z39.88-2004&rfr_id=info%3Asid%2Fzotero.org%3A2&rft_id=info%3Adoi%2F10.1111%2Fj.1540-6261.1991.tb02683.x&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.atitle=Inferring%20trade%20direction%20from%20intraday%20data&rft.jtitle=The%20Journal%20of%20Finance&rft.volume=46&rft.issue=2&rft.aufirst=Charles&rft.aulast=Lee&rft.au=Charles%20Lee&rft.au=Mark%20J.%20Ready&rft.date=1991&rft.pages=733%E2%80%93746&rft.spage=733&rft.epage=746"></span> | ||
</div> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.