cybrid_api_bank_ruby 0.35.4 → 0.35.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +11 -11
- data/cybrid_api_bank_ruby.gemspec +1 -1
- data/docs/{TradingConfigurationBankModel.md → FeeConfigurationBankModel.md} +6 -2
- data/docs/{TradingConfigurationListBankModel.md → FeeConfigurationListBankModel.md} +3 -3
- data/docs/FeeConfigurationsBankApi.md +230 -0
- data/docs/PostFeeConfigurationBankModel.md +24 -0
- data/lib/cybrid_api_bank_ruby/api/accounts_bank_api.rb +1 -1
- data/lib/cybrid_api_bank_ruby/api/assets_bank_api.rb +1 -1
- data/lib/cybrid_api_bank_ruby/api/banks_bank_api.rb +1 -1
- data/lib/cybrid_api_bank_ruby/api/customers_bank_api.rb +1 -1
- data/lib/cybrid_api_bank_ruby/api/{trading_configurations_bank_api.rb → fee_configurations_bank_api.rb} +58 -58
- data/lib/cybrid_api_bank_ruby/api/identity_records_bank_api.rb +1 -1
- data/lib/cybrid_api_bank_ruby/api/prices_bank_api.rb +1 -1
- data/lib/cybrid_api_bank_ruby/api/quotes_bank_api.rb +1 -1
- data/lib/cybrid_api_bank_ruby/api/rewards_bank_api.rb +1 -1
- data/lib/cybrid_api_bank_ruby/api/symbols_bank_api.rb +1 -1
- data/lib/cybrid_api_bank_ruby/api/trades_bank_api.rb +1 -1
- data/lib/cybrid_api_bank_ruby/api/verification_keys_bank_api.rb +1 -1
- data/lib/cybrid_api_bank_ruby/api_client.rb +1 -1
- data/lib/cybrid_api_bank_ruby/api_error.rb +1 -1
- data/lib/cybrid_api_bank_ruby/configuration.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/account_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/account_list_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/asset_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/asset_list_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/attestation_details_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/bank_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/bank_list_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/customer_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/customer_list_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/error_response_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/fee_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/{trading_configuration_bank_model.rb → fee_configuration_bank_model.rb} +72 -5
- data/lib/cybrid_api_bank_ruby/models/{trading_configuration_list_bank_model.rb → fee_configuration_list_bank_model.rb} +5 -5
- data/lib/cybrid_api_bank_ruby/models/identity_record_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/identity_record_list_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/patch_bank_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/post_account_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/post_bank_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/post_customer_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/post_fee_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/{post_trading_configuration_bank_model.rb → post_fee_configuration_bank_model.rb} +80 -8
- data/lib/cybrid_api_bank_ruby/models/post_identity_record_attestation_details_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/post_identity_record_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/post_quote_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/post_reward_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/post_trade_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/post_verification_key_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/quote_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/quote_list_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/reward_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/symbol_price_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/trade_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/trade_list_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/verification_key_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/models/verification_key_list_bank_model.rb +1 -1
- data/lib/cybrid_api_bank_ruby/version.rb +2 -2
- data/lib/cybrid_api_bank_ruby.rb +5 -5
- data/spec/api/accounts_bank_api_spec.rb +1 -1
- data/spec/api/assets_bank_api_spec.rb +1 -1
- data/spec/api/banks_bank_api_spec.rb +1 -1
- data/spec/api/customers_bank_api_spec.rb +1 -1
- data/spec/api/{trading_configurations_bank_api_spec.rb → fee_configurations_bank_api_spec.rb} +24 -24
- data/spec/api/identity_records_bank_api_spec.rb +1 -1
- data/spec/api/prices_bank_api_spec.rb +1 -1
- data/spec/api/quotes_bank_api_spec.rb +1 -1
- data/spec/api/rewards_bank_api_spec.rb +1 -1
- data/spec/api/symbols_bank_api_spec.rb +1 -1
- data/spec/api/trades_bank_api_spec.rb +1 -1
- data/spec/api/verification_keys_bank_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/account_bank_model_spec.rb +1 -1
- data/spec/models/account_list_bank_model_spec.rb +1 -1
- data/spec/models/asset_bank_model_spec.rb +1 -1
- data/spec/models/asset_list_bank_model_spec.rb +1 -1
- data/spec/models/attestation_details_bank_model_spec.rb +1 -1
- data/spec/models/bank_bank_model_spec.rb +1 -1
- data/spec/models/bank_list_bank_model_spec.rb +1 -1
- data/spec/models/customer_bank_model_spec.rb +1 -1
- data/spec/models/customer_list_bank_model_spec.rb +1 -1
- data/spec/models/error_response_bank_model_spec.rb +1 -1
- data/spec/models/fee_bank_model_spec.rb +1 -1
- data/spec/models/{post_trading_configuration_bank_model_spec.rb → fee_configuration_bank_model_spec.rb} +45 -7
- data/spec/models/{trading_configuration_list_bank_model_spec.rb → fee_configuration_list_bank_model_spec.rb} +7 -7
- data/spec/models/identity_record_bank_model_spec.rb +1 -1
- data/spec/models/identity_record_list_bank_model_spec.rb +1 -1
- data/spec/models/patch_bank_bank_model_spec.rb +1 -1
- data/spec/models/post_account_bank_model_spec.rb +1 -1
- data/spec/models/post_bank_bank_model_spec.rb +1 -1
- data/spec/models/post_customer_bank_model_spec.rb +1 -1
- data/spec/models/post_fee_bank_model_spec.rb +1 -1
- data/spec/models/{trading_configuration_bank_model_spec.rb → post_fee_configuration_bank_model_spec.rb} +18 -16
- data/spec/models/post_identity_record_attestation_details_bank_model_spec.rb +1 -1
- data/spec/models/post_identity_record_bank_model_spec.rb +1 -1
- data/spec/models/post_quote_bank_model_spec.rb +1 -1
- data/spec/models/post_reward_bank_model_spec.rb +1 -1
- data/spec/models/post_trade_bank_model_spec.rb +1 -1
- data/spec/models/post_verification_key_bank_model_spec.rb +1 -1
- data/spec/models/quote_bank_model_spec.rb +1 -1
- data/spec/models/quote_list_bank_model_spec.rb +1 -1
- data/spec/models/reward_bank_model_spec.rb +1 -1
- data/spec/models/symbol_price_bank_model_spec.rb +1 -1
- data/spec/models/trade_bank_model_spec.rb +1 -1
- data/spec/models/trade_list_bank_model_spec.rb +1 -1
- data/spec/models/verification_key_bank_model_spec.rb +1 -1
- data/spec/models/verification_key_list_bank_model_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/vendor/bundle/ruby/3.1.0/extensions/x86_64-linux/3.1.0-static/byebug-11.1.3/gem_make.out +2 -2
- data/vendor/bundle/ruby/3.1.0/extensions/x86_64-linux/3.1.0-static/ffi-1.15.5/gem_make.out +2 -2
- data/vendor/bundle/ruby/3.1.0/extensions/x86_64-linux/3.1.0-static/jaro_winkler-1.5.4/gem_make.out +2 -2
- data/vendor/bundle/ruby/3.1.0/extensions/x86_64-linux/3.1.0-static/psych-4.0.4/gem_make.out +2 -2
- data/vendor/bundle/ruby/3.1.0/extensions/x86_64-linux/3.1.0-static/stringio-3.0.2/gem_make.out +2 -2
- data/vendor/bundle/ruby/3.1.0/gems/byebug-11.1.3/ext/byebug/Makefile +2 -2
- data/vendor/bundle/ruby/3.1.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +2 -2
- data/vendor/bundle/ruby/3.1.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/Makefile +2 -2
- data/vendor/bundle/ruby/3.1.0/gems/psych-4.0.4/ext/psych/Makefile +2 -2
- data/vendor/bundle/ruby/3.1.0/gems/stringio-3.0.2/ext/stringio/Makefile +2 -2
- metadata +17 -17
- data/docs/PostTradingConfigurationBankModel.md +0 -20
- data/docs/TradingConfigurationsBankApi.md +0 -230
|
@@ -1,230 +0,0 @@
|
|
|
1
|
-
# CybridApiBank::TradingConfigurationsBankApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://bank.demo.cybrid.app*
|
|
4
|
-
|
|
5
|
-
| Method | HTTP request | Description |
|
|
6
|
-
| ------ | ------------ | ----------- |
|
|
7
|
-
| [**create_trading_configuration**](TradingConfigurationsBankApi.md#create_trading_configuration) | **POST** /api/trading_configurations | Create TradingConfiguration |
|
|
8
|
-
| [**get_trading_configuration**](TradingConfigurationsBankApi.md#get_trading_configuration) | **GET** /api/trading_configurations/{trading_configuration_guid} | Get TradingConfiguration |
|
|
9
|
-
| [**list_trading_configurations**](TradingConfigurationsBankApi.md#list_trading_configurations) | **GET** /api/trading_configurations | List trading configurations |
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
## create_trading_configuration
|
|
13
|
-
|
|
14
|
-
> <TradingConfigurationBankModel> create_trading_configuration(post_trading_configuration_bank_model)
|
|
15
|
-
|
|
16
|
-
Create TradingConfiguration
|
|
17
|
-
|
|
18
|
-
Creates a trading configuration. Required scope: **banks:write**
|
|
19
|
-
|
|
20
|
-
### Examples
|
|
21
|
-
|
|
22
|
-
```ruby
|
|
23
|
-
require 'time'
|
|
24
|
-
require 'cybrid_api_bank_ruby'
|
|
25
|
-
# setup authorization
|
|
26
|
-
CybridApiBank.configure do |config|
|
|
27
|
-
# Configure Bearer authorization (JWT): BearerAuth
|
|
28
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
29
|
-
|
|
30
|
-
# Configure OAuth2 access token for authorization: oauth2
|
|
31
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
api_instance = CybridApiBank::TradingConfigurationsBankApi.new
|
|
35
|
-
post_trading_configuration_bank_model = CybridApiBank::PostTradingConfigurationBankModel.new({asset: 'asset_example', fees: [CybridApiBank::PostFeeBankModel.new({type: 'spread'})]}) # PostTradingConfigurationBankModel |
|
|
36
|
-
|
|
37
|
-
begin
|
|
38
|
-
# Create TradingConfiguration
|
|
39
|
-
result = api_instance.create_trading_configuration(post_trading_configuration_bank_model)
|
|
40
|
-
p result
|
|
41
|
-
rescue CybridApiBank::ApiError => e
|
|
42
|
-
puts "Error when calling TradingConfigurationsBankApi->create_trading_configuration: #{e}"
|
|
43
|
-
end
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
#### Using the create_trading_configuration_with_http_info variant
|
|
47
|
-
|
|
48
|
-
This returns an Array which contains the response data, status code and headers.
|
|
49
|
-
|
|
50
|
-
> <Array(<TradingConfigurationBankModel>, Integer, Hash)> create_trading_configuration_with_http_info(post_trading_configuration_bank_model)
|
|
51
|
-
|
|
52
|
-
```ruby
|
|
53
|
-
begin
|
|
54
|
-
# Create TradingConfiguration
|
|
55
|
-
data, status_code, headers = api_instance.create_trading_configuration_with_http_info(post_trading_configuration_bank_model)
|
|
56
|
-
p status_code # => 2xx
|
|
57
|
-
p headers # => { ... }
|
|
58
|
-
p data # => <TradingConfigurationBankModel>
|
|
59
|
-
rescue CybridApiBank::ApiError => e
|
|
60
|
-
puts "Error when calling TradingConfigurationsBankApi->create_trading_configuration_with_http_info: #{e}"
|
|
61
|
-
end
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
### Parameters
|
|
65
|
-
|
|
66
|
-
| Name | Type | Description | Notes |
|
|
67
|
-
| ---- | ---- | ----------- | ----- |
|
|
68
|
-
| **post_trading_configuration_bank_model** | [**PostTradingConfigurationBankModel**](PostTradingConfigurationBankModel.md) | | |
|
|
69
|
-
|
|
70
|
-
### Return type
|
|
71
|
-
|
|
72
|
-
[**TradingConfigurationBankModel**](TradingConfigurationBankModel.md)
|
|
73
|
-
|
|
74
|
-
### Authorization
|
|
75
|
-
|
|
76
|
-
[BearerAuth](../README.md#BearerAuth), [oauth2](../README.md#oauth2)
|
|
77
|
-
|
|
78
|
-
### HTTP request headers
|
|
79
|
-
|
|
80
|
-
- **Content-Type**: application/json
|
|
81
|
-
- **Accept**: application/json
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
## get_trading_configuration
|
|
85
|
-
|
|
86
|
-
> <TradingConfigurationBankModel> get_trading_configuration(trading_configuration_guid)
|
|
87
|
-
|
|
88
|
-
Get TradingConfiguration
|
|
89
|
-
|
|
90
|
-
Retrieves a trading configuration. Required scope: **banks:read**
|
|
91
|
-
|
|
92
|
-
### Examples
|
|
93
|
-
|
|
94
|
-
```ruby
|
|
95
|
-
require 'time'
|
|
96
|
-
require 'cybrid_api_bank_ruby'
|
|
97
|
-
# setup authorization
|
|
98
|
-
CybridApiBank.configure do |config|
|
|
99
|
-
# Configure Bearer authorization (JWT): BearerAuth
|
|
100
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
101
|
-
|
|
102
|
-
# Configure OAuth2 access token for authorization: oauth2
|
|
103
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
|
104
|
-
end
|
|
105
|
-
|
|
106
|
-
api_instance = CybridApiBank::TradingConfigurationsBankApi.new
|
|
107
|
-
trading_configuration_guid = 'trading_configuration_guid_example' # String | Identifier for the trading configuration.
|
|
108
|
-
|
|
109
|
-
begin
|
|
110
|
-
# Get TradingConfiguration
|
|
111
|
-
result = api_instance.get_trading_configuration(trading_configuration_guid)
|
|
112
|
-
p result
|
|
113
|
-
rescue CybridApiBank::ApiError => e
|
|
114
|
-
puts "Error when calling TradingConfigurationsBankApi->get_trading_configuration: #{e}"
|
|
115
|
-
end
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
#### Using the get_trading_configuration_with_http_info variant
|
|
119
|
-
|
|
120
|
-
This returns an Array which contains the response data, status code and headers.
|
|
121
|
-
|
|
122
|
-
> <Array(<TradingConfigurationBankModel>, Integer, Hash)> get_trading_configuration_with_http_info(trading_configuration_guid)
|
|
123
|
-
|
|
124
|
-
```ruby
|
|
125
|
-
begin
|
|
126
|
-
# Get TradingConfiguration
|
|
127
|
-
data, status_code, headers = api_instance.get_trading_configuration_with_http_info(trading_configuration_guid)
|
|
128
|
-
p status_code # => 2xx
|
|
129
|
-
p headers # => { ... }
|
|
130
|
-
p data # => <TradingConfigurationBankModel>
|
|
131
|
-
rescue CybridApiBank::ApiError => e
|
|
132
|
-
puts "Error when calling TradingConfigurationsBankApi->get_trading_configuration_with_http_info: #{e}"
|
|
133
|
-
end
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
### Parameters
|
|
137
|
-
|
|
138
|
-
| Name | Type | Description | Notes |
|
|
139
|
-
| ---- | ---- | ----------- | ----- |
|
|
140
|
-
| **trading_configuration_guid** | **String** | Identifier for the trading configuration. | |
|
|
141
|
-
|
|
142
|
-
### Return type
|
|
143
|
-
|
|
144
|
-
[**TradingConfigurationBankModel**](TradingConfigurationBankModel.md)
|
|
145
|
-
|
|
146
|
-
### Authorization
|
|
147
|
-
|
|
148
|
-
[BearerAuth](../README.md#BearerAuth), [oauth2](../README.md#oauth2)
|
|
149
|
-
|
|
150
|
-
### HTTP request headers
|
|
151
|
-
|
|
152
|
-
- **Content-Type**: Not defined
|
|
153
|
-
- **Accept**: application/json
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
## list_trading_configurations
|
|
157
|
-
|
|
158
|
-
> <TradingConfigurationListBankModel> list_trading_configurations(opts)
|
|
159
|
-
|
|
160
|
-
List trading configurations
|
|
161
|
-
|
|
162
|
-
Retrieves a listing of trading configurations for a bank. Required scope: **banks:read**
|
|
163
|
-
|
|
164
|
-
### Examples
|
|
165
|
-
|
|
166
|
-
```ruby
|
|
167
|
-
require 'time'
|
|
168
|
-
require 'cybrid_api_bank_ruby'
|
|
169
|
-
# setup authorization
|
|
170
|
-
CybridApiBank.configure do |config|
|
|
171
|
-
# Configure Bearer authorization (JWT): BearerAuth
|
|
172
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
173
|
-
|
|
174
|
-
# Configure OAuth2 access token for authorization: oauth2
|
|
175
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
|
176
|
-
end
|
|
177
|
-
|
|
178
|
-
api_instance = CybridApiBank::TradingConfigurationsBankApi.new
|
|
179
|
-
opts = {
|
|
180
|
-
page: 56, # Integer |
|
|
181
|
-
per_page: 56 # Integer |
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
begin
|
|
185
|
-
# List trading configurations
|
|
186
|
-
result = api_instance.list_trading_configurations(opts)
|
|
187
|
-
p result
|
|
188
|
-
rescue CybridApiBank::ApiError => e
|
|
189
|
-
puts "Error when calling TradingConfigurationsBankApi->list_trading_configurations: #{e}"
|
|
190
|
-
end
|
|
191
|
-
```
|
|
192
|
-
|
|
193
|
-
#### Using the list_trading_configurations_with_http_info variant
|
|
194
|
-
|
|
195
|
-
This returns an Array which contains the response data, status code and headers.
|
|
196
|
-
|
|
197
|
-
> <Array(<TradingConfigurationListBankModel>, Integer, Hash)> list_trading_configurations_with_http_info(opts)
|
|
198
|
-
|
|
199
|
-
```ruby
|
|
200
|
-
begin
|
|
201
|
-
# List trading configurations
|
|
202
|
-
data, status_code, headers = api_instance.list_trading_configurations_with_http_info(opts)
|
|
203
|
-
p status_code # => 2xx
|
|
204
|
-
p headers # => { ... }
|
|
205
|
-
p data # => <TradingConfigurationListBankModel>
|
|
206
|
-
rescue CybridApiBank::ApiError => e
|
|
207
|
-
puts "Error when calling TradingConfigurationsBankApi->list_trading_configurations_with_http_info: #{e}"
|
|
208
|
-
end
|
|
209
|
-
```
|
|
210
|
-
|
|
211
|
-
### Parameters
|
|
212
|
-
|
|
213
|
-
| Name | Type | Description | Notes |
|
|
214
|
-
| ---- | ---- | ----------- | ----- |
|
|
215
|
-
| **page** | **Integer** | | [optional] |
|
|
216
|
-
| **per_page** | **Integer** | | [optional] |
|
|
217
|
-
|
|
218
|
-
### Return type
|
|
219
|
-
|
|
220
|
-
[**TradingConfigurationListBankModel**](TradingConfigurationListBankModel.md)
|
|
221
|
-
|
|
222
|
-
### Authorization
|
|
223
|
-
|
|
224
|
-
[BearerAuth](../README.md#BearerAuth), [oauth2](../README.md#oauth2)
|
|
225
|
-
|
|
226
|
-
### HTTP request headers
|
|
227
|
-
|
|
228
|
-
- **Content-Type**: Not defined
|
|
229
|
-
- **Accept**: application/json
|
|
230
|
-
|