Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add quantityto trailing stop market new futures order #647

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ declare module 'binance-api-node' {
}): Promise<AggregatedTrade[]>
futuresTrades(options: { symbol: string; limit?: number }): Promise<TradeResult[]>
futuresUserTrades(options: {
symbol: string
symbol?: string
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the symbol really optional?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. While I am making my bot, and checking the docs I am making changes to my local node_modules folder and them, I am sharing this changes here.

My sugestions are proved with real money before share in PR's.

startTime?: number
endTime?: number
fromId?: number
Expand Down Expand Up @@ -1163,6 +1163,8 @@ declare module 'binance-api-node' {

export interface TrailingStopMarketNewFuturesOrder extends NewFuturesOrderBase {
type: 'TRAILING_STOP_MARKET'

quantity?:string
// default as the latest price(supporting different workingType)
activationPrice?: string
// min 0.1, max 5 where 1 for 1%
Expand Down
Loading