-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from aoki-h-jp/release/1.1.0
Release/1.1.0
- Loading branch information
Showing
4 changed files
with
192 additions
and
4 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
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,13 @@ | ||
""" | ||
An example of getting large divergence between multi exchange. | ||
""" | ||
from frarb import FundingRateArbitrage | ||
|
||
|
||
if __name__ == '__main__': | ||
fr = FundingRateArbitrage() | ||
# Display Top 5 large funding rate divergence between multi exchange. | ||
print(fr.display_large_divergence_multi_exchange(display_num=5, sorted_by='divergence')) | ||
|
||
# Display Top 5 large funding rate divergence between multi exchange sorted by revenue. | ||
print(fr.display_large_divergence_multi_exchange(display_num=5, sorted_by='revenue')) |
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,13 @@ | ||
""" | ||
An example of getting large divergence by single exchange. | ||
""" | ||
from frarb import FundingRateArbitrage | ||
|
||
|
||
if __name__ == '__main__': | ||
fr = FundingRateArbitrage() | ||
# Display Top 5 large funding rate divergence on binance. | ||
print(fr.display_large_divergence_single_exchange(exchange='binance', display_num=5)) | ||
|
||
# Display Top 5 large funding rate divergence on bybit (minus FR). | ||
print(fr.display_large_divergence_single_exchange(exchange='bybit', display_num=5, minus=True)) |
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