WebVM is a server-less virtual environment running fully client-side in HTML5/WebAssembly. It's designed to be Linux ABI-compatible. It runs an unmodified Debian distribution including many native development toolchains.
WebVM is powered by the CheerpX virtualization engine, and enables safe, sandboxed client-side execution of x86 binaries on any browser. CheerpX includes an x86-to-WebAssembly JIT compiler, a virtual block-based file system, and a Linux syscall emulator.
Enable networking
Modern browsers do not provide APIs to directly use TCP or UDP. WebVM provides networking support by integrating with Tailscale, a VPN network that supports WebSockets as a transport layer.
Open the "Networking" panel from the side-bar
Click "Connect to Tailscale" from the panel
Log in to Tailscale (create an account if you don't have one)
Click "Connect" when prompted by Tailscale
If you are unfamiliar with Tailscale or would like additional information see WebVM and Tailscale.
Fork, deploy, customize
deploy_instructions_gif
Fork the repository.
Enable Github pages in settings.
Click on Settings.
Go to the Pages section.
Select Github Actions as the source.
If you are using a custom domain, ensure Enforce HTTPS is enabled.
Run the workflow.
Click on Actions.
Accept the prompt. This is required only once to enable Actions for your fork.
Click on the workflow named Deploy.
Click Run workflow and then once more Run workflow in the menu.
After a few seconds a new Deploy workflow will start, click on it to see details.
After the workflow completes, which takes a few minutes, it will show the URL below the deploy_to_github_pages job.
You can now customize dockerfiles/debian_mini to suit your needs, or make a new Dockerfile from scratch. Use the Path to Dockerfile workflow parameter to select it.
Local deployment
From a local git clone
Download the debian_mini Ext2 image from https://github.com/leaningtech/webvm/releases/
You can also build your own by selecting the "Upload GitHub release" workflow option
Place the image in the repository root folder
Edit config_github_terminal.js
Uncomment the default values for CMD, ARGS, ENV and CWD
Replace IMAGE_URL with the URL (absolute or relative) for the Ext2 image. For example "/debian_mini_20230519_5022088024.ext2"
Build WebVM using npm, output will be placed in the build directory
npm install
npm run build
Start NGINX, it automatically points to the build directory just created
nginx -p . -c nginx.conf
Visit and enjoy your local WebVM
Example customization: Python3 REPL
The Deploy workflow takes into account the CMD specified in the Dockerfile. To build a REPL you can simply apply this patch and deploy.
Assistant
Freqtrade 是一个免费且开源的加密货币交易机器人,使用 Python 编写。它设计支持所有主要加密货币交易所,并可以通过 Telegram 或内置的 Web UI 控制。Freqtrade 提供回测、绘图和资金管理工具,另外还提供了机器学习的策略优化功能。
项目特点
支持多个操作系统:基于 Python 3.10+,可以在 Windows、macOS 和 Linux 上运行。
持久化存储:通过 sqlite 实现持久化。
模拟运行(Dry-run):允许在不实际交易的情况下测试策略。
回测功能:可以模拟你的买卖策略。
机器学习策略优化:能够使用真实的交易数据优化买卖策略参数。
适应性预测建模:通过 FreqAI 构建智能策略,使其自适应市场环境。
风险管理:计算胜率、风险回报率、最优止损等,以调整每个市场特定的持仓大小。
白名单和黑名单:可以选择交易某些特定加密货币或避免某些加密货币。
内置 WebUI 和 Telegram 控制:通过 Web UI 管理机器人,并可用 Telegram 进行管理。
We set env, as this gets extracted by Webvm. This is optional.
ENV HOME="/home/user" TERM="xterm" USER="user" SHELL="/bin/bash" EDITOR="vim" LANG="en_US.UTF-8" LC_ALL="C"
RUN echo 'root:password' | chpasswd
-CMD [ "/bin/bash" ]
+CMD [ "/usr/bin/python3" ]
Bugs and Issues
Please use Issues to report any bug. Or come to say hello / share your feedback on Discord.
More links
WebVM: server-less x86 virtual machines in the browser
WebVM: Linux Virtualization in WebAssembly with Full Networking via Tailscale
Mini.WebVM: Your own Linux box from Dockerfile, virtualized in the browser via WebAssembly
Reference GitHub Pages deployment: Mini.WebVM
Crafting the Impossible: X86 Virtualization in the Browser with WebAssembly Talk at JsNation 2022
Thanks to...
This project depends on:
CheerpX, made by Leaning Technologies for x86 virtualization and Linux emulation
xterm.js, https://xtermjs.org/, for providing the Web-based terminal emulator
Tailscale, for the networking component
lwIP, for the TCP/IP stack, compiled for the Web via Cheerp
Versioning
WebVM depends on the CheerpX x86-to-WebAssembly virtualization technology, which is included in the project via NPM.
The NPM package is updated on every release.
Every build is immutable, if a specific version works well for you today, it will keep working forever.
License
WebVM is released under the Apache License, Version 2.0.
You are welcome to use, modify, and redistribute the contents of this repository.
The public CheerpX deployment is provided as-is and is free to use for technological exploration, testing and use by individuals. Any other use by organizations, including non-profit, academia and the public sector, requires a license. Downloading a CheerpX build for the purpose of hosting it elsewhere is not permitted without a commercial license.
Read more about CheerpX licensing
If you wa
这是啥项目?
Assistant: WebVM 是一个允许你在浏览器中运行完整 Linux 虚拟环境的项目。它通过 HTML5 和 WebAssembly 技术实现完全在客户端执行,无需服务器支持。其设计目标是与 Linux ABI 兼容,并运行未经修改的 Debian 发行版,其中包括许多原生开发工具链。
以下是 WebVM 项目的几个关键特点:
技术支持:WebVM 使用 CheerpX 虚拟化引擎,支持安全、沙盒化的 x86 二进制文件在浏览器上的执行。CheerpX 包括一个 x86 到 WebAssembly 的即时编译器、虚拟块级文件系统,以及 Linux 系统调用仿真器。
打开浏览器并访问 http://127.0.0.1:8081,你应该可以看到 WebVM 的界面,并能够在其中运行 Linux 虚拟环境。
如果遇到任何问题,可以检查 NGINX 的配置和 Node.js 依赖项安装是否正确,并确保镜像路径设置无误。通过这些步骤,你可以在 Debian 系统上体验 WebVM 的功能,完全在你的本地环境中运行该程序。
User: freqtrade
Freqtrade CI DOI Coverage Status Documentation Maintainability
Freqtrade is a free and open source crypto trading bot written in Python. It is designed to support all major exchanges and be controlled via Telegram or webUI. It contains backtesting, plotting and money management tools as well as strategy optimization by machine learning.
freqtrade
Disclaimer
This software is for educational purposes only. Do not risk money which you are afraid to lose. USE THE SOFTWARE AT YOUR OWN RISK. THE AUTHORS AND ALL AFFILIATES ASSUME NO RESPONSIBILITY FOR YOUR TRADING RESULTS.
Always start by running a trading bot in Dry-run and do not engage money before you understand how it works and what profit/loss you should expect.
We strongly recommend you to have coding and Python knowledge. Do not hesitate to read the source code and understand the mechanism of this bot.
Supported Exchange marketplaces
Please read the exchange specific notes to learn about eventual, special configurations needed for each exchange.
Binance
Bitmart
BingX
Bybit
Gate.io
HTX (Former Huobi)
Hyperliquid (A decentralized exchange, or DEX)
Kraken
OKX (Former OKEX)
potentially many others. (We cannot guarantee they will work)
Supported Futures Exchanges (experimental)
Binance
Gate.io
Hyperliquid (A decentralized exchange, or DEX)
OKX
Bybit
Please make sure to read the exchange specific notes, as well as the trading with leverage documentation before diving in.
Community tested
Exchanges confirmed working by the community:
Bitvavo
Kucoin
Documentation
We invite you to read the bot documentation to ensure you understand how the bot is working.
Please find the complete documentation on the freqtrade website.
Features
Based on Python 3.10+: For botting on any operating system - Windows, macOS and Linux.
Persistence: Persistence is achieved through sqlite.
Dry-run: Run the bot without paying money.
Backtesting: Run a simulation of your buy/sell strategy.
Strategy Optimization by machine learning: Use machine learning to optimize your buy/sell strategy parameters with real exchange data.
Adaptive prediction modeling: Build a smart strategy with FreqAI that self-trains to the market via adaptive machine learning methods. Learn more
Edge position sizing Calculate your win rate, risk reward ratio, the best stoploss and adjust your position size before taking a position for each specific market. Learn more.
Whitelist crypto-currencies: Select which crypto-currency you want to trade or use dynamic whitelists.
Blacklist crypto-currencies: Select which crypto-currency you want to avoid.
Builtin WebUI: Builtin web UI to manage your bot.
Manageable via Telegram: Manage the bot with Telegram.
Display profit/loss in fiat: Display your profit/loss in fiat currency.
Performance status report: Provide a performance status of your current trades.
Quick start
Please refer to the Docker Quickstart documentation on how to get started quickly.
For further (native) installation methods, please refer to the Installation documentation page.
positional arguments:
{trade,create-userdir,new-config,show-config,new-strategy,download-data,convert-data,convert-trade-data,trades-to-ohlcv,list-data,backtesting,backtesting-show,backtesting-analysis,edge,hyperopt,hyperopt-list,hyperopt-show,list-exchanges,list-markets,list-pairs,list-strategies,list-freqaimodels,list-timeframes,show-trades,test-pairlist,convert-db,install-ui,plot-dataframe,plot-profit,webserver,strategy-updater,lookahead-analysis,recursive-analysis}
trade Trade module.
create-userdir Create user-data directory.
new-config Create new config
show-config Show resolved config
new-strategy Create new strategy
download-data Download backtesting data.
convert-data Convert candle (OHLCV) data from one format to
another.
convert-trade-data Convert trade data from one format to another.
trades-to-ohlcv Convert trade data to OHLCV data.
list-data List downloaded data.
backtesting Backtesting module.
backtesting-show Show past Backtest results
backtesting-analysis
Backtest Analysis module.
edge Edge module.
hyperopt Hyperopt module.
hyperopt-list List Hyperopt results
hyperopt-show