[go: up one dir, main page]

Skip to content

Commit

Permalink
update base url
Browse files Browse the repository at this point in the history
  • Loading branch information
revilwang committed Feb 13, 2019
1 parent 2056d74 commit 9592b93
Show file tree
Hide file tree
Showing 22 changed files with 29 additions and 29 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ APIv4 futures provides all sorts of futures trading operations. There are public
## Overview
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.

- API version: 1.2.1
- Package version: 1.2.1
- API version: 1.3.0
- Package version: 1.3.0
- Build package: org.openapitools.codegen.languages.GoClientCodegen
For more information, please visit [https://gate.io/page/contacts](https://gate.io/page/contacts)

Expand Down Expand Up @@ -56,7 +56,7 @@ func main() {

## Documentation for API Endpoints

All URIs are relative to *https://fx-api.gateio.io/api/v4*
All URIs are relative to *https://fx-api.gateio.ws/api/v4*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
Expand Down
6 changes: 3 additions & 3 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ info:
and private APIs which needs authentication to trade on user's behalf.
termsOfService: https://www.gate.io/docs/agreement.pdf
title: Gate API v4
version: 1.2.1
version: 1.3.0
servers:
- description: Real Trading
url: https://fx-api.gateio.io/api/v4
url: https://fx-api.gateio.ws/api/v4
- description: TestNet Trading
url: https://fx-api-testnet.gateio.io/api/v4
url: https://fx-api-testnet.gateio.ws/api/v4
security:
- api_key: []
api_sign: []
Expand Down
2 changes: 1 addition & 1 deletion api_futures.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* APIv4 futures provides all sorts of futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf.
*
* API version: 1.2.1
* API version: 1.3.0
* Contact: support@mail.gate.io
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
Expand Down
4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* APIv4 futures provides all sorts of futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf.
*
* API version: 1.2.1
* API version: 1.3.0
* Contact: support@mail.gate.io
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
Expand Down Expand Up @@ -39,7 +39,7 @@ var (
xmlCheck = regexp.MustCompile("(?i:[application|text]/xml)")
)

// APIClient manages communication with the Gate API v4 API v1.2.1
// APIClient manages communication with the Gate API v4 API v1.3.0
// In most cases there should be only one, shared, APIClient.
type APIClient struct {
cfg *Configuration
Expand Down
6 changes: 3 additions & 3 deletions configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* APIv4 futures provides all sorts of futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf.
*
* API version: 1.2.1
* API version: 1.3.0
* Contact: support@mail.gate.io
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
Expand Down Expand Up @@ -63,9 +63,9 @@ type Configuration struct {

func NewConfiguration() *Configuration {
cfg := &Configuration{
BasePath: "https://fx-api.gateio.io/api/v4",
BasePath: "https://fx-api.gateio.ws/api/v4",
DefaultHeader: make(map[string]string),
UserAgent: "OpenAPI-Generator/1.2.1/go",
UserAgent: "OpenAPI-Generator/1.3.0/go",
Key: "",
Secret: "",
}
Expand Down
2 changes: 1 addition & 1 deletion docs/FuturesApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# \FuturesApi

All URIs are relative to *https://fx-api.gateio.io/api/v4*
All URIs are relative to *https://fx-api.gateio.ws/api/v4*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
2 changes: 1 addition & 1 deletion model_contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* APIv4 futures provides all sorts of futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf.
*
* API version: 1.2.1
* API version: 1.3.0
* Contact: support@mail.gate.io
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
Expand Down
2 changes: 1 addition & 1 deletion model_funding_rate_record.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* APIv4 futures provides all sorts of futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf.
*
* API version: 1.2.1
* API version: 1.3.0
* Contact: support@mail.gate.io
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
Expand Down
2 changes: 1 addition & 1 deletion model_futures_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* APIv4 futures provides all sorts of futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf.
*
* API version: 1.2.1
* API version: 1.3.0
* Contact: support@mail.gate.io
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
Expand Down
2 changes: 1 addition & 1 deletion model_futures_account_book.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* APIv4 futures provides all sorts of futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf.
*
* API version: 1.2.1
* API version: 1.3.0
* Contact: support@mail.gate.io
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
Expand Down
2 changes: 1 addition & 1 deletion model_futures_candlestick.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* APIv4 futures provides all sorts of futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf.
*
* API version: 1.2.1
* API version: 1.3.0
* Contact: support@mail.gate.io
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
Expand Down
2 changes: 1 addition & 1 deletion model_futures_order.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* APIv4 futures provides all sorts of futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf.
*
* API version: 1.2.1
* API version: 1.3.0
* Contact: support@mail.gate.io
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
Expand Down
2 changes: 1 addition & 1 deletion model_futures_order_book.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* APIv4 futures provides all sorts of futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf.
*
* API version: 1.2.1
* API version: 1.3.0
* Contact: support@mail.gate.io
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
Expand Down
2 changes: 1 addition & 1 deletion model_futures_order_book_item.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* APIv4 futures provides all sorts of futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf.
*
* API version: 1.2.1
* API version: 1.3.0
* Contact: support@mail.gate.io
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
Expand Down
2 changes: 1 addition & 1 deletion model_futures_ticker.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* APIv4 futures provides all sorts of futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf.
*
* API version: 1.2.1
* API version: 1.3.0
* Contact: support@mail.gate.io
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
Expand Down
2 changes: 1 addition & 1 deletion model_futures_trade.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* APIv4 futures provides all sorts of futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf.
*
* API version: 1.2.1
* API version: 1.3.0
* Contact: support@mail.gate.io
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
Expand Down
2 changes: 1 addition & 1 deletion model_insurance_record.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* APIv4 futures provides all sorts of futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf.
*
* API version: 1.2.1
* API version: 1.3.0
* Contact: support@mail.gate.io
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
Expand Down
2 changes: 1 addition & 1 deletion model_my_futures_trade.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* APIv4 futures provides all sorts of futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf.
*
* API version: 1.2.1
* API version: 1.3.0
* Contact: support@mail.gate.io
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
Expand Down
2 changes: 1 addition & 1 deletion model_position.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* APIv4 futures provides all sorts of futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf.
*
* API version: 1.2.1
* API version: 1.3.0
* Contact: support@mail.gate.io
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
Expand Down
2 changes: 1 addition & 1 deletion model_position_close.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* APIv4 futures provides all sorts of futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf.
*
* API version: 1.2.1
* API version: 1.3.0
* Contact: support@mail.gate.io
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
Expand Down
2 changes: 1 addition & 1 deletion model_position_close_order.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* APIv4 futures provides all sorts of futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf.
*
* API version: 1.2.1
* API version: 1.3.0
* Contact: support@mail.gate.io
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
Expand Down
2 changes: 1 addition & 1 deletion response.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* APIv4 futures provides all sorts of futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf.
*
* API version: 1.2.1
* API version: 1.3.0
* Contact: support@mail.gate.io
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
Expand Down

0 comments on commit 9592b93

Please sign in to comment.