Skip to content

Commit dc552a7

Browse files
committed
Added options URLs
1 parent e2b391d commit dc552a7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

binance/client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@ class Client(object):
1919
FUTURES_DATA_URL = 'https://fapi.binance.{}/futures/data'
2020
FUTURES_COIN_URL = "https://dapi.binance.{}/dapi"
2121
FUTURES_COIN_DATA_URL = "https://dapi.binance.{}/futures/data"
22+
OPTIONS_URL = 'https://vapi.binance.{}/vapi'
2223
PUBLIC_API_VERSION = 'v1'
2324
PRIVATE_API_VERSION = 'v3'
2425
WITHDRAW_API_VERSION = 'v3'
2526
MARGIN_API_VERSION = 'v1'
2627
FUTURES_API_VERSION = 'v1'
2728
FUTURES_API_VERSION2 = "v2"
29+
OPTIONS_API_VERSION = 'v1'
2830

2931
SYMBOL_TYPE_SPOT = 'SPOT'
3032

@@ -120,6 +122,7 @@ def __init__(self, api_key=None, api_secret=None, requests_params=None, tld='com
120122
self.FUTURES_DATA_URL = self.FUTURES_DATA_URL.format(tld)
121123
self.FUTURES_COIN_URL = self.FUTURES_COIN_URL.format(tld)
122124
self.FUTURES_COIN_DATA_URL = self.FUTURES_COIN_DATA_URL.format(tld)
125+
self.OPTIONS_URL = self.OPTIONS_URL.format(tld)
123126

124127
self.API_KEY = api_key
125128
self.API_SECRET = api_secret

0 commit comments

Comments
 (0)