Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
eynzhang committed Dec 3, 2020
1 parent cba203a commit 30dbe0c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ resp, err := client.GetCurrencys()

```go
client := new(client.MarketClient).Init(config.Host)
optionalRequest := getrequest.GetCandlestickOptionalRequest{Period: getrequest.MIN1, Size: 10}
optionalRequest := market.GetCandlestickOptionalRequest{Period: market.MIN1, Size: 10}
resp, err := client.GetCandlestick("btcusdt", optionalRequest)
```

Expand Down Expand Up @@ -267,7 +267,7 @@ resp, err := client.GetLast24hCandlestickAskBid("btcusdt")

```go
client := new(client.MarketClient).Init(config.Host)
optionalRequest := getrequest.GetHistoricalTradeOptionalRequest{5}
optionalRequest := market.GetHistoricalTradeOptionalRequest{5}
resp, err := client.GetHistoricalTrade("btcusdt", optionalRequest)
```

Expand Down Expand Up @@ -315,7 +315,7 @@ resp, err := client.CancelWithdraw(12345)
```go
client := new(client.WalletClient).Init(config.AccessKey, config.SecretKey, config.Host)
depositType := "deposit"
queryDepositWithdrawOptionalRequest := getrequest.QueryDepositWithdrawOptionalRequest{Currency: "usdt"}
queryDepositWithdrawOptionalRequest := wallet.QueryDepositWithdrawOptionalRequest{Currency: "usdt"}

resp, err := client.QueryDepositWithdraw(depositType, queryDepositWithdrawOptionalRequest)
```
Expand Down Expand Up @@ -368,7 +368,7 @@ client := new(client.OrderClient).Init(config.AccessKey, config.SecretKey, confi

```go
client := new(client.OrderClient).Init(config.AccessKey, config.SecretKey, config.Host)
request := new(getrequest.GetRequest).Init()
request := new(model.GetRequest).Init()
request.AddParam("symbol", "btcusdt")
request.AddParam("states", "canceled")
resp, err := client.GetHistoryOrders(request)
Expand Down Expand Up @@ -404,7 +404,7 @@ resp, err := client.MarginOrdersRepay(orderId, request)

```go
client := new(client.IsolatedMarginClient).Init(config.AccessKey, config.SecretKey, config.Host)
optionalRequest := getrequest.IsolatedMarginLoanOrdersOptionalRequest{
optionalRequest := margin.IsolatedMarginLoanOrdersOptionalRequest{
StartDate: "2020-1-1",
}

Expand Down

0 comments on commit 30dbe0c

Please sign in to comment.