code
stringlengths
3
6.57k
create_site(self, site_create_props)
SpoOperation(self.context)
ServiceOperationQuery(self, "CreateSite", None, site_create_props, "siteCreationProperties", result)
self.context.add_query(qry)
remove_site(self, site_url)
SpoOperation(self.context)
ServiceOperationQuery(self, "removeSite", [site_url], None, None, result)
self.context.add_query(qry)
remove_deleted_site(self, site_url)
restore_deleted_site(self, site_url)
get_site_properties_by_url(self, url, include_detail)
SiteProperties(self.context)
self._sites.add_child(site_props)
ServiceOperationQuery(self, "getSitePropertiesByUrl", None, payload, None, site_props)
self.context.add_query(qry)
get_site_properties_from_sharepoint_by_filters(self, _filter, start_index=0, include_detail=False)
SitePropertiesCollection(self.context)
SitePropertiesEnumerableFilter(_filter, start_index, include_detail)
self.context.add_query(qry)
root_site_url(self)
self.properties.get('RootSiteUrl', None)
_sites(self)
self.is_property_available('sites')
SitePropertiesCollection(self.context, ResourcePath("sites", self.resource_path)
Exchange(BaseExchange)
__init__(self, config={})
asyncio.get_event_loop()
config.get('aiohttp_trust_env', self.aiohttp_trust_env)
config.get('verify', self.verify)
config.get('cafile', certifi.where()
self.open()
super(Exchange, self)
__init__(config)
self.init_rest_rate_limiter()
init_rest_rate_limiter(self)
__del__(self)
self.logger.warning(self.id + " requires to release all resources with an explicit call to the .close()
exchange.close()
anymore (at the end of your async coroutine)
__aenter__(self)
self.open()
__aexit__(self, exc_type, exc, tb)
self.close()
open(self)
ssl.create_default_context(cafile=self.cafile)
aiohttp.TCPConnector(ssl=context, loop=self.asyncio_loop)
aiohttp.ClientSession(loop=self.asyncio_loop, connector=connector, trust_env=self.aiohttp_trust_env)
close(self)
self.session.close()
wait_for_token(self)
print('Waiting for tokens: Exchange: {0}'.format(self.id)
self.add_new_tokens()
random.choice(seconds_delays)
asyncio.sleep(delay)
add_new_tokens(self)
print('Adding new tokens: Exchange: {0}'.format(self.id)
time.monotonic()
math.floor((0.8 * 1000.0 * time_since_update)
min(self.rateLimitTokens + new_tokens, self.rateLimitMaxTokens)
fetch2(self, path, api='public', method='GET', params={}, headers=None, body=None)
self.throttle()
self.milliseconds()
self.sign(path, api, method, params, headers, body)
self.fetch(request['url'], request['method'], request['headers'], request['body'])
fetch(self, url, method='GET', headers=None, body=None)
self.prepare_request_headers(headers)
print("\nRequest:", method, url, headers, body)
self.logger.debug("%s %s, Request: %s %s", method, url, headers, body)
body.encode()
getattr(self.session, method.lower()
session_method(yarl.URL(url, encoded=True)
response.text()
self.parse_json(http_response)
print("\nResponse:", method, url, http_status_code, headers, http_response)
self.logger.debug("%s %s, Response: %s %s %s", method, url, http_status_code, headers, http_response)
ExchangeNotAvailable(method + ' ' + url)
RequestTimeout(method + ' ' + url)
ExchangeNotAvailable(method + ' ' + url)
ExchangeError(method + ' ' + url)
self.handle_errors(http_status_code, http_status_text, url, method, headers, http_response, json_response, request_headers, request_body)
self.handle_rest_errors(http_status_code, http_status_text, http_response, url, method)
self.handle_rest_response(http_response, json_response, url, method)
load_markets(self, reload=False, params={})
self.set_markets(self.markets)
self.fetch_currencies()
self.fetch_markets(params)
self.set_markets(markets, currencies)
fetch_fees(self)
self.fetch_trading_fees()
self.fetch_funding_fees()
load_fees(self, reload=False)
self.deep_extend(self.loaded_fees, await self.fetch_fees()
fetch_markets(self, params={})
self.to_array(self.markets)
fetch_currencies(self, params={})
fetch_status(self, params={})
self.fetch_time(params)
fetch_order_status(self, id, symbol=None, params={})
self.fetch_order(id, symbol, params)
fetch_partial_balance(self, part, params={})