MCPcopy Create free account

hub / github.com/blankly-finance/blankly / functions

Functions1,497 in github.com/blankly-finance/blankly

↓ 89 callersMethod_request_with_params
(self, method, request_path, params)
blankly/exchanges/interfaces/okx/okx_api.py:308
↓ 56 callersFunctioninfo_print
This prints directly to stderr which allows a way to distinguish package info calls/errors from generic stdout Args: message: The mes
blankly/utils/utils.py:710
↓ 55 callersMethodget_id
Get the exchange-set order ID.
blankly/exchanges/orders/order.py:94
↓ 44 callersMethod_send_request
(self, method, url, signed, params=None, data=None)
blankly/exchanges/interfaces/binance/binance_api.py:73
↓ 44 callersMethodmarket_order
(self, symbol: str, side: str, size: float)
blankly/exchanges/strategy_logger.py:93
↓ 42 callersMethodget_exchange_type
No logging implemented
blankly/exchanges/strategy_logger.py:42
↓ 39 callersFunctionconvert_to_numpy
(data: Any)
blankly/indicators/utils.py:30
↓ 38 callersMethodadd_new_line
(input_string, *components, newline=True)
blankly/exchanges/orders/order.py:55
↓ 37 callersFunctioncheck_series
(data: Any)
blankly/indicators/utils.py:38
↓ 35 callersMethodget_open_orders
(self, market: str = None)
blankly/exchanges/interfaces/ftx/ftx_api.py:122
↓ 31 callersMethodsleep
(self, seconds: [int, float, str])
blankly/frameworks/model/model.py:108
↓ 28 callersMethodcancel_order
(self, order_id: str)
blankly/exchanges/interfaces/ftx/ftx_api.py:217
↓ 28 callersMethodget_price
Get the price that the order was set at. For limits this will be user-specified, for markets this will be market price.
blankly/exchanges/orders/limit_order.py:83
↓ 28 callersMethodtime
(self)
blankly/exchanges/interfaces/paper_trade/backtesting_wrapper.py:56
↓ 24 callersMethodget_exchange_type
(self)
blankly/exchanges/interfaces/keyless/keyless_api.py:68
↓ 22 callersMethod_send_request
(self, method, url, params=None, data=None)
blankly/exchanges/interfaces/oanda/oanda_api.py:60
↓ 22 callersMethodget_order
TODO - this needs to update the order on the backend
blankly/exchanges/strategy_logger.py:138
↓ 21 callersMethodget_account
(self)
tests/exchanges/interfaces/alpaca/test_alpaca_interface.py:196
↓ 21 callersMethodto_exchange_symbol
(symbol: str)
blankly/exchanges/interfaces/binance_futures/binance_futures_interface.py:64
↓ 20 callersMethod_signed_get
(self, path: str, params: Optional[Dict[str, Any]] = None)
blankly/exchanges/interfaces/ftx/ftx_api.py:70
↓ 20 callersMethodget_products
No logging implemented
blankly/exchanges/strategy_logger.py:58
↓ 20 callersMethodhistory
No logging implemented
blankly/exchanges/strategy_logger.py:71
↓ 19 callersMethodadd_price_event
Add Price Event. This will provide you with an updated price every time the callback is run Args: callback: The price eve
blankly/frameworks/strategy/strategy_base.py:83
↓ 19 callersFunctionget_valid_symbol
(exchange: str)
tests/testing_utils.py:21
↓ 19 callersFunctionsort_list_tuples
(list_with_tuples: list)
blankly/exchanges/managers/orderbook_manager.py:36
↓ 18 callersFunctioncompare_responses
Compare a set of responses against the others. This supports a large set of interfaces
tests/exchanges/test_interface_homogeneity.py:36
↓ 17 callersMethodget_interface
Get the authenticated interface for the object. This will provide authenticated API calls.
blankly/exchanges/exchange.py:99
↓ 17 callersMethodto_exchange_symbol
(symbol: str)
blankly/exchanges/interfaces/futures_exchange_interface.py:52
↓ 16 callersFunctioncompare_equal
(a, b)
tests/indicators/test_moving_averages.py:28
↓ 16 callersMethodwrite
(self, json_information: dict, override_path: str = None)
blankly/utils/utils.py:203
↓ 15 callersMethodbacktest
(self, file_path: str, model_id: str, args: dict, plan: str, type_: str, python_version: floa
blankly/deployment/api.py:148
↓ 15 callersMethodload
(self, override_path=None, override_allow_nonexistent=False)
blankly/utils/utils.py:180
↓ 14 callersMethod__correct_api_call
(response)
blankly/exchanges/interfaces/kucoin/kucoin_interface.py:61
↓ 14 callersMethod__request
Create a general request to the blankly API services Args: type_: Request types such as 'post', 'get', and 'delete'
blankly/deployment/api.py:46
↓ 14 callersMethodget_account
(self, symbol=None)
blankly/exchanges/interfaces/paper_trade/paper_trade_interface.py:344
↓ 14 callersMethodget_calls
Returns: The exchange's direct calls object. A blankly Bot class should have immediate access to this by default
blankly/exchanges/interfaces/exchange_interface.py:163
↓ 13 callersMethodclose_websocket
(self)
blankly/exchanges/interfaces/websocket.py:143
↓ 13 callersMethodget_position
(self, instrument: str, accountid: str = None)
blankly/exchanges/interfaces/oanda/oanda_api.py:303
↓ 12 callersMethodappend_callback
This bypasses all processing that a manager class may do before returning to the user's main. For example with an orderbook feed, thi
blankly/exchanges/managers/websocket_manager.py:88
↓ 12 callersMethodchoose_order_specificity
(self, order_type)
blankly/exchanges/interfaces/exchange_interface.py:230
↓ 12 callersFunctionformat_metric
(metrics: dict, display_name, type_: str)
blankly/exchanges/interfaces/paper_trade/backtest/format_platform_result.py:112
↓ 12 callersMethodget_status
(self)
blankly/deployment/api.py:110
↓ 12 callersMethodstart_websocket
Restart websocket if it was asked to stop.
blankly/exchanges/interfaces/alpaca/alpaca_websocket.py:140
↓ 11 callersFunctionbuild_day
()
blankly/utils/time_builder.py:35
↓ 11 callersMethodget_asset_precision
(self, asset)
blankly/exchanges/interfaces/exchange_interface.py:262
↓ 10 callersMethod__convert_blankly_to_oanda
(symbol: str)
blankly/exchanges/interfaces/oanda/oanda_interface.py:505
↓ 10 callersFunctionclose_position
Exit position Args: interface: the interface to sell on symbol: the symbol to sell
tests/new_interface_tests/test_utils.py:259
↓ 10 callersFunctioncompare_equal
(a, b)
tests/indicators/test_statistics.py:28
↓ 10 callersMethodget_size
Get the size of order, Ex: .004 bitcoin
blankly/exchanges/orders/order.py:143
↓ 10 callersMethodsend
Send an email to the receiver_email specified Args: receiver_email (str): The email that the message is sent to
blankly/utils/utils.py:739
↓ 10 callersMethodsleep
(self, seconds: [int, float])
blankly/exchanges/interfaces/paper_trade/backtest_controller.py:763
↓ 10 callersFunctiontime_interval_to_seconds
Extract the number of seconds in an interval string
blankly/utils/time_builder.py:63
↓ 10 callersMethodto_dict
(self)
blankly/exchanges/interfaces/paper_trade/backtest_result.py:178
↓ 10 callersFunctionvalidate_response
(needed, resp)
tests/helpers/comparisons.py:28
↓ 9 callersMethod__evaluate_overrides
Switches to inputted exchanges, used in the public methods
blankly/exchanges/managers/websocket_manager.py:43
↓ 9 callersMethod__get_decimals
(number)
blankly/exchanges/interfaces/paper_trade/paper_trade_interface.py:183
↓ 9 callersMethod__invalid_live
(self)
blankly/exchanges/interfaces/keyless/keyless_api.py:64
↓ 9 callersMethodcreate_ticker
Create a ticker on a given exchange. Args: callback: Callback object for the function. Should be something like self.pric
blankly/exchanges/managers/ticker_manager.py:61
↓ 9 callersFunctionget_base_asset
(symbol)
blankly/utils/utils.py:369
↓ 9 callersFunctionget_quote_asset
(symbol)
blankly/utils/utils.py:374
↓ 9 callersMethodget_type
(self)
blankly/exchanges/exchange.py:93
↓ 9 callersMethodlimit_order
(self, symbol: str, side: str, price: float, size: float)
blankly/exchanges/strategy_logger.py:109
↓ 9 callersFunctionremove_price
(book: list, price: float)
blankly/exchanges/managers/orderbook_manager.py:65
↓ 9 callersMethodto_exchange_symbol
(symbol: str)
blankly/exchanges/interfaces/ftx_futures/ftx_futures_interface.py:36
↓ 8 callersMethodconstruct_interface_and_cache
If you are a contributor, you need to modify this function to add exchanges The core functions that creates the interface based on th
blankly/exchanges/exchange.py:65
↓ 8 callersMethodevaluate_sandbox
This will try to maintain compatibility with older versions if they fail to pivot to the new version immediately
blankly/exchanges/exchange.py:52
↓ 8 callersMethodfail
(self, text)
blankly/deployment/ui.py:77
↓ 8 callersFunctionformat_with_new_line
(original_string, *components)
blankly/utils/utils.py:690
↓ 8 callersMethodget_response
Get the original but parsed response from the exchange.
blankly/exchanges/orders/order.py:88
↓ 8 callersFunctionprint_failure
(text)
blankly/deployment/ui.py:44
↓ 8 callersMethodstart
Start the scheduler. Args: force: Override multi-thread protection and create more threads of the scheduler callback
blankly/utils/scheduler.py:72
↓ 7 callersMethod_request_without_params
(self, method, request_path)
blankly/exchanges/interfaces/okx/okx_api.py:305
↓ 7 callersMethodparse_order_response
(self, response: dict)
blankly/exchanges/interfaces/binance_futures/binance_futures_interface.py:249
↓ 7 callersMethodtime
(self)
blankly/frameworks/model/model.py:102
↓ 7 callersFunctiontrunc
Truncate a number instead of rounding (ex: trunc(9.9999999, 2) == 9.99 instead of round(9.9999999, 2) == 10.0) Args: number (float):
blankly/utils/utils.py:699
↓ 6 callersMethod__init__
(self, api_key, api_secret_key, passphrase, sandbox, use_server_time=False, flag='1')
blankly/exchanges/interfaces/okx/okx_api.py:261
↓ 6 callersMethod__init__
(self, data_type: [DataTypes, str])
blankly/data/data_reader.py:72
↓ 6 callersMethodappend_callback
(self, callback_object, channel, override_symbol=None, override_exchange=None)
blankly/exchanges/managers/general_stream_manager.py:156
↓ 6 callersMethodcheck_product_history_columns
(self, df: pd.DataFrame)
tests/exchanges/test_interface_homogeneity.py:596
↓ 6 callersFunctioncompare_equal
(a, b)
tests/indicators/test_oscillators.py:29
↓ 6 callersFunctioncreate_and_write_file
(filename: str, default_contents: str = None)
blankly/deployment/cli.py:331
↓ 6 callersMethodcreate_orderbook
Create an orderbook for a given exchange Args: callback: Callback object for the function. Should be something like self.
blankly/exchanges/managers/orderbook_manager.py:99
↓ 6 callersMethodevaluate_tp_sl_order
(self, sorted_orders: dict, interface, type_, symbol: str, sell_price: [float, int],
tests/exchanges/test_interface_homogeneity.py:412
↓ 6 callersMethodlog_response
(self, logging_callback: callable, message: dict)
blankly/exchanges/interfaces/websocket.py:87
↓ 6 callersMethodok
(self, text)
blankly/deployment/ui.py:81
↓ 6 callersMethodparse_order_response
(self, response: dict, cancel: bool = False)
blankly/exchanges/interfaces/ftx_futures/ftx_futures_interface.py:77
↓ 6 callersFunctionperiods_per_year
Find how many trading periods occur within a trading year Args: period: the number of seconds in each trading period Returns:
blankly/exchanges/interfaces/paper_trade/metrics.py:23
↓ 6 callersFunctionshow_spinner
(text)
blankly/deployment/ui.py:67
↓ 6 callersFunctionsma
Finding the moving average of a dataset Args: data: (list) A list containing the data you want to find the moving average of
blankly/indicators/moving_averages.py:62
↓ 6 callersMethodstart
Run your model live! Simply call this function to take your strategy configuration live on your exchange
blankly/frameworks/strategy/strategy.py:367
↓ 6 callersMethodtime
Get the current time. This will only the current time because it is not in a backtesting framework
blankly/frameworks/screener/screener_state.py:50
↓ 6 callersMethodto_blankly_symbol
(self, symbol: str)
blankly/exchanges/interfaces/binance_futures/binance_futures_interface.py:68
↓ 6 callersMethodupdate_available
(self, asset_id, new_value)
blankly/exchanges/interfaces/paper_trade/local_account/trade_local.py:223
↓ 6 callersMethodupdate_hold
(self, asset_id, new_value)
blankly/exchanges/interfaces/paper_trade/local_account/trade_local.py:226
↓ 5 callersMethod__convert_symbol_to_blankly
(symbol: str)
blankly/exchanges/interfaces/oanda/oanda_interface.py:501
↓ 5 callersMethod_send_paginated_message
Send API message that results in a paginated response. The paginated responses are abstracted away by making API requests on demand
blankly/exchanges/interfaces/coinbase_pro/coinbase_pro_api.py:840
↓ 5 callersMethodcheck_product_history_types
(self, df: pd.DataFrame)
tests/exchanges/test_interface_homogeneity.py:585
↓ 5 callersFunctionclose_all
(futures_interface: FuturesExchangeInterface)
tests/new_interface_tests/test_utils.py:250
↓ 5 callersMethodget_account_info
(self)
blankly/exchanges/interfaces/ftx/ftx_api.py:119
↓ 5 callersMethodget_fees
(self, symbol)
blankly/exchanges/interfaces/paper_trade/paper_trade_interface.py:714
next →1–100 of 1,497, ranked by callers