Skip to content

Commit

Permalink
Merge pull request #764 from Ollie-Hooper/feature/vanilla-options
Browse files Browse the repository at this point in the history
Added Vanilla Options Support
  • Loading branch information
Sam McHardy authored Apr 20, 2021
2 parents e314543 + 7e769f2 commit 131a641
Show file tree
Hide file tree
Showing 6 changed files with 704 additions and 9 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ build/
dist/
python_binance.egg-info/
*__pycache__
*.egg-info/
*.egg-info/
.idea/
venv/
100 changes: 100 additions & 0 deletions Endpoints.md
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,106 @@
> :warning: Not yet implemented
- *User Data Streams*
> :warning: Not yet implemented
### [Vanilla Options](https://binance-docs.github.io/apidocs/voptions/en/)
- *Quoting interface*
- **GET /vapi/v1/ping** (Test connectivity)
```python
client.options_ping()
```
- **GET /vapi/v1/time** (Get server time)
```python
client.options_time()
```
- **GET /vapi/v1/optionInfo** (Get current trading pair info)
```python
client.options_info()
```
- **GET /vapi/v1/exchangeInfo** (Get current limit info and trading pair info)
```python
client.options_exchange_info()
```
- **GET /vapi/v1/index** (Get the spot index price)
```python
client.options_index_price(underlying)
```
- **GET /vapi/v1/ticker** (Get the latest price)
```python
client.options_price(symbol)
```
- **GET /vapi/v1/mark** (Get the latest mark price)
```python
client.options_mark_price(symbol)
```
- **GET /vapi/v1/depth** (Depth information)
```python
client.options_order_book(symbol, limit)
```
- **GET /vapi/v1/klines** (Candle data)
```python
client.options_klines(symbol, interval, startTime, endTime, limit)
```
- **GET /vapi/v1/trades** (Recently completed Option trades)
```python
client.options_recent_trades(symbol, limit)
```
- **GET /vapi/v1/historicalTrades** (Query trade history)
```python
client.options_historical_trades(symbol, fromId, limit)
```
- *Account and trading interface*
- **GET /vapi/v1/account (HMAC SHA256)** (Account asset info (USER_DATA))
```python
client.options_account_info(recvWindow)
```
- **POST /vapi/v1/transfer (HMAC SHA256)** (Funds transfer (USER_DATA))
```python
client.options_funds_transfer(currency, type, amount, recvWindow)
```
- **GET /vapi/v1/position (HMAC SHA256)** (Option holdings info (USER_DATA))
```python
client.options_positions(symbol, recvWindow)
```
- **POST /vapi/v1/bill (HMAC SHA256)** (Account funding flow (USER_DATA))
```python
client.options_bill(currency, recordId, startTime, endTime, limit, recvWindow)
```
- **POST /vapi/v1/order (HMAC SHA256)** (Option order (TRADE))
```python
client.options_place_order(symbol, side, type, quantity, price, timeInForce, reduceOnly, postOnly, \
newOrderRespType, clientOrderId, recvWindow, recvWindow)
```
- **POST /vapi/v1/batchOrders (HMAC SHA256)** (Place Multiple Option orders (TRADE))
```python
client.options_place_batch_order(orders, recvWindow)
```
- **DELETE /vapi/v1/order (HMAC SHA256)** (Cancel Option order (TRADE))
```python
client.options_cancel_order(symbol, orderId, clientOrderId, recvWindow)
```
- **DELETE /vapi/v1/batchOrders (HMAC SHA256)** (Cancel Multiple Option orders (TRADE))
```python
client.options_cancel_batch_order(symbol, orderIds, clientOrderIds, recvWindow)
```
- **DELETE /vapi/v1/allOpenOrders (HMAC SHA256)** (Cancel all Option orders (TRADE))
```python
client.options_cancel_all_orders(symbol, recvWindow)
```
- **GET /vapi/v1/order (HMAC SHA256)** (Query Option order (TRADE))
```python
client.options_query_order(symbol, orderId, clientOrderId, recvWindow)
```
- **GET /vapi/v1/openOrders (HMAC SHA256)** (Query current pending Option orders (TRADE))
```python
client.options_query_pending_orders(symbol, orderId, startTime, endTime, limit, recvWindow)
```
- **GET /vapi/v1/historyOrders (HMAC SHA256)** (Query Option order history (TRADE))
```python
client.options_query_order_history(symbol, orderId, startTime, endTime, limit, recvWindow)
```
- **GET /vapi/v1/userTrades (HMAC SHA256)** (Option Trade List (USER_DATA))
```python
client.options_user_trades(symbol, fromId, startTime, endTime, limit, recvWindow)
```
### [COIN-M Futures](https://binance-docs.github.io/apidocs/delivery/en/)
> :warning: Not yet implemented
### [USDT-M Futures testnet](https://binance-docs.github.io/apidocs/testnet/en/)
Expand Down
Loading

0 comments on commit 131a641

Please sign in to comment.