MCPcopy Create free account

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

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

Method__init__
(self, portfolio_name=None, keys_path="keys.json", settings_path=None)
blankly/exchanges/interfaces/oanda/oanda.py:7
Method__init__
(self, exchange_name: str, authenticated_api: OandaAPI)
blankly/exchanges/interfaces/oanda/oanda_interface.py:36
Method__init__
(self, personal_access_token: str, account_id: str, sandbox: bool = False)
blankly/exchanges/interfaces/oanda/oanda_api.py:42
Method__init__
(self, maker_fee, taker_fee, price_readers)
blankly/exchanges/interfaces/keyless/keyless_api.py:29
Method__init__
(self, maker_fee=0, taker_fee=0, portfolio_name=None, settings_path=None, price_reader: [Pric
blankly/exchanges/interfaces/keyless/keyless.py:28
Method__init__
Create and initialize the ticker Args: symbol: Currency to initialize on such as "BTC-USD" log: Fill this wit
blankly/exchanges/interfaces/ftx/ftx_websocket.py:29
Method__init__
(self, exchange_name, authenticated_api: FTXAPI)
blankly/exchanges/interfaces/ftx/ftx_interface.py:36
Method__init__
(self, api_key, api_secret, tld: str = 'us', _subaccount_name=None)
blankly/exchanges/interfaces/ftx/ftx_api.py:32
Method__init__
(self, portfolio_name=None, keys_path="keys.json", settings_path=None)
blankly/exchanges/interfaces/ftx/ftx.py:29
Method__init__
(self, response)
blankly/exchanges/interfaces/okx/okx_api.py:218
Method__init__
(self, message)
blankly/exchanges/interfaces/okx/okx_api.py:243
Method__init__
(self, message)
blankly/exchanges/interfaces/okx/okx_api.py:252
Method__init__
(self, api_key, api_secret_key, passphrase, sandbox, use_server_time=False, flag='1')
blankly/exchanges/interfaces/okx/okx_api.py:322
Method__init__
(self, api_key, api_secret_key, passphrase, sandbox, use_server_time=False, flag='1')
blankly/exchanges/interfaces/okx/okx_api.py:399
Method__init__
(self, api_key, api_secret_key, passphrase, sandbox, use_server_time=False, flag='1')
blankly/exchanges/interfaces/okx/okx_api.py:514
Method__init__
(self, api_key, api_secret_key, passphrase, sandbox, use_server_time=False, flag='1')
blankly/exchanges/interfaces/okx/okx_api.py:542
Method__init__
(self, api_key, api_secret_key, passphrase, sandbox, use_server_time=False, flag='1')
blankly/exchanges/interfaces/okx/okx_api.py:680
Method__init__
(self, api_key, api_secret_key, passphrase, sandbox, use_server_time=False, flag='1')
blankly/exchanges/interfaces/okx/okx_api.py:780
Method__init__
(self, exchange_name, authenticated_api)
blankly/exchanges/interfaces/okx/okx_interface.py:14
Method__init__
(self, portfolio_name=None, keys_path="keys.json", settings_path=None)
blankly/exchanges/interfaces/okx/okx.py:8
Method__init__
Create and initialize the ticker Args: symbol: Currency to initialize on such as "BTC-USD" log: Fill this wit
blankly/exchanges/interfaces/okx/okx_websocket.py:28
Method__init__
(self, interface=None, strategy=None)
blankly/exchanges/futures/futures_strategy_logger.py:30
Method__init__
(self, exchange_type, portfolio_name, preferences_path)
blankly/exchanges/futures/futures_exchange.py:31
Method__init__
(self, order_type, side, amount, price=None)
blankly/frameworks/strategy/order.py:23
Method__init__
Create a new strategy object. A strategy can be used to run your code live while be backtestable and modular across exchanges.
blankly/frameworks/strategy/strategy_base.py:45
Method__init__
(self, exchange: Exchange)
blankly/frameworks/strategy/strategy.py:37
Method__init__
(self, strategy, variables: AttributeDict, symbol, resolution: [int, float] = None)
blankly/frameworks/strategy/strategy_state.py:29
Method__init__
(self, strategy, variables: AttributeDict, symbol,
blankly/frameworks/strategy/futures_strategy_state.py:32
Method__init__
This is a ScreenerState object - a simplified version of StrategyState Args: screener: Construct with a screener object
blankly/frameworks/screener/screener_state.py:30
Method__init__
Create a new screener. Function Signatures: init(screener_state: blankly.ScreenerState) evaluator(symbol: str, scree
blankly/frameworks/screener/screener.py:31
Method__init__
(self, cronjob: str)
blankly/frameworks/screener/screener_runner.py:29
Method__init__
(self, exchange: ABCBaseExchange)
blankly/frameworks/model/model.py:35
Method__init__
Initialize state variables when the bot is created
blankly/frameworks/multiprocessing/blankly_bot.py:44
Method__init__
(self, data_type)
blankly/data/data_reader.py:79
Method__init__
Read in a new custom price dataset in either json or csv format Args: file_path (str or list): A single file path or lis
blankly/data/data_reader.py:203
Method__init__
(self, event_type: str, events: dict)
blankly/data/data_reader.py:244
Method__init__
(self, file_path)
blankly/data/data_reader.py:258
Method__init__
(self, symbol: str, start: int, stop: int, interface: FuturesExchangeInterface)
blankly/data/data_reader.py:269
Method__init__
(self, file_path: [str, list], symbol: [str, list] = None)
blankly/data/data_reader.py:276
Method__init__
(self)
blankly/deployment/reporter_headers.py:31
Method__init__
(self, token, override_url: str = None)
blankly/deployment/api.py:31
Method__init__
(self, name: str, symbols: List[str], test_func, key_info: List[str] = None, python_class: str = None,
blankly/deployment/exchange_data.py:39
Method__init__
(self, *args, **kwargs)
blankly/deployment/ui.py:72
Method__paper_trade_watchdog
Internal order watching system
blankly/exchanges/interfaces/paper_trade/paper_trade_interface.py:171
Method__setattr__
(self, attr, value)
blankly/utils/utils.py:686
Method__str__
(self)
blankly/exchanges/orders/take_profit.py:48
Method__str__
(self)
blankly/exchanges/orders/stop_limit.py:105
Method__str__
(self)
blankly/exchanges/orders/market_order.py:67
Method__str__
(self)
blankly/exchanges/orders/limit_order.py:96
Method__str__
(self)
blankly/exchanges/orders/stop_loss.py:48
Method__str__
(self)
blankly/exchanges/orders/futures/futures_order.py:40
Method__str__
(self)
blankly/exchanges/interfaces/paper_trade/backtest_result.py:143
Method__str__
(self)
blankly/exchanges/interfaces/okx/okx_api.py:246
Method__str__
(self)
blankly/exchanges/interfaces/okx/okx_api.py:255
Method__str__
(self)
blankly/frameworks/strategy/strategy_state.py:66
Method__str__
(self)
blankly/frameworks/strategy/futures_strategy_state.py:52
Method__str__
(self)
blankly/frameworks/screener/screener_state.py:62
Method__threading_wait
This function is used with the scheduler decorator
blankly/utils/scheduler.py:113
Method__websocket_callback
(tick, **kwargs)
blankly/frameworks/strategy/strategy_base.py:211
Method_handle_input_time_conv
(date: Union[str, dt, float] = None)
blankly/exchanges/interfaces/oanda/oanda_interface.py:477
Methodaccount
No logging implemented
blankly/exchanges/strategy_logger.py:177
Methodaccount
Account information
blankly/exchanges/interfaces/futures_exchange_interface.py:167
Methodaccount
Get all assets in an account, or sort by assets/account_id TODO add return example
blankly/exchanges/interfaces/abc_exchange_interface.py:216
Methodaccount
(self)
blankly/exchanges/interfaces/exchange_interface.py:177
Methodaccount
(self)
blankly/exchanges/interfaces/binance_futures/binance_futures_interface.py:394
Methodaccount_info
(self)
blankly/exchanges/interfaces/binance/binance_api.py:134
Methodaccount_information
(self)
blankly/exchanges/interfaces/binance/binance_api.py:397
Methodaccount_snapshot
(self, type)
blankly/exchanges/interfaces/binance/binance_api.py:107
Methodaccount_status
(self)
blankly/exchanges/interfaces/binance/binance_api.py:153
Methodaccount_trade_list
(self, symbol, **optional_params)
blankly/exchanges/interfaces/binance/binance_api.py:402
Functionadd_all_products
(nonzero_products: dict, all_products: list)
blankly/utils/utils.py:799
Methodadd_custom_events
(self, event_reader: DataReader)
blankly/exchanges/interfaces/paper_trade/abc_backtest_controller.py:43
Methodadd_custom_prices
(self, price_reader: PriceReader)
blankly/exchanges/interfaces/paper_trade/abc_backtest_controller.py:39
Methodadd_custom_prices
(self, price_reader: PriceReader)
blankly/exchanges/interfaces/paper_trade/backtest_controller.py:535
Methodadd_orderbook_event
Add Orderbook Event - This will call the given callback everytime the exchange provides a change in the orderbook Args:
blankly/frameworks/strategy/strategy_base.py:248
Methodadd_prices
Add prices directly to the backtest engine
blankly/exchanges/interfaces/paper_trade/abc_backtest_controller.py:28
Methodadd_scheduled_event
Add a scheduled event. This will call the callback at the rate defined in the resolution Args: callback: The price event
blankly/frameworks/strategy/strategy_base.py:102
Methodadd_tick_event
Add a tick event - This will call the callback everytime the exchange provides a change in the price due to a trade occurring
blankly/frameworks/strategy/strategy_base.py:218
Methodadd_tick_events
(self, tick_reader: TickReader)
blankly/exchanges/interfaces/paper_trade/abc_backtest_controller.py:47
Methodadd_tick_events
(self, tick_reader: TickReader)
blankly/exchanges/interfaces/paper_trade/backtest_controller.py:541
Methodadd_trace
(self_, figure_, time__, data_, label)
blankly/exchanges/interfaces/paper_trade/backtest_controller.py:1108
Functionaggregate_candles
Aggregate history data (such as turn 1m data into 15m data) Args: history: A blankly generated dataframe aggregation_size: Ho
blankly/utils/utils.py:606
Methodall_coins
(self)
blankly/exchanges/interfaces/binance/binance_api.py:102
Methodall_orders
(self, symbol, **optional_params)
blankly/exchanges/interfaces/binance/binance_api.py:350
Functionalpaca_interface
()
tests/exchanges/interfaces/alpaca/test_alpaca_interface_functional.py:37
Functionalpaca_mock_interface
(mocker: MockerFixture)
tests/exchanges/interfaces/alpaca/test_alpaca_interface.py:201
Methodalpaca_update
(self, update: dict)
blankly/exchanges/managers/orderbook_manager.py:599
Methodamend_multiple_orders
(self, orders_data)
blankly/exchanges/interfaces/okx/okx_api.py:431
Methodamend_order
(self, instId, cxlOnFail='', ordId='', clOrdId='', reqId='', newSz='', newPx='')
blankly/exchanges/interfaces/okx/okx_api.py:424
Methodannotate
Add an annotation to the order on the platform
blankly/exchanges/orders/order.py:137
Functionapi_error_handler
(func)
blankly/exchanges/interfaces/oanda/oanda_api.py:28
Methodappend_bar
(history_reference, new_bar: dict)
blankly/frameworks/strategy/strategy_state.py:43
Methodappend_callback
(self, obj)
blankly/exchanges/abc_exchange_websocket.py:31
Methodappend_callback
(self, obj)
blankly/exchanges/interfaces/websocket.py:111
Methodappend_callback
(self, obj)
blankly/exchanges/interfaces/alpaca/alpaca_websocket.py:218
Methodappend_orderbook_callback
These are appended calls to a sorted orderbook. Functions added to this will be fired every time the orderbook changes. Args:
blankly/exchanges/managers/orderbook_manager.py:610
Methodasset_detail
(self, **optional_params)
blankly/exchanges/interfaces/binance/binance_api.py:180
Methodattempt
(math_callable: typing.Callable, dict_of_dataframes: dict, kwargs_: dict = None)
blankly/exchanges/interfaces/paper_trade/backtest_controller.py:1013
Functionaverage_true_range
(high_data, low_data, close_data, period=50, use_series=False)
blankly/indicators/indicators.py:68
Methodbacktest
(self, to: str = None, initial_values: dict = None, start_d
blankly/frameworks/strategy/strategy_base.py:294
← previousnext →601–700 of 1,497, ranked by callers