[go: up one dir, main page]

Skip to content

Commit

Permalink
release 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
revilwang committed Feb 13, 2019
1 parent c71196a commit 2056d74
Show file tree
Hide file tree
Showing 23 changed files with 47 additions and 30 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Go API client for gateapi
# Go API client for gateapi

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.

## 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.0
- Package version: 1.2.0
- API version: 1.2.1
- Package version: 1.2.1
- Build package: org.openapitools.codegen.languages.GoClientCodegen
For more information, please visit [https://gate.io/page/contacts](https://gate.io/page/contacts)

Expand Down
19 changes: 15 additions & 4 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ 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.0
version: 1.2.1
servers:
- description: Real Trading
url: https://fx-api.gateio.io/api/v4
Expand Down Expand Up @@ -344,7 +344,9 @@ paths:
last: "6432"
change_percentage: "4.43"
total_size: "32323904"
volume_24h: "184040233284.328"
volume_24h: "184040233284"
volume_24h_btc: "28613220"
volume_24h_usd: "184040233284"
mark_price: "6534"
funding_rate: "0"
index_price: "6531"
Expand Down Expand Up @@ -479,6 +481,7 @@ paths:
- fee: Trading fee
- refr: Referrer rebate
- fund: Funding
example: dnw
explode: true
in: query
name: type
Expand Down Expand Up @@ -1552,7 +1555,7 @@ components:
tkfr: tkfr
price: price
is_reduce_only: true
refu: refu
refu: 9
iceberg: 2
mkfr: mkfr
id: 0
Expand Down Expand Up @@ -1690,7 +1693,7 @@ components:
refu:
description: Reference user ID
readOnly: true
type: string
type: integer
required:
- contract
type: object
Expand Down Expand Up @@ -1780,12 +1783,14 @@ components:
FuturesTicker:
example:
funding_rate: funding_rate
volume_24h_btc: volume_24h_btc
last: last
change_percentage: change_percentage
contract: contract
mark_price: mark_price
total_size: total_size
volume_24h: volume_24h
volume_24h_usd: volume_24h_usd
index_price: index_price
quanto_base_rate: quanto_base_rate
properties:
Expand All @@ -1804,6 +1809,12 @@ components:
volume_24h:
description: Trade size in recent 24h
type: string
volume_24h_btc:
description: Trade volume in recent 24h in BTC
type: string
volume_24h_usd:
description: Trade volume in recent 24h in USD
type: string
mark_price:
description: Recent mark price
type: string
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.0
* API version: 1.2.1
* 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.0
* API version: 1.2.1
* 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.0
// APIClient manages communication with the Gate API v4 API v1.2.1
// In most cases there should be only one, shared, APIClient.
type APIClient struct {
cfg *Configuration
Expand Down
4 changes: 2 additions & 2 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.0
* API version: 1.2.1
* Contact: support@mail.gate.io
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
Expand Down Expand Up @@ -65,7 +65,7 @@ func NewConfiguration() *Configuration {
cfg := &Configuration{
BasePath: "https://fx-api.gateio.io/api/v4",
DefaultHeader: make(map[string]string),
UserAgent: "OpenAPI-Generator/1.2.0/go",
UserAgent: "OpenAPI-Generator/1.2.1/go",
Key: "",
Secret: "",
}
Expand Down
2 changes: 1 addition & 1 deletion docs/FuturesOrder.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Name | Type | Description | Notes
**Text** | **string** | How order is created - web: from web - api: from API - app: from mobile phones - auto_deleveraging: from ADL - liquidation: from liquidation - insurance: from insurance | [optional]
**Tkfr** | **string** | Taker fee | [optional]
**Mkfr** | **string** | Maker fee | [optional]
**Refu** | **string** | Reference user ID | [optional]
**Refu** | **int32** | Reference user ID | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
2 changes: 2 additions & 0 deletions docs/FuturesTicker.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Name | Type | Description | Notes
**ChangePercentage** | **string** | Change percentage. | [optional]
**TotalSize** | **string** | Contract total size | [optional]
**Volume24h** | **string** | Trade size in recent 24h | [optional]
**Volume24hBtc** | **string** | Trade volume in recent 24h in BTC | [optional]
**Volume24hUsd** | **string** | Trade volume in recent 24h in USD | [optional]
**MarkPrice** | **string** | Recent mark price | [optional]
**FundingRate** | **string** | Funding rate | [optional]
**IndexPrice** | **string** | Index price | [optional]
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.0
* API version: 1.2.1
* 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.0
* API version: 1.2.1
* 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.0
* API version: 1.2.1
* 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.0
* API version: 1.2.1
* 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.0
* API version: 1.2.1
* Contact: support@mail.gate.io
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
Expand Down
4 changes: 2 additions & 2 deletions 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.0
* API version: 1.2.1
* Contact: support@mail.gate.io
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
Expand Down Expand Up @@ -54,5 +54,5 @@ type FuturesOrder struct {
// Maker fee
Mkfr string `json:"mkfr,omitempty"`
// Reference user ID
Refu string `json:"refu,omitempty"`
Refu int32 `json:"refu,omitempty"`
}
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.0
* API version: 1.2.1
* 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.0
* API version: 1.2.1
* Contact: support@mail.gate.io
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
Expand Down
6 changes: 5 additions & 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.0
* API version: 1.2.1
* Contact: support@mail.gate.io
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
Expand All @@ -21,6 +21,10 @@ type FuturesTicker struct {
TotalSize string `json:"total_size,omitempty"`
// Trade size in recent 24h
Volume24h string `json:"volume_24h,omitempty"`
// Trade volume in recent 24h in BTC
Volume24hBtc string `json:"volume_24h_btc,omitempty"`
// Trade volume in recent 24h in USD
Volume24hUsd string `json:"volume_24h_usd,omitempty"`
// Recent mark price
MarkPrice string `json:"mark_price,omitempty"`
// Funding rate
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.0
* API version: 1.2.1
* 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.0
* API version: 1.2.1
* 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.0
* API version: 1.2.1
* 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.0
* API version: 1.2.1
* 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.0
* API version: 1.2.1
* 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.0
* API version: 1.2.1
* 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.0
* API version: 1.2.1
* Contact: support@mail.gate.io
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
Expand Down

0 comments on commit 2056d74

Please sign in to comment.