mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
all: reformat code
This commit is contained in:
parent
8e426ca4bf
commit
f7a5c84768
|
@ -1240,7 +1240,7 @@ func Test_buildPinOrderMap(t *testing.T) {
|
||||||
|
|
||||||
t.Run("successful case", func(t *testing.T) {
|
t.Run("successful case", func(t *testing.T) {
|
||||||
openOrders := []types.Order{
|
openOrders := []types.Order{
|
||||||
types.Order{
|
{
|
||||||
SubmitOrder: types.SubmitOrder{
|
SubmitOrder: types.SubmitOrder{
|
||||||
Symbol: s.Symbol,
|
Symbol: s.Symbol,
|
||||||
Side: types.SideTypeBuy,
|
Side: types.SideTypeBuy,
|
||||||
|
@ -1275,7 +1275,7 @@ func Test_buildPinOrderMap(t *testing.T) {
|
||||||
|
|
||||||
t.Run("there is one order with non-pin price in openOrders", func(t *testing.T) {
|
t.Run("there is one order with non-pin price in openOrders", func(t *testing.T) {
|
||||||
openOrders := []types.Order{
|
openOrders := []types.Order{
|
||||||
types.Order{
|
{
|
||||||
SubmitOrder: types.SubmitOrder{
|
SubmitOrder: types.SubmitOrder{
|
||||||
Symbol: s.Symbol,
|
Symbol: s.Symbol,
|
||||||
Side: types.SideTypeBuy,
|
Side: types.SideTypeBuy,
|
||||||
|
@ -1301,7 +1301,7 @@ func Test_buildPinOrderMap(t *testing.T) {
|
||||||
|
|
||||||
t.Run("there are duplicated open orders at same pin", func(t *testing.T) {
|
t.Run("there are duplicated open orders at same pin", func(t *testing.T) {
|
||||||
openOrders := []types.Order{
|
openOrders := []types.Order{
|
||||||
types.Order{
|
{
|
||||||
SubmitOrder: types.SubmitOrder{
|
SubmitOrder: types.SubmitOrder{
|
||||||
Symbol: s.Symbol,
|
Symbol: s.Symbol,
|
||||||
Side: types.SideTypeBuy,
|
Side: types.SideTypeBuy,
|
||||||
|
@ -1320,7 +1320,7 @@ func Test_buildPinOrderMap(t *testing.T) {
|
||||||
ExecutedQuantity: number(0.0),
|
ExecutedQuantity: number(0.0),
|
||||||
IsWorking: false,
|
IsWorking: false,
|
||||||
},
|
},
|
||||||
types.Order{
|
{
|
||||||
SubmitOrder: types.SubmitOrder{
|
SubmitOrder: types.SubmitOrder{
|
||||||
Symbol: s.Symbol,
|
Symbol: s.Symbol,
|
||||||
Side: types.SideTypeBuy,
|
Side: types.SideTypeBuy,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user