bot18
Version:
A high-frequency cryptocurrency trading bot by Zenbot creator @carlos8f
65 lines (42 loc) • 1.64 kB
Markdown
# Changelog
## 2.3.0
- Add four new methods to `FunctionCall` to query the state of the call.
- isPending
- isRunning
- isCompleted
- isAborted
## 2.2.0
- To match `Backoff` default behavior, `FunctionCall` no longer sets a
default failAfter of 5, i.e. the maximum number of backoffs is now
unbounded by default.
## 2.1.0
- `Backoff.backoff` now accepts an optional error argument that is re-emitted
as the last argument of the `backoff` and `fail` events. This provides some
context to the listeners as to why a given backoff operation was attempted.
- The `backoff` event emitted by the `FunctionCall` class now contains, as its
last argument, the error that caused the backoff operation to be attempted.
This provides some context to the listeners as to why a given backoff
operation was attempted.
## 2.0.0
- `FunctionCall.call` renamed into `FunctionCall.start`.
- `backoff.call` no longer invokes the wrapped function on `nextTick`. That
way, the first attempt is not delayed until the end of the current event
loop.
## 1.2.1
- Make `FunctionCall.backoffFactory` a private member.
## 1.2.0
- Add `backoff.call` and the associated `FunctionCall` class.
## 1.1.0
- Add a `Backoff.failAfter`.
## 1.0.0
- Rename `start` and `done` events `backoff` and `ready`.
- Remove deprecated `backoff.fibonnaci`.
## 0.2.1
- Create `backoff.fibonacci`.
- Deprecate `backoff.fibonnaci`.
- Expose fibonacci and exponential strategies.
## 0.2.0
- Provide exponential and fibonacci backoffs.
## 0.1.0
- Change `initialTimeout` and `maxTimeout` to `initialDelay` and `maxDelay`.
- Use fibonnaci backoff.