Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
github.com/ydm/dola
Що се рекло от три наречници,
що се рекло и се извършило...
Dola is a cryptocurrency trading library that provides:
Dola expects to find a configuration file at ~/.dola/config.json
.
See an example
here.
NB: Dola needs just the exchanges
section.
Each strategy is an implementation of the following interface. Dola
has the responsibility of invoking all of the Strategy
methods.
Strategy.On*
methods are invoked whenever there is new data from one
of the registered exchanges. If you need a strategy that supports just
one exchange (out of many), take a look at DedicatedStrategy
.
type Strategy interface {
Init(k *Keep, e exchange.IBotExchange) error
OnFunding(k *Keep, e exchange.IBotExchange, x stream.FundingData) error
OnPrice(k *Keep, e exchange.IBotExchange, x ticker.Price) error
OnKline(k *Keep, e exchange.IBotExchange, x stream.KlineData) error
OnOrderBook(k *Keep, e exchange.IBotExchange, x orderbook.Base) error
OnOrder(k *Keep, e exchange.IBotExchange, x order.Detail) error
OnModify(k *Keep, e exchange.IBotExchange, x order.Modify) error
OnBalanceChange(k *Keep, e exchange.IBotExchange, x account.Change) error
OnUnrecognized(k *Keep, e exchange.IBotExchange, x interface{}) error
Deinit(k *Keep, e exchange.IBotExchange) error
}
package main
import (
"context"
"github.com/ydm/dola"
)
func main() {
keep, _ := dola.NewKeepBuilder().Build()
keep.Root.Add("verbose", dola.VerboseStrategy{})
keep.Run(context.Background())
}
keep, _ := dola.NewKeepBuilder().Augment(func (c *config.Config) erro {
doSomething(c)
}).Build()
creator := func() (exchange.IBotExchange, error) {
return NewCustomExchange()
}
keep, _ := dola.NewKeepBuilder().CustomExchange(name, creator).Build()
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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.