-
Notifications
You must be signed in to change notification settings - Fork 632
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
612 additions
and
2,087 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Launch", | ||
"type": "go", | ||
"request": "launch", | ||
"mode": "auto", | ||
"program": "${fileDirname}", | ||
"env": {}, | ||
"args": [] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package goex | ||
|
||
type FuturesWsApi interface { | ||
DepthCallback(func(depth *Depth)) | ||
TickerCallback(func(ticker *FutureTicker)) | ||
TradeCallback(func(trade *Trade, contract string)) | ||
//OrderCallback(func(order *FutureOrder)) | ||
//PositionCallback(func(position *FuturePosition)) | ||
//AccountCallback(func(account *FutureAccount)) | ||
|
||
SubscribeDepth(pair CurrencyPair, contractType string) error | ||
SubscribeTicker(pair CurrencyPair, contractType string) error | ||
SubscribeTrade(pair CurrencyPair, contractType string) error | ||
|
||
//Login() error | ||
//SubscribeOrder(pair CurrencyPair, contractType string) error | ||
//SubscribePosition(pair CurrencyPair, contractType string) error | ||
//SubscribeAccount(pair CurrencyPair) error | ||
} | ||
|
||
type SpotWsApi interface { | ||
DepthCallback(func(depth *Depth)) | ||
TickerCallback(func(ticker *Ticker)) | ||
TradeCallback(func(trade *Trade)) | ||
//OrderCallback(func(order *Order)) | ||
//AccountCallback(func(account *Account)) | ||
|
||
SubscribeDepth(pair CurrencyPair) error | ||
SubscribeTicker(pair CurrencyPair) error | ||
SubscribeTrade(pair CurrencyPair) error | ||
|
||
//Login() error | ||
//SubscribeOrder(pair CurrencyPair) error | ||
//SubscribeAccount(pair CurrencyPair) error | ||
} |
Oops, something went wrong.