MCPcopy Create free account

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

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

↓ 5 callersMethodget_kwargs
Get the custom function argument dictionary
blankly/utils/scheduler.py:95
↓ 5 callersMethodget_product_history
(self, symbol: str, epoch_start: float, epoch_stop: float, resolution)
blankly/exchanges/interfaces/ftx/ftx_api.py:109
↓ 5 callersMethodget_side
Get the order side such as buy/sell as a str.
blankly/exchanges/orders/order.py:131
↓ 5 callersMethodget_symbol
Get the asset id of the exchange
blankly/exchanges/orders/order.py:100
↓ 5 callersFunctionrsi
Implements RSI Indicator
blankly/indicators/oscillators.py:28
↓ 5 callersMethodto_blankly_symbol
(symbol: str)
blankly/exchanges/interfaces/ftx_futures/ftx_futures_interface.py:43
↓ 5 callersMethodvalidate_orderbook_event
(event: dict)
tests/websockets/test_crypto_websockets.py:126
↓ 5 callersMethodvalidate_price_event
(event: dict)
tests/websockets/test_crypto_websockets.py:114
↓ 4 callersMethod__check_user_time_bounds
(self, start_time, end_time, resolution)
blankly/exchanges/interfaces/paper_trade/backtest_controller.py:559
↓ 4 callersMethod__custom_price_event
Add Price Event Args: type_: The type of event that the price event refers to callback: The price event callb
blankly/frameworks/strategy/strategy_base.py:157
↓ 4 callersMethod_fetch_response_details
(self, needed, response)
blankly/exchanges/interfaces/kucoin/kucoin_interface.py:215
↓ 4 callersMethod_fetch_response_details
(self, needed, response, symbol, set_tif=True)
blankly/exchanges/interfaces/okx/okx_interface.py:132
↓ 4 callersMethod_fix_response
(self, needed, response)
blankly/exchanges/interfaces/binance/binance_interface.py:257
↓ 4 callersMethod_fix_response
(self, needed, response)
blankly/exchanges/interfaces/alpaca/alpaca_interface.py:273
↓ 4 callersMethod_fix_response
(needed, response)
blankly/exchanges/interfaces/coinbase_pro/coinbase_pro_interface.py:209
↓ 4 callersMethod_fix_response
(self, needed, price, resp, side, size, type, set_tif=True)
blankly/exchanges/interfaces/oanda/oanda_interface.py:283
↓ 4 callersMethod_fix_response
(needed, response, set_tif=True)
blankly/exchanges/interfaces/ftx/ftx_interface.py:286
↓ 4 callersMethod_place_order
(self, type: OrderType, symbol: str, side: Side, size: float, limit_price: float = 0, pos
blankly/exchanges/interfaces/paper_trade/futures/futures_paper_trade_interface.py:349
↓ 4 callersMethod_signed_post
(self, path: str, params: Optional[Dict[str, Any]] = None)
blankly/exchanges/interfaces/ftx/ftx_api.py:73
↓ 4 callersFunctionaggregate_prices_by_resolution
(price_dict, symbol_, resolution_, data_)
blankly/utils/utils.py:835
↓ 4 callersFunctionbuild_minute
()
blankly/utils/time_builder.py:27
↓ 4 callersFunctionchoose_option
Generalized CLI tool to choose between given options Args: choice: String for "Choose a <choice>" shown to the user options:
blankly/deployment/cli.py:66
↓ 4 callersFunctioncompare_dictionaries
Compare two output dictionaries to check if they have the same keys (excluding "exchange_specific") Args: dict1 (dict): First diction
blankly/utils/utils.py:471
↓ 4 callersMethodget_account
No logging implemented
blankly/exchanges/strategy_logger.py:48
↓ 4 callersMethodget_fees
No logging implemented
blankly/exchanges/strategy_logger.py:154
↓ 4 callersMethodget_order_filter
No logging implemented
blankly/exchanges/strategy_logger.py:160
↓ 4 callersMethodget_order_list
(self, instType='', uly='', instId='', ordType='', state='', after='', before='', limit='')
blankly/exchanges/interfaces/okx/okx_api.py:445
↓ 4 callersMethodget_price
(self, symbol)
blankly/exchanges/interfaces/paper_trade/paper_trade_interface.py:750
↓ 4 callersMethodget_price
(self, symbol: str)
blankly/exchanges/interfaces/paper_trade/futures/futures_paper_trade_interface.py:222
↓ 4 callersFunctionlogin
(remove_cache: bool = False)
blankly/deployment/cli.py:447
↓ 4 callersMethodplace_conditional_order
( self, market: str, side: str, size: float, order
blankly/exchanges/interfaces/ftx/ftx_api.py:275
↓ 4 callersMethodplace_order
Place an order. The three order types (limit, market, and stop) can be placed using this method. Specific methods are provided for e
blankly/exchanges/interfaces/coinbase_pro/coinbase_pro_api.py:415
↓ 4 callersMethodplace_order
( self, market: str, side: str, price: float, size
blankly/exchanges/interfaces/ftx/ftx_api.py:193
↓ 4 callersFunctionpretty_print_json
Json pretty printer for general string usage
blankly/utils/utils.py:252
↓ 4 callersFunctionprint_success
(text)
blankly/deployment/ui.py:48
↓ 4 callersMethodrun_forever
This is the target from the super It's renamed to run_forever in coinbase pro because I think that ancient code below is cool
blankly/exchanges/interfaces/coinbase_pro/coinbase_pro_websocket.py:80
↓ 4 callersMethodset_leverage
(self, lever, mgnMode, instId='', ccy='', posSide='')
blankly/exchanges/interfaces/okx/okx_api.py:588
↓ 4 callersMethodtrade_local
Trade on the local & static account Args: symbol (string): Pair such as 'BTC-USD' side (string): Purchase si
blankly/exchanges/interfaces/paper_trade/local_account/trade_local.py:43
↓ 4 callersMethodupdate_state
This function adds or removes state values from the state dictionary Args: key: The key value to be added/changed
blankly/frameworks/multiprocessing/blankly_bot.py:114
↓ 4 callersFunctionwait_till_filled
(interface: ABCBaseExchangeInterface, order: Union[FuturesOrder, MarketOrder])
tests/new_interface_tests/test_utils.py:164
↓ 3 callersFunction__generate_tempfile
Generate a temporary file with the blankly auth prefix and then get the directory / file name from it
blankly/deployment/cli.py:391
↓ 3 callersMethod_check_length
(df: pd.DataFrame, identifier: str)
blankly/data/data_reader.py:50
↓ 3 callersMethod_signed_request
(self, method: str, path: str, **kwargs)
blankly/exchanges/interfaces/ftx/ftx_api.py:44
↓ 3 callersMethod_write_dataset
(self, contents: dict, key: str, required_columns: tuple)
blankly/data/data_reader.py:64
↓ 3 callersFunctionadd_key_interactive
(exchange: Exchange)
blankly/deployment/new_cli.py:114
↓ 3 callersFunctionadd_path_arg
(arg_parser, required=True)
blankly/deployment/cli.py:318
↓ 3 callersFunctionbuild_hour
()
blankly/utils/time_builder.py:31
↓ 3 callersFunctionbuild_second
()
blankly/utils/time_builder.py:23
↓ 3 callersFunctionbuild_year
()
blankly/utils/time_builder.py:47
↓ 3 callersFunctioncancelling_order
Context manager for placing and cancelling a limit order from within a test. Useful for testing paths that require active orders. Args:
tests/new_interface_tests/test_utils.py:300
↓ 3 callersMethodcheck_limit_order
(self, limit_order: LimitOrder, expected_side: str, size, product_id, type_='limit')
tests/exchanges/test_interface_homogeneity.py:290
↓ 3 callersFunctionclose_position
Exit a position Args: state: the StrategyState symbol: the symbol to sell
blankly/futures/utils.py:6
↓ 3 callersMethodcreate_model
(self, project_id: str, type_: str, name: str, description: str)
blankly/deployment/api.py:162
↓ 3 callersFunctioncum_returns
(start_value, end_value)
blankly/metrics/portfolio.py:33
↓ 3 callersFunctionepoch_from_iso8601
(iso8601: str)
blankly/utils/utils.py:262
↓ 3 callersMethodexport_used_exchange
Export the string identifier for a used exchange
blankly/deployment/reporter_headers.py:96
↓ 3 callersFunctionfprint
(text, **kwargs)
blankly/deployment/ui.py:34
↓ 3 callersMethodget_account
Get all currencies in an account, or sort by asset/account_id Args: symbol (Optional): Filter by particular asset
blankly/exchanges/interfaces/binance/binance_interface.py:160
↓ 3 callersMethodget_account
Get a single account under an asset id
blankly/exchanges/interfaces/paper_trade/local_account/trade_local.py:217
↓ 3 callersMethodget_account
(self, symbol=None)
blankly/exchanges/interfaces/alpaca/alpaca_interface.py:113
↓ 3 callersMethodget_account_instruments
(self, instrument: str = None, accountid: str = None)
blankly/exchanges/interfaces/oanda/oanda_api.py:97
↓ 3 callersMethodget_leverage
(self, instId, mgnMode)
blankly/exchanges/interfaces/okx/okx_api.py:608
↓ 3 callersMethodget_order_filter
(self, symbol)
blankly/exchanges/interfaces/paper_trade/paper_trade_interface.py:740
↓ 3 callersFunctionget_project_model_and_name
(args, api: API)
blankly/deployment/cli.py:185
↓ 3 callersMethodget_state
(self)
blankly/frameworks/multiprocessing/blankly_bot.py:108
↓ 3 callersFunctionget_token_file
()
blankly/deployment/login.py:79
↓ 3 callersMethodget_type
Get order type, such as market/limit/stop.
blankly/exchanges/orders/order.py:125
↓ 3 callersMethodhomogenize_order_status
(exchange, status)
blankly/exchanges/interfaces/exchange_interface.py:245
↓ 3 callersMethodlist_models
(self, project_id: str = None)
blankly/deployment/api.py:174
↓ 3 callersMethodlist_orders
(self, *args, **kwargs)
tests/exchanges/interfaces/alpaca/test_alpaca_interface.py:62
↓ 3 callersFunctionload_deployment_settings
()
blankly/utils/utils.py:240
↓ 3 callersFunctionload_keys
()
blankly/deployment/keys.py:33
↓ 3 callersFunctionload_notify_preferences
(override_path=None)
blankly/utils/utils.py:248
↓ 3 callersFunctionprint_selection_index
(index_)
blankly/deployment/cli.py:101
↓ 3 callersMethodrun
(self, args: typing.Any = None)
blankly/frameworks/model/model.py:77
↓ 2 callersMethod__get_model
Get the model to reference to
blankly/exchanges/exchange.py:127
↓ 2 callersMethod__parse_iso
(response)
blankly/exchanges/interfaces/alpaca/alpaca_interface.py:202
↓ 2 callersMethod__run_init
(self)
blankly/frameworks/strategy/strategy.py:175
↓ 2 callersMethod__send_email
Internal email send. This is separated because override_receiver shouldn't be exposed to the user
blankly/deployment/reporter_headers.py:162
↓ 2 callersMethod__str__
(self)
blankly/exchanges/orders/order.py:62
↓ 2 callersMethod_binance_get_product_history
(calls, symbol, epoch_start, epoch_stop, resolution)
blankly/exchanges/interfaces/binance/binance_interface.py:706
↓ 2 callersMethod_convert_to_list
Primarily for CSV prices, this allows single or multi sets of symbols to be converted into matching arrays
blankly/data/data_reader.py:83
↓ 2 callersMethod_parse_csv_prices
(self, file_paths: list, symbols: list, columns: set)
blankly/data/data_reader.py:119
↓ 2 callersMethod_request
(self, method, request_path, params)
blankly/exchanges/interfaces/okx/okx_api.py:272
↓ 2 callersMethodadd_asset
(self, asset)
blankly/exchanges/interfaces/paper_trade/futures/futures_paper_trade_interface.py:57
↓ 2 callersMethodadd_prices
Directly add prices to the strategy
blankly/frameworks/strategy/strategy.py:353
↓ 2 callersMethodbacktest
Turn this strategy into a backtest. Args: ** We expect either an initial_value (in USD) or a dictionary of initial value
blankly/frameworks/strategy/strategy.py:243
↓ 2 callersFunctionbuild_century
()
blankly/utils/time_builder.py:55
↓ 2 callersFunctionbuild_decade
()
blankly/utils/time_builder.py:51
↓ 2 callersFunctionbuild_month
()
blankly/utils/time_builder.py:43
↓ 2 callersFunctionbuild_week
()
blankly/utils/time_builder.py:39
↓ 2 callersFunctionbuy
(interface: ABCBaseExchangeInterface, symbol: str, funds: int = 20, reduce_only: bool = False)
tests/new_interface_tests/test_utils.py:246
↓ 2 callersMethodcalculate_position_value
(self, symbol)
blankly/exchanges/interfaces/paper_trade/futures/futures_paper_trade_interface.py:267
↓ 2 callersMethodcast_type
(response: pd.DataFrame, return_as: str, point_count=None)
blankly/exchanges/interfaces/abc_base_exchange_interface.py:154
↓ 2 callersFunctioncreate_ticker_connection
(symbol, url, channel)
blankly/exchanges/interfaces/alpaca/alpaca_websocket.py:53
↓ 2 callersFunctionema
(data: Any, period: int = 50, use_series=False)
blankly/indicators/moving_averages.py:27
↓ 2 callersMethodemail
Send an email to the email specified in the notify.json OR your user account email if run live Args: email: The body of
blankly/deployment/reporter_headers.py:183
↓ 2 callersMethodevaluate_limits
When this is run it checks the local paper trade orders to see if any need to go through
blankly/exchanges/interfaces/paper_trade/paper_trade_interface.py:208
↓ 2 callersMethodevaluate_paper_trade
This calculates fees & evaluates accurate value Args: order (dict): Order dictionary to derive the order attributes
blankly/exchanges/interfaces/paper_trade/paper_trade_interface.py:329
↓ 2 callersFunctionexc_display_name
(name)
blankly/deployment/exchange_data.py:102
← previousnext →101–200 of 1,497, ranked by callers