Skip to content
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

Added Vanilla Options Support #764

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
e2b391d
Updated .gitignore
Ollie-Hooper Apr 7, 2021
dc552a7
Added options URLs
Ollie-Hooper Apr 7, 2021
9511e0e
Added uri creation function
Ollie-Hooper Apr 7, 2021
aa2306b
Added request options api function
Ollie-Hooper Apr 7, 2021
a1f6800
Added options ping function
Ollie-Hooper Apr 7, 2021
1f28008
Added all endpoints under quoting interface
Ollie-Hooper Apr 7, 2021
4f8c5f0
Changed mandatory to required
Ollie-Hooper Apr 7, 2021
0c19ba8
Added options websockets
Ollie-Hooper Apr 8, 2021
f1116df
Added options multiplex socket
Ollie-Hooper Apr 8, 2021
a050ca1
Added return if binary response cannot be decompressed
Ollie-Hooper Apr 8, 2021
d4cd321
Added account and trading interface endpoints
Ollie-Hooper Apr 8, 2021
c01820b
Renamed options_depth to options_order_book
Ollie-Hooper Apr 8, 2021
83d33be
Added OptionsDepthCacheManager
Ollie-Hooper Apr 8, 2021
66aaf14
Pointless change so that all docstrings are currently derived exactly…
Ollie-Hooper Apr 8, 2021
005507d
Added options quoting interface endpoints docs to Endpoints.md
Ollie-Hooper Apr 8, 2021
be53ec5
Added options account and trading interface endpoints docs to Endpoin…
Ollie-Hooper Apr 8, 2021
cea537f
Added options depth cache note in documentation
Ollie-Hooper Apr 8, 2021
73c59e4
Added testnet flag in client and options testnet support
Ollie-Hooper Apr 8, 2021
936a0f6
Corrected signed flag to True in signed options requests
Ollie-Hooper Apr 9, 2021
57d3416
Added option trade list endpoint
Ollie-Hooper Apr 9, 2021
7e769f2
Added options testnet websocket support - have not been able to test …
Ollie-Hooper Apr 9, 2021
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
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