Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
github.com/yanatan16/golang-mtgox
An implementation of a Mt. Gox client in Go. It uses the websocket interface.
Note: This API mostly complete but untested in production.
Example below. API Documentation on Godoc.
func ExampleMtGoxApi() {
gox, err := NewFromConfig(os.ExpandEnv("$MTGOX_CONFIG"))
if err != nil {
panic(err)
}
c, err := gox.Subscribe("ticker", "depth")
if err != nil {
panic(err)
}
go func() {
for msg := range c {
fmt.Println("Got ticker or depth:", msg)
}
}()
orderchan, err := gox.SubmitOrder("bid", 100000000, 10000) // Both are in _int notation. Will add float later
if err != nil {
panic(err)
}
order := <- orderchan
if order.Success {
fmt.Println("Yay submitted an order!", order.Result)
} else {
fmt.Println("Boo. Failure!", order.Error)
}
}
MIT found in LICENSE file.
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.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.