max: drop unused url ref vars

This commit is contained in:
c9s 2022-05-27 16:46:29 +08:00
parent 60d65a390f
commit d792f3b83b
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -15,11 +15,10 @@ import (
"github.com/c9s/bbgo/pkg/types" "github.com/c9s/bbgo/pkg/types"
) )
var relUrlV2Order *url.URL var (
var relUrlV2Orders *url.URL relUrlV2Orders *url.URL
var relUrlV2OrdersClear *url.URL relUrlV2OrdersMultiOneByOne *url.URL
var relUrlV2OrdersDelete *url.URL )
var relUrlV2OrdersMultiOneByOne, relUrlV2OrderDelete *url.URL
func mustParseURL(s string) *url.URL { func mustParseURL(s string) *url.URL {
u, err := url.Parse(s) u, err := url.Parse(s)
@ -30,11 +29,7 @@ func mustParseURL(s string) *url.URL {
} }
func init() { func init() {
relUrlV2Order = mustParseURL("v2/order")
relUrlV2OrderDelete = mustParseURL("v2/order/delete")
relUrlV2Orders = mustParseURL("v2/orders") relUrlV2Orders = mustParseURL("v2/orders")
relUrlV2OrdersClear = mustParseURL("v2/orders/clear")
relUrlV2OrdersDelete = mustParseURL("v2/orders/delete")
relUrlV2OrdersMultiOneByOne = mustParseURL("v2/orders/multi/onebyone") relUrlV2OrdersMultiOneByOne = mustParseURL("v2/orders/multi/onebyone")
} }