mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 23:05:15 +00:00
Merge pull request #345 from tony1223/bug/344-is_futures_fail
This commit is contained in:
commit
b7c1a544c7
|
@ -116,6 +116,7 @@ type SubmitOrder struct {
|
||||||
MarginSideEffect MarginOrderSideEffectType `json:"marginSideEffect,omitempty"` // AUTO_REPAY = repay, MARGIN_BUY = borrow, defaults to NO_SIDE_EFFECT
|
MarginSideEffect MarginOrderSideEffectType `json:"marginSideEffect,omitempty"` // AUTO_REPAY = repay, MARGIN_BUY = borrow, defaults to NO_SIDE_EFFECT
|
||||||
|
|
||||||
// futures order fields
|
// futures order fields
|
||||||
|
IsFutures bool `json:"is_futures" db:"is_futures"`
|
||||||
ReduceOnly bool `json:"reduceOnly" db:"reduce_only"`
|
ReduceOnly bool `json:"reduceOnly" db:"reduce_only"`
|
||||||
ClosePosition bool `json:"closePosition" db:"close_position"`
|
ClosePosition bool `json:"closePosition" db:"close_position"`
|
||||||
}
|
}
|
||||||
|
@ -135,7 +136,6 @@ func (o *SubmitOrder) SlackAttachment() slack.Attachment {
|
||||||
{Title: "Quantity", Value: o.QuantityString, Short: true},
|
{Title: "Quantity", Value: o.QuantityString, Short: true},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if len(o.PriceString) > 0 {
|
if len(o.PriceString) > 0 {
|
||||||
fields = append(fields, slack.AttachmentField{Title: "Price", Value: o.PriceString, Short: true})
|
fields = append(fields, slack.AttachmentField{Title: "Price", Value: o.PriceString, Short: true})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user