From 397470768e509f33cd0c34f044b7f7ed34084e24 Mon Sep 17 00:00:00 2001 From: aoki-h-jp Date: Wed, 15 Mar 2023 23:56:40 +0900 Subject: [PATCH] Update README.md --- README.md | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 48418d3..c43332d 100644 --- a/README.md +++ b/README.md @@ -19,16 +19,29 @@ This library can detect perpetual contract with a large divergence in funding ra **NOTE: This library does not include the feature to perform automatic funding rate arbitrage.** -[//]: # (## Installation) +## Installation -[//]: # () -[//]: # (```bash) -[//]: # (pip install funding-rate-arbitrage) +```bash -[//]: # (```) +git clone https://github.com/aoki-h-jp/funding-rate-arbitrage.git +pip install funding-rate-arbitrage + +``` + +## Usage +```python +from frarb import FundingRateArbitrage + +fr = FundingRateArbitrage() + +# fetch all perp funding rate on binance +fr_binance = fr.fetch_all_funding_rate(exchange='binance') + +# get commission on binance with futures, maker +cm_binance = fr.get_commission(exchange='binance', trade='futures', taker=False) +``` -[//]: # (## Example) ## Disclaimer This project is for educational purposes only. You should not construe any such information or other material as legal,