
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Cryptocurrency trading bot
SockTrader is an open source cryptocurrency trading bot. You can use it to automatically buy and/or sell cryptocurrencies based on a strategy that you've programmed. The strategy basically contains a set of rules that will define when and how the bot should act in the cryptocurrency market. These rules can be based on technical analysis (what is technical analysis?) or you could simply tell the bot to buy/sell at certain price levels. In fact, it's up to you to decide the rules of the game!
The name "SockTrader" comes from websocket based trading bot. Which means that SockTrader will try to make use of a realtime connection with the exchange. This has the advantage that one can act very quickly in a changing market with low latency.
The dashboard is currently incompatible with SockTrader v2. Use SockTrader v1 instead
git clone git@github.com:SockTrader/SockTrader.git && cd SockTrader
npm i
config/default.json
to config/local.json
and edit.npm start
npm run watch
npm run build
npm run start:prod
npm test
npm i
ts-node src/cli.ts
You will see the following output:
Usage: socktrader [options] [command]
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
run [options]
help [command] display help for command
To start a strategy using the cli run:
ts-node src/cli.ts run -s src/strategies/localMovingaverageStrategy.ts
You feel like your strategy is production ready? Good! We'll help you to connect your SockTrader strategy to your Binance account.
config/default.json
to config/local.json
config/local.json
new Binance()
and you're good to go!By default, the newly created API key does not allow you to place orders, only reads are allowed. To get started:
Using a trading bot does not mean guaranteed profit.
Also, trading crypto currency is considered high risk.
Losses are possible, which SockTrader cannot be held responsible for.
FAQs
Websocket based trading bot for cryptocurrencies
The npm package socktrader receives a total of 0 weekly downloads. As such, socktrader popularity was classified as not popular.
We found that socktrader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.