// NewOrderConnector creates a new connector that can open orders on the Binance exchange
NewOrderConnector creates a new connector that can open orders on the Binance exchange
// NewOrderConnector creates a new connector that can open orders on the Binance exchange
func NewOrderConnector(apiKey, secretKey string, isTestnet bool) *BinanceConnector {
	binance.UseTestnet = isTestnet
	var connector = &BinanceConnector{
		apiKey:    apiKey,
		secretKey: secretKey,
		client:    binance.NewClient(apiKey, secretKey),
		userID:    hash.SHA1(apiKey + secretKey)}
	connector.timeOffset, _ = connector.client.NewSetServerTimeService().Do(context.Background())
	return connector
}
func NewOrderConnector ( apiKey , secretKey string , isTestnet bool ) * BinanceConnector { binance . UseTestnet = isTestnet var connector = & BinanceConnector { apiKey : apiKey , secretKey : secretKey , client : binance . NewClient ( apiKey , secretKey ) , userID : hash . SHA1 ( apiKey + secretKey ) } connector . timeOffset , _ = connector . client . NewSetServerTimeService ( ) . Do ( context . Background ( ) ) return connector }
NewOrderConnector creates a new connector that can open orders on the Binance exchange
NewOrderConnector creates a new connector that can open orders on the Binance exchange