def __init__( self, time=None, lsr_taker=None, lsr_account=None, liq_size=None, open_interest=None, local_vars_configuration=None, ): # noqa: E501 # type: (int, float, float, int, int, Configuration) -> None """ContractStat - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._time = None self._lsr_taker = None self._lsr_account = None self._liq_size = None self._open_interest = None self.discriminator = None if time is not None: self.time = time if lsr_taker is not None: self.lsr_taker = lsr_taker if lsr_account is not None: self.lsr_account = lsr_account if liq_size is not None: self.liq_size = liq_size if open_interest is not None: self.open_interest = open_interest
def __init__( self, type='limit', side=None, price=None, amount=None, account=None, time_in_force=None, local_vars_configuration=None, ): # noqa: E501 # type: (str, str, str, str, str, str, Configuration) -> None """SpotPricePutOrder - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._type = None self._side = None self._price = None self._amount = None self._account = None self._time_in_force = None self.discriminator = None if type is not None: self.type = type self.side = side self.price = price self.amount = amount self.account = account if time_in_force is not None: self.time_in_force = time_in_force
def __init__( self, id=None, create_time=None, create_time_ms=None, side=None, role=None, amount=None, price=None, order_id=None, fee=None, fee_currency=None, point_fee=None, gt_fee=None, local_vars_configuration=None, ): # noqa: E501 # type: (str, str, str, str, str, str, str, str, str, str, str, str, Configuration) -> None """Trade - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._id = None self._create_time = None self._create_time_ms = None self._side = None self._role = None self._amount = None self._price = None self._order_id = None self._fee = None self._fee_currency = None self._point_fee = None self._gt_fee = None self.discriminator = None if id is not None: self.id = id if create_time is not None: self.create_time = create_time if create_time_ms is not None: self.create_time_ms = create_time_ms if side is not None: self.side = side if role is not None: self.role = role if amount is not None: self.amount = amount if price is not None: self.price = price if order_id is not None: self.order_id = order_id if fee is not None: self.fee = fee if fee_currency is not None: self.fee_currency = fee_currency if point_fee is not None: self.point_fee = point_fee if gt_fee is not None: self.gt_fee = gt_fee
def __init__( self, time=None, contract=None, leverage=None, size=None, margin=None, entry_price=None, liq_price=None, mark_price=None, order_id=None, order_price=None, fill_price=None, left=None, local_vars_configuration=None, ): # noqa: E501 # type: (int, str, str, int, str, str, str, str, int, str, str, int, Configuration) -> None """FuturesLiquidate - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._time = None self._contract = None self._leverage = None self._size = None self._margin = None self._entry_price = None self._liq_price = None self._mark_price = None self._order_id = None self._order_price = None self._fill_price = None self._left = None self.discriminator = None if time is not None: self.time = time if contract is not None: self.contract = contract if leverage is not None: self.leverage = leverage if size is not None: self.size = size if margin is not None: self.margin = margin if entry_price is not None: self.entry_price = entry_price if liq_price is not None: self.liq_price = liq_price if mark_price is not None: self.mark_price = mark_price if order_id is not None: self.order_id = order_id if order_price is not None: self.order_price = order_price if fill_price is not None: self.fill_price = fill_price if left is not None: self.left = left
def __init__( self, currency=None, available=None, locked=None, lent=None, total_lent=None, local_vars_configuration=None ): # noqa: E501 # type: (str, str, str, str, str, Configuration) -> None """FundingAccount - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._currency = None self._available = None self._locked = None self._lent = None self._total_lent = None self.discriminator = None if currency is not None: self.currency = currency if available is not None: self.available = available if locked is not None: self.locked = locked if lent is not None: self.lent = lent if total_lent is not None: self.total_lent = total_lent
def __init__(self, currency_pair=None, id=None, succeeded=None, label=None, message=None, local_vars_configuration=None): # noqa: E501 # type: (str, str, bool, str, str, Configuration) -> None """CancelOrderResult - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._currency_pair = None self._id = None self._succeeded = None self._label = None self._message = None self.discriminator = None if currency_pair is not None: self.currency_pair = currency_pair if id is not None: self.id = id if succeeded is not None: self.succeeded = succeeded if label is not None: self.label = label if message is not None: self.message = message
def __init__(self, strategy_type=None, price_type=None, price=None, rule=None, expiration=None, local_vars_configuration=None): # noqa: E501 # type: (int, int, str, int, int, Configuration) -> None """FuturesPriceTrigger - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._strategy_type = None self._price_type = None self._price = None self._rule = None self._expiration = None self.discriminator = None if strategy_type is not None: self.strategy_type = strategy_type if price_type is not None: self.price_type = price_type if price is not None: self.price = price if rule is not None: self.rule = rule if expiration is not None: self.expiration = expiration
def __init__(self, t=None, v=None, c=None, h=None, l=None, o=None, local_vars_configuration=None): # noqa: E501 # type: (float, int, str, str, str, str, Configuration) -> None """FuturesCandlestick - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._t = None self._v = None self._c = None self._h = None self._l = None self._o = None self.discriminator = None if t is not None: self.t = t if v is not None: self.v = v if c is not None: self.c = c if h is not None: self.h = h if l is not None: self.l = l if o is not None: self.o = o
def __init__(self, id=None, create_time=None, principal=None, interest=None, local_vars_configuration=None): # noqa: E501 # type: (str, str, str, str, Configuration) -> None """Repayment - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._id = None self._create_time = None self._principal = None self._interest = None self.discriminator = None if id is not None: self.id = id if create_time is not None: self.create_time = create_time if principal is not None: self.principal = principal if interest is not None: self.interest = interest
def __init__(self, time=None, change=None, balance=None, type=None, text=None, local_vars_configuration=None): # noqa: E501 # type: (float, str, str, str, str, Configuration) -> None """FuturesAccountBook - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._time = None self._change = None self._balance = None self._type = None self._text = None self.discriminator = None if time is not None: self.time = time if change is not None: self.change = change if balance is not None: self.balance = balance if type is not None: self.type = type if text is not None: self.text = text
def __init__( self, id=None, create_time=None, contract=None, size=None, price=None, local_vars_configuration=None ): # noqa: E501 # type: (int, float, str, int, str, Configuration) -> None """FuturesTrade - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._id = None self._create_time = None self._contract = None self._size = None self._price = None self.discriminator = None if id is not None: self.id = id if create_time is not None: self.create_time = create_time if contract is not None: self.contract = contract if size is not None: self.size = size if price is not None: self.price = price
def __init__( self, currency=None, _from=None, to=None, amount=None, currency_pair=None, settle=None, local_vars_configuration=None, ): # noqa: E501 # type: (str, str, str, str, str, str, Configuration) -> None """Transfer - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._currency = None self.__from = None self._to = None self._amount = None self._currency_pair = None self._settle = None self.discriminator = None self.currency = currency self._from = _from self.to = to self.amount = amount if currency_pair is not None: self.currency_pair = currency_pair if settle is not None: self.settle = settle
def __init__( self, chain=None, address=None, payment_id=None, payment_name=None, obtain_failed=None, local_vars_configuration=None, ): # noqa: E501 # type: (str, str, str, str, int, Configuration) -> None """MultiChainAddressItem - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._chain = None self._address = None self._payment_id = None self._payment_name = None self._obtain_failed = None self.discriminator = None if chain is not None: self.chain = chain if address is not None: self.address = address if payment_id is not None: self.payment_id = payment_id if payment_name is not None: self.payment_name = payment_name if obtain_failed is not None: self.obtain_failed = obtain_failed
def __init__(self, currency=None, side=None, auto_renew=None, currency_pair=None, loan_id=None, local_vars_configuration=None): # noqa: E501 # type: (str, str, bool, str, str, Configuration) -> None """LoanPatch - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._currency = None self._side = None self._auto_renew = None self._currency_pair = None self._loan_id = None self.discriminator = None self.currency = currency self.side = side self.auto_renew = auto_renew if currency_pair is not None: self.currency_pair = currency_pair if loan_id is not None: self.loan_id = loan_id
def __init__(self, time=None, contract=None, side=None, pnl=None, text=None, local_vars_configuration=None): # noqa: E501 # type: (float, str, str, str, str, Configuration) -> None """PositionClose - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._time = None self._contract = None self._side = None self._pnl = None self._text = None self.discriminator = None if time is not None: self.time = time if contract is not None: self.contract = contract if side is not None: self.side = side if pnl is not None: self.pnl = pnl if text is not None: self.text = text
def __init__( self, id=None, base=None, quote=None, fee=None, min_base_amount=None, min_quote_amount=None, amount_precision=None, precision=None, trade_status=None, sell_start=None, buy_start=None, local_vars_configuration=None, ): # noqa: E501 # type: (str, str, str, str, str, str, int, int, str, int, int, Configuration) -> None """CurrencyPair - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._id = None self._base = None self._quote = None self._fee = None self._min_base_amount = None self._min_quote_amount = None self._amount_precision = None self._precision = None self._trade_status = None self._sell_start = None self._buy_start = None self.discriminator = None if id is not None: self.id = id if base is not None: self.base = base if quote is not None: self.quote = quote if fee is not None: self.fee = fee if min_base_amount is not None: self.min_base_amount = min_base_amount if min_quote_amount is not None: self.min_quote_amount = min_quote_amount if amount_precision is not None: self.amount_precision = amount_precision if precision is not None: self.precision = precision if trade_status is not None: self.trade_status = trade_status if sell_start is not None: self.sell_start = sell_start if buy_start is not None: self.buy_start = buy_start
def __init__(self, id=None, local_vars_configuration=None): # noqa: E501 # type: (int, Configuration) -> None """TriggerOrderResponse - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._id = None self.discriminator = None if id is not None: self.id = id
def __init__( self, currency=None, name=None, name_cn=None, deposit=None, withdraw_percent=None, withdraw_fix=None, withdraw_day_limit=None, withdraw_amount_mini=None, withdraw_day_limit_remain=None, withdraw_eachtime_limit=None, local_vars_configuration=None, ): # noqa: E501 # type: (str, str, str, str, str, str, str, str, str, str, Configuration) -> None """WithdrawStatus - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._currency = None self._name = None self._name_cn = None self._deposit = None self._withdraw_percent = None self._withdraw_fix = None self._withdraw_day_limit = None self._withdraw_amount_mini = None self._withdraw_day_limit_remain = None self._withdraw_eachtime_limit = None self.discriminator = None if currency is not None: self.currency = currency if name is not None: self.name = name if name_cn is not None: self.name_cn = name_cn if deposit is not None: self.deposit = deposit if withdraw_percent is not None: self.withdraw_percent = withdraw_percent if withdraw_fix is not None: self.withdraw_fix = withdraw_fix if withdraw_day_limit is not None: self.withdraw_day_limit = withdraw_day_limit if withdraw_amount_mini is not None: self.withdraw_amount_mini = withdraw_amount_mini if withdraw_day_limit_remain is not None: self.withdraw_day_limit_remain = withdraw_day_limit_remain if withdraw_eachtime_limit is not None: self.withdraw_eachtime_limit = withdraw_eachtime_limit
def __init__( self, user_id=None, taker_fee=None, maker_fee=None, gt_discount=None, gt_taker_fee=None, gt_maker_fee=None, loan_fee=None, point_type=None, futures_taker_fee=None, futures_maker_fee=None, local_vars_configuration=None, ): # noqa: E501 # type: (int, str, str, bool, str, str, str, str, str, str, Configuration) -> None """TradeFee - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._user_id = None self._taker_fee = None self._maker_fee = None self._gt_discount = None self._gt_taker_fee = None self._gt_maker_fee = None self._loan_fee = None self._point_type = None self._futures_taker_fee = None self._futures_maker_fee = None self.discriminator = None if user_id is not None: self.user_id = user_id if taker_fee is not None: self.taker_fee = taker_fee if maker_fee is not None: self.maker_fee = maker_fee if gt_discount is not None: self.gt_discount = gt_discount if gt_taker_fee is not None: self.gt_taker_fee = gt_taker_fee if gt_maker_fee is not None: self.gt_maker_fee = gt_maker_fee if loan_fee is not None: self.loan_fee = loan_fee if point_type is not None: self.point_type = point_type if futures_taker_fee is not None: self.futures_taker_fee = futures_taker_fee if futures_maker_fee is not None: self.futures_maker_fee = futures_maker_fee
def __init__(self, asks=None, bids=None, local_vars_configuration=None): # noqa: E501 # type: (list[list[str]], list[list[str]], Configuration) -> None """OrderBook - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._asks = None self._bids = None self.discriminator = None self.asks = asks self.bids = bids
def __init__(self, configuration=None, header_name=None, header_value=None, cookie=None, pool_threads=None): if configuration is None: configuration = Configuration() self.configuration = configuration self.pool_threads = pool_threads self.rest_client = rest.RESTClientObject(configuration) self.default_headers = {} if header_name is not None: self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. self.user_agent = 'OpenAPI-Generator/4.7.2/python'
def __init__(self, status=None, local_vars_configuration=None): # noqa: E501 # type: (str, Configuration) -> None """AutoRepaySetting - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._status = None self.discriminator = None if status is not None: self.status = status
def __init__( self, initial=None, trigger=None, id=None, user=None, create_time=None, finish_time=None, trade_id=None, status=None, finish_as=None, reason=None, local_vars_configuration=None, ): # noqa: E501 # type: (FuturesInitialOrder, FuturesPriceTrigger, int, int, float, float, int, str, str, str, Configuration) -> None """FuturesPriceTriggeredOrder - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._initial = None self._trigger = None self._id = None self._user = None self._create_time = None self._finish_time = None self._trade_id = None self._status = None self._finish_as = None self._reason = None self.discriminator = None self.initial = initial self.trigger = trigger if id is not None: self.id = id if user is not None: self.user = user if create_time is not None: self.create_time = create_time if finish_time is not None: self.finish_time = finish_time if trade_id is not None: self.trade_id = trade_id if status is not None: self.status = status if finish_as is not None: self.finish_as = finish_as if reason is not None: self.reason = reason
def __init__( self, trigger=None, put=None, id=None, user=None, market=None, ctime=None, ftime=None, fired_order_id=None, status=None, reason=None, local_vars_configuration=None, ): # noqa: E501 # type: (SpotPriceTrigger, SpotPricePutOrder, int, int, str, float, float, int, str, str, Configuration) -> None """SpotPriceTriggeredOrder - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._trigger = None self._put = None self._id = None self._user = None self._market = None self._ctime = None self._ftime = None self._fired_order_id = None self._status = None self._reason = None self.discriminator = None self.trigger = trigger self.put = put if id is not None: self.id = id if user is not None: self.user = user self.market = market if ctime is not None: self.ctime = ctime if ftime is not None: self.ftime = ftime if fired_order_id is not None: self.fired_order_id = fired_order_id if status is not None: self.status = status if reason is not None: self.reason = reason
def __init__(self, t=None, b=None, local_vars_configuration=None): # noqa: E501 # type: (int, str, Configuration) -> None """InsuranceRecord - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._t = None self._b = None self.discriminator = None if t is not None: self.t = t if b is not None: self.b = b
def __init__( self, currency_pair=None, last=None, lowest_ask=None, highest_bid=None, change_percentage=None, base_volume=None, quote_volume=None, high_24h=None, low_24h=None, local_vars_configuration=None, ): # noqa: E501 # type: (str, str, str, str, str, str, str, str, str, Configuration) -> None """Ticker - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._currency_pair = None self._last = None self._lowest_ask = None self._highest_bid = None self._change_percentage = None self._base_volume = None self._quote_volume = None self._high_24h = None self._low_24h = None self.discriminator = None if currency_pair is not None: self.currency_pair = currency_pair if last is not None: self.last = last if lowest_ask is not None: self.lowest_ask = lowest_ask if highest_bid is not None: self.highest_bid = highest_bid if change_percentage is not None: self.change_percentage = change_percentage if base_volume is not None: self.base_volume = base_volume if quote_volume is not None: self.quote_volume = quote_volume if high_24h is not None: self.high_24h = high_24h if low_24h is not None: self.low_24h = low_24h
def __init__( self, time=None, contract=None, leverage=None, size=None, margin=None, entry_price=None, settle_price=None, profit=None, fee=None, local_vars_configuration=None, ): # noqa: E501 # type: (int, str, str, int, str, str, str, str, str, Configuration) -> None """DeliverySettlement - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._time = None self._contract = None self._leverage = None self._size = None self._margin = None self._entry_price = None self._settle_price = None self._profit = None self._fee = None self.discriminator = None if time is not None: self.time = time if contract is not None: self.contract = contract if leverage is not None: self.leverage = leverage if size is not None: self.size = size if margin is not None: self.margin = margin if entry_price is not None: self.entry_price = entry_price if settle_price is not None: self.settle_price = settle_price if profit is not None: self.profit = profit if fee is not None: self.fee = fee
def __init__(self, currency_pair=None, id=None, local_vars_configuration=None): # noqa: E501 # type: (str, str, Configuration) -> None """CancelOrder - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._currency_pair = None self._id = None self.discriminator = None self.currency_pair = currency_pair self.id = id
def __init__(self, currency=None, address=None, local_vars_configuration=None): # noqa: E501 # type: (str, str, Configuration) -> None """DepositAddress - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._currency = None self._address = None self.discriminator = None self.currency = currency self.address = address
def __init__( self, contract=None, size=None, price=None, close=False, tif='gtc', text=None, reduce_only=False, is_reduce_only=None, is_close=None, local_vars_configuration=None, ): # noqa: E501 # type: (str, int, str, bool, str, str, bool, bool, bool, Configuration) -> None """FuturesInitialOrder - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._contract = None self._size = None self._price = None self._close = None self._tif = None self._text = None self._reduce_only = None self._is_reduce_only = None self._is_close = None self.discriminator = None self.contract = contract if size is not None: self.size = size self.price = price if close is not None: self.close = close if tif is not None: self.tif = tif if text is not None: self.text = text if reduce_only is not None: self.reduce_only = reduce_only if is_reduce_only is not None: self.is_reduce_only = is_reduce_only if is_close is not None: self.is_close = is_close