
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
github.com/testingaccmar/ccxt_beyang
Library for generalized REST and websocket connection to various centralized exchanges
Translations:
Name | Logo | CCXT BeYANG Library |
---|---|---|
Binance | ![]() | CCXT_BeYANG_Binance |
Bybit | ![]() | CCXT_BeYANG_Bybit |
go get github.com/beyang-crypto/CCXT_beYANG
Since the library is designed for different exchanges, all examples will be generalized. To get example for specific exchange, head to the specific exchange README.
1. Create a configuration for connection
Use config package to create a configuration. If you want to access private exchange endpoints, use the NewAuth function. Else - New.
enums.go
file.import (
"github.com/beyang-crypto/CCXT_beYANG/config"
)
// <...>
endpoint := exchangeEnums.<MainnetEndpoint> // use endpoint from specific exchange enums
debugMode := true
cfg := config.New(endpoint, debugMode)
enums.go
file.import (
"github.com/beyang-crypto/CCXT_beYANG/config"
)
// <...>
configFile := "./config-prod.yaml"
exchangeIterable := 0
endpoint := exchangeEnums.<MainnetEndpoint> // use endpoint from specific exchange enums
debugMode := true
cfg := config.NewAuth(configFile, exchangeIterable, endpoint, debugMode)
Before using
NewAuth
method, it is necessary to prepare a*.yaml
configuration file, containing the authentication data for an exchange, as well as its name.Configuration file template:
api: - name: "Exchange name" key: "public key" secret: "secret key" password: "Password (optional)"
2. Connecting
Call the New function of exchange client, providing previously created configuration as an argument.
To build Docker image for Grafana, run the following command:
docker-compose up -d
Grafana will be available at port 3000
.
Default login and password for Grafana: admin
.
FAQs
Unknown package
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.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.