Skip to content

Add support for bitbank tools #147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion docs/TOOLS.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ Coincheck, BTC, Leverage Position, 3.456
Quoine, JPY, Margin, 300000
Quoine, JPY, Free Margin, 123456
Quoine, BTC, Leverage Position, 0.01
Bitbankcc, JPY, Cash, 123456
Bitbankcc, BTC, Cash, 0.123
```

## closeCcPosition - close all leverage positions by market orders in Coincheck
Expand All @@ -44,13 +46,19 @@ npm run closeBfPosition
npm run closeQuPosition
```

## closeBbPosition - sell out all cache positions by market orders in Bitbankcc

```bash
npm run closeBbPosition
```

## clearPairs - clear open pair data in R2 internal database. This doesn't send any orders.

```bash
npm run clearPairs
```

## closeAll - execute the three close scripts above, execute clearPairs, then show balances by getBalance.
## closeAll - execute the four close scripts above, execute clearPairs, then show balances by getBalance.

```bash
npm run closeAll
Expand Down
10 changes: 9 additions & 1 deletion docs/TOOLS_JP.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ Coincheck, BTC, Leverage Position, 3.456
Quoine, JPY, Margin, 300000
Quoine, JPY, Free Margin, 123456
Quoine, BTC, Leverage Position, 0.01
Bitbankcc, JPY, Cash, 123456
Bitbankcc, BTC, Cash, 0.123
```

## closeCcPosition - Coincheckの全レバレッジポジションを成行注文でクローズ
Expand All @@ -44,13 +46,19 @@ npm run closeBfPosition
npm run closeQuPosition
```

## closeBbPosition - Bitbankccの全現物BTCを成行注文で売却

```bash
npm run closeBbPosition
```

## clearPairs - R2が保持しているオープンペア情報をクリアする(取引は送信されません)

```bash
npm run clearPairs
```

## closeAll - 上記3つのcloseを順に実行し、clearPairsでペア情報をクリア後、getBalanceを実行する。
## closeAll - 上記4つのcloseを順に実行し、clearPairsでペア情報をクリア後、getBalanceを実行する。

```bash
npm run closeAll
Expand Down
Loading