Skip to content

Commit

Permalink
Added options URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ollie-Hooper committed Apr 7, 2021
1 parent e2b391d commit dc552a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions binance/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ class Client(object):
FUTURES_DATA_URL = 'https://fapi.binance.{}/futures/data'
FUTURES_COIN_URL = "https://dapi.binance.{}/dapi"
FUTURES_COIN_DATA_URL = "https://dapi.binance.{}/futures/data"
OPTIONS_URL = 'https://vapi.binance.{}/vapi'
PUBLIC_API_VERSION = 'v1'
PRIVATE_API_VERSION = 'v3'
WITHDRAW_API_VERSION = 'v3'
MARGIN_API_VERSION = 'v1'
FUTURES_API_VERSION = 'v1'
FUTURES_API_VERSION2 = "v2"
OPTIONS_API_VERSION = 'v1'

SYMBOL_TYPE_SPOT = 'SPOT'

Expand Down Expand Up @@ -120,6 +122,7 @@ def __init__(self, api_key=None, api_secret=None, requests_params=None, tld='com
self.FUTURES_DATA_URL = self.FUTURES_DATA_URL.format(tld)
self.FUTURES_COIN_URL = self.FUTURES_COIN_URL.format(tld)
self.FUTURES_COIN_DATA_URL = self.FUTURES_COIN_DATA_URL.format(tld)
self.OPTIONS_URL = self.OPTIONS_URL.format(tld)

self.API_KEY = api_key
self.API_SECRET = api_secret
Expand Down

0 comments on commit dc552a7

Please sign in to comment.