
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@debut/plugin-dynamic-takes
Advanced tools
The Debut plugin for setting take and stop prices in manual mode. Allows you to set or change stop and take prices for open positions at any time using their identifier. It also allows you to optionally make fill-ups instead of closing unprofitable positions.
npm install @debut/plugin-dynamic-takes --save
| Name | Type | Default value | Description |
|---|---|---|---|
| trailing | boolean | false | trailing a stop position after setting the takes and stops |
| ignoreTicks | boolean | false | ignore ticks, because it often happens that stops can be knocked out by the shadow but not the body of the candle |
| maxRetryOrders | number | 0 | Sets the number of buybacks |
| Name | Description |
|---|---|
| setTrailingForOrder | start trailing for a single target order |
| setForOrder | setup stop and take prices for signle order, setting up by passed options parameters |
| getTakes | get take and stop price for order from plugin state |
When the maximum number of pending orders is reached, the system will set takeovers to the breakeven level on all trades, and if the price does not turn around, all previously created trades will be closed at a loss.
// in context of Debut...
async onCandle({ c }) {
// some entry conditions
const order = await this.createOrder(target);
let take = c + c * 0.15; // Assume 15%
let stop = c - c * 0.10; // And the stop is 10%
// If the trade is of the SELL type, swap the stop and take positions
if (target === OrderType.SELL) {
[take, stop] = [stop, take];
}
// Hand over the cid (client-id) to the price plugin.
// Then it will monitor when it reaches a take or stop
// after which it will automatically close the trade
this.plugins.dynamicTakes.setForOrder(order.cid, take, stop);
return order;
}
| Order with zero loose level | Profitable close with support order |
|---|---|
![]() | ![]() |
FAQs
Dynamic takes plugin for Debut
The npm package @debut/plugin-dynamic-takes receives a total of 29 weekly downloads. As such, @debut/plugin-dynamic-takes popularity was classified as not popular.
We found that @debut/plugin-dynamic-takes 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.