MCPcopy Create free account

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

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

↓ 1 callersMethodrun_live
(self)
blankly/frameworks/strategy/strategy.py:190
↓ 1 callersMethodrun_price_events
(self, events: list)
blankly/frameworks/strategy/strategy.py:131
↓ 1 callersFunctionsell
(interface: ABCBaseExchangeInterface, symbol: str, funds: int = 20, reduce_only: bool = False)
tests/new_interface_tests/test_utils.py:242
↓ 1 callersMethodsetup
This function is populated by the exchange. Args: exchange_type (str): Type of exchange i.e "binance" or "coinbase_pro"
blankly/frameworks/multiprocessing/blankly_bot.py:58
↓ 1 callersFunctionsharpe
(returns, n=252, risk_free_rate=None)
blankly/metrics/portfolio.py:47
↓ 1 callersMethodshould_run_order
(self, order)
blankly/exchanges/interfaces/paper_trade/futures/futures_paper_trade_interface.py:140
↓ 1 callersFunctionsign
(message, secretKey)
blankly/exchanges/interfaces/okx/okx_api.py:171
↓ 1 callersFunctionsortino
(returns, n=252, risk_free_rate=None)
blankly/metrics/portfolio.py:37
↓ 1 callersFunctionsplit
Find the negative given from a range and a set of other ranges Args: base_range: Backing array containing a range such as [1, 10]
blankly/exchanges/interfaces/paper_trade/backtest_controller.py:61
↓ 1 callersMethodstart_limit_order_watch
This enables a thread that can watch & execute limit orders in the background of the exchange interface These throw warnings because
blankly/exchanges/interfaces/paper_trade/paper_trade.py:33
↓ 1 callersMethodstart_models
Start all models or a specific one after appending it to the exchange. This is used only for multiprocessed bots which are appended
blankly/exchanges/exchange.py:105
↓ 1 callersMethodstart_paper_trade_watchdog
(self)
blankly/exchanges/interfaces/paper_trade/paper_trade_interface.py:158
↓ 1 callersFunctionstochastic_oscillator
(high_data, low_data, close_data, pct_k_period=14, pct_k_slowing_period=3, pct_d_period=3,
blankly/indicators/oscillators.py:74
↓ 1 callersMethodstop_loss_order
(self, symbol: str, price: float, size: float)
blankly/exchanges/strategy_logger.py:90
↓ 1 callersMethodstop_paper_trade_watchdog
(self)
blankly/exchanges/interfaces/paper_trade/paper_trade_interface.py:166
↓ 1 callersMethodstop_scheduler
Halt the scheduler loop
blankly/utils/scheduler.py:101
↓ 1 callersFunctionswitch_type
(stream)
blankly/exchanges/interfaces/alpaca/alpaca_websocket_utils.py:37
↓ 1 callersMethodsync_prices
Parse the local file cache for the requested data, if it doesn't exist, request it from the exchange args: items: list o
blankly/exchanges/interfaces/paper_trade/backtest_controller.py:275
↓ 1 callersMethodteardown
(self)
blankly/frameworks/strategy/strategy.py:240
↓ 1 callersMethodteardown
(self)
blankly/frameworks/model/model.py:89
↓ 1 callersMethodtest_websockets
(self)
tests/websockets/test_crypto_websockets.py:58
↓ 1 callersMethodtext
Send a text message to the number if notify.json OR the phone number attached to your account if the model is deployed live
blankly/deployment/reporter_headers.py:132
↓ 1 callersFunctiontext_spinner
( text='BLANKLY', left='[', right=']', interval=80 )
blankly/deployment/ui.py:53
↓ 1 callersMethodtimeout
(self, start_at: int)
tests/websockets/test_crypto_websockets.py:88
↓ 1 callersFunctionto_blankly_symbol
(symbol, exchange, quote_guess=None)
blankly/utils/utils.py:328
↓ 1 callersMethodto_order_status
(status: str, cancel: bool = False)
blankly/exchanges/interfaces/ftx_futures/ftx_futures_interface.py:55
↓ 1 callersMethodto_order_status
(status: str)
blankly/exchanges/interfaces/binance_futures/binance_futures_interface.py:236
↓ 1 callersMethodto_order_type
(type: str)
blankly/exchanges/interfaces/ftx_futures/ftx_futures_interface.py:66
↓ 1 callersFunctionto_string_key
(separated_list)
blankly/exchanges/interfaces/paper_trade/backtest_controller.py:52
↓ 1 callersFunctiontrim_df_time_column
(df, epoch_start: [int, float], epoch_stop: [int, float])
blankly/utils/utils.py:828
↓ 1 callersFunctionunsubscribe
(ws, channel)
blankly/exchanges/interfaces/alpaca/alpaca_websocket.py:44
↓ 1 callersMethodupdate_order
Update an existing order
blankly/deployment/reporter_headers.py:114
↓ 1 callersMethodvalue_account
Store the valuation for the account This is accessible by the user
blankly/exchanges/interfaces/paper_trade/backtest_controller.py:778
↓ 1 callersFunctionvariance
(returns, n=None)
blankly/metrics/portfolio.py:71
↓ 1 callersFunctionvwma
(data: Any, volume_data: Any, period: int = 50, use_series=False)
blankly/indicators/moving_averages.py:35
↓ 1 callersMethodwebsocket_update
(self, data)
blankly/frameworks/model/model.py:98
↓ 1 callersFunctionwrite_backtest_preferences
(json_file, override_path=None)
blankly/utils/utils.py:244
↓ 1 callersFunctionwrite_token
(token)
blankly/deployment/login.py:33
↓ 1 callersFunctionzipdir
(path, ziph, ignore_files: list)
blankly/deployment/cli.py:564
↓ 1 callersFunctionzipdir
(path, ziph, ignore_files: list)
blankly/deployment/deploy.py:29
MethodAdjustment_margin
(self, instId, posSide, type, amt, loanTrans='')
blankly/exchanges/interfaces/okx/okx_api.py:603
Method__call__
(self, request)
blankly/exchanges/interfaces/binance/binance_api.py:34
Method__call__
(self, request)
blankly/exchanges/interfaces/coinbase_pro/coinbase_pro_api.py:36
Method__convert_times
(date)
blankly/exchanges/interfaces/alpaca/alpaca_interface.py:515
Method__evaluate_multiples
(valid_resolutions, resolution_seconds)
blankly/exchanges/interfaces/oanda/oanda_interface.py:460
Method__executor
(self)
blankly/frameworks/screener/screener_runner.py:62
Method__getattr__
(self, attr)
blankly/utils/utils.py:679
Method__getattribute__
(self, item)
blankly/exchanges/futures/futures_strategy_logger.py:34
Method__init__
(self, *args, **kwargs)
tests/exchanges/interfaces/alpaca/test_alpaca_interface.py:28
Method__init__
(self, *args, **kwargs)
tests/exchanges/interfaces/alpaca/test_alpaca_interface.py:193
Method__init__
(self)
tests/websockets/test_crypto_websockets.py:30
Method__init__
Wrapper for functions that run at a set interval Args: function: Function reference to create the scheduler on ex: self.p
blankly/utils/scheduler.py:30
Method__init__
Create a class that can manage caching for loading and writing to user preferences with a low overhead. This can dramatically acceler
blankly/utils/utils.py:142
Method__init__
Create the email wrapper: Args: smtp_server: The address of the smtp server sender_email: The email attached
blankly/utils/utils.py:725
Method__init__
(self, interface=None, strategy=None)
blankly/exchanges/strategy_logger.py:31
Method__init__
(self, exchange_type, portfolio_name, preferences_path)
blankly/exchanges/exchange.py:37
Method__init__
Create an auth interface Args: keys_file (str): filepath to keys.json portfolio_name (str): name of portfolio
blankly/exchanges/auth/auth_constructor.py:28
Method__init__
Create a new orderbook manager Args: default_exchange: Add an exchange name for the manager to favor default_
blankly/exchanges/managers/orderbook_manager.py:78
Method__init__
(self, default_exchange, default_symbol)
blankly/exchanges/managers/general_stream_manager.py:33
Method__init__
Create a new manager. Args: default_exchange: Add an exchange name for the manager to favor default_symbol: A
blankly/exchanges/managers/ticker_manager.py:33
Method__init__
(self, websockets, default_symbol, default_exchange)
blankly/exchanges/managers/websocket_manager.py:23
Method__init__
Limit Order: needed = [ ["symbol", str], <- similar ["id", str], <- similar ["created_at",
blankly/exchanges/orders/order.py:23
Method__init__
(self, order, response, interface)
blankly/exchanges/orders/take_profit.py:27
Method__init__
Coinbase Response: { 'id': '3a98a5c6-05a0-4e46-b8e4-3f27358fe27d', 'price': '29500', 'size': '0.0
blankly/exchanges/orders/stop_limit.py:27
Method__init__
Coinbase Response: { 'id': '5955cd5d-a78c-4c47-9741-1f7f20ac7f95', 'product_id': 'BTC-USD', 'side
blankly/exchanges/orders/market_order.py:27
Method__init__
Coinbase Response: { "id": "d0c5340b-6d6c-49d9-b567-48c4bfca13d2", "price": "0.10000000", "size":
blankly/exchanges/orders/limit_order.py:27
Method__init__
(self, order, response, interface)
blankly/exchanges/orders/stop_loss.py:27
Method__init__
(self, exchange_name, authenticated_api, preferences_path=N
blankly/exchanges/interfaces/futures_exchange_interface.py:32
Method__init__
Create an abstract exchange interface Args: exchange_name (str): Define exchange name ex: 'binance' or 'coinbase_pro'
blankly/exchanges/interfaces/abc_exchange_interface.py:33
Method__init__
(self, exchange_name, authenticated_api, preferences_path=None, valid_resolutions=None)
blankly/exchanges/interfaces/exchange_interface.py:28
Method__init__
(self, symbol, stream, log, log_message, url, pre_event_callback, kwargs)
blankly/exchanges/interfaces/websocket.py:30
Method__init__
(self, portfolio_name=None, keys_path="keys.json", preferen
blankly/exchanges/interfaces/ftx_futures/ftx_futures.py:10
Method__init__
(self, portfolio_name=None, keys_path="keys.json", settings_path=None)
blankly/exchanges/interfaces/binance/binance.py:27
Method__init__
(self, api_key)
blankly/exchanges/interfaces/binance/binance_api.py:31
Method__init__
(self, auth, tld: str = '.us', testnet: bool = False)
blankly/exchanges/interfaces/binance/binance_api.py:51
Method__init__
Create and initialize the ticker Args: symbol: Currency to initialize on such as "btcusdt" stream: Stream to
blankly/exchanges/interfaces/binance/binance_websocket.py:29
Method__init__
(self, exchange_name, authenticated_api)
blankly/exchanges/interfaces/binance/binance_interface.py:35
Method__init__
(self)
blankly/exchanges/interfaces/paper_trade/backtesting_wrapper.py:22
Method__init__
(self, history_and_returns: dict, trades: dict, history: dict, start_time: float, stop_time:
blankly/exchanges/interfaces/paper_trade/backtest_result.py:24
Method__init__
(self, derived_interface: ABCExchangeInterface, initial_account_values: dict = None)
blankly/exchanges/interfaces/paper_trade/paper_trade_interface.py:38
Method__init__
(self, authenticated_exchange: Exchange, initial_account_values: dict = None)
blankly/exchanges/interfaces/paper_trade/paper_trade.py:24
Method__init__
(self, model)
blankly/exchanges/interfaces/paper_trade/backtest_controller.py:153
Method__init__
Create the local account to paper trade with. Args: currencies: (dict) with key/value pairs such as {'BTC': {'available:
blankly/exchanges/interfaces/paper_trade/local_account/trade_local.py:26
Method__init__
(self, exchange, portfolio_name: str = None, preferences_pa
blankly/exchanges/interfaces/paper_trade/futures/futures_paper_trade.py:8
Method__init__
(self, exchange_name: str, interface: FuturesExchangeInterface, account_values: dict = None)
blankly/exchanges/interfaces/paper_trade/futures/futures_paper_trade_interface.py:72
Method__init__
(self, exchange_name, authenticated_api)
blankly/exchanges/interfaces/binance_futures/binance_futures_interface.py:79
Method__init__
(self, portfolio_name=None, keys_path="keys.json", preferen
blankly/exchanges/interfaces/binance_futures/binance_futures.py:28
Method__init__
(self, portfolio_name=None, keys_path="keys.json", settings_path=None)
blankly/exchanges/interfaces/coinbase_advanced/coinbase_advanced.py:25
Method__init__
Create and initialize the ticker Args: symbol: Currency to initialize on such as "BTC-USD" stream: Valid exch
blankly/exchanges/interfaces/alpaca/alpaca_websocket.py:92
Method__init__
(self, exchange_name, authenticated_api)
blankly/exchanges/interfaces/alpaca/alpaca_interface.py:38
Method__init__
(self, portfolio_name=None, keys_path="keys.json", settings_path=None)
blankly/exchanges/interfaces/alpaca/alpaca.py:27
Method__init__
(self, portfolio_name=None, keys_path="keys.json", settings_path=None)
blankly/exchanges/interfaces/kucoin/kucoin.py:25
Method__init__
(self, exchange_name, authenticated_api)
blankly/exchanges/interfaces/kucoin/kucoin_interface.py:34
Method__init__
Create and initialize the ticker Args: symbol: Currency to initialize on such as "BTC-USD" log: Fill this wit
blankly/exchanges/interfaces/kucoin/kucoin_websocket.py:29
Method__init__
(self)
blankly/exchanges/interfaces/coinbase_pro/coinbase_pro_utils.py:22
Method__init__
(self, exchange_name, authenticated_api)
blankly/exchanges/interfaces/coinbase_pro/coinbase_pro_interface.py:35
Method__init__
(self, api_key, api_secret, api_pass)
blankly/exchanges/interfaces/coinbase_pro/coinbase_pro_api.py:31
Method__init__
(self, api_key: str, api_secret: str, api_pass: str, api_url: str = 'https://api.pro.coinbase.com/')
blankly/exchanges/interfaces/coinbase_pro/coinbase_pro_api.py:62
Method__init__
(self, portfolio_name=None, keys_path="keys.json", settings_path=None)
blankly/exchanges/interfaces/coinbase_pro/coinbase_pro.py:26
Method__init__
Create and initialize the ticker Args: symbol: Currency to initialize on such as "BTC-USD" log: Fill this wit
blankly/exchanges/interfaces/coinbase_pro/coinbase_pro_websocket.py:54
← previousnext →501–600 of 1,497, ranked by callers