All URIs are relative to https://localhost:3000/api/v1
Method | HTTP request | Description |
---|---|---|
get_offers | GET /offers | List all offer ids |
get_offers_detail | GET /offers/detail | List all offer details |
get_offers_uuid | GET /offers/{uuid} | Show details for one offer |
post_offers_buy | POST /offers/buy | Create a buy offer |
post_offers_uuid_clone | POST /offers/{uuid}/clone | Create a clone |
post_offers_uuid_counter | POST /offers/{uuid}/counter | Create a counter-offer |
put_offers_uuid_cancel | PUT /offers/{uuid}/cancel | Cancel offer |
Array<OfferIds> get_offers(opts)
List all offer ids
List all offer ids
# load the gem
require 'bmx_api_ruby'
# setup authorization
BmxApiRuby.configure do |config|
# Configure HTTP basic authorization: base
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = BmxApiRuby::OffersApi.new
opts = {
with_type: "with_type_example", # String | type filter
with_status: "with_status_example", # String | status filter
limit: 56 # Integer | limit
}
begin
#List all offer ids
result = api_instance.get_offers(opts)
p result
rescue BmxApiRuby::ApiError => e
puts "Exception when calling OffersApi->get_offers: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
with_type | String | type filter | [optional] |
with_status | String | status filter | [optional] |
limit | Integer | limit | [optional] |
- Content-Type: Not defined
- Accept: application/json
Array<OfferDetail> get_offers_detail(opts)
List all offer details
List all offer details
# load the gem
require 'bmx_api_ruby'
# setup authorization
BmxApiRuby.configure do |config|
# Configure HTTP basic authorization: base
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = BmxApiRuby::OffersApi.new
opts = {
with_type: "with_type_example", # String | type filter
with_status: "with_status_example", # String | status filter
limit: 56 # Integer | limit
}
begin
#List all offer details
result = api_instance.get_offers_detail(opts)
p result
rescue BmxApiRuby::ApiError => e
puts "Exception when calling OffersApi->get_offers_detail: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
with_type | String | type filter | [optional] |
with_status | String | status filter | [optional] |
limit | Integer | limit | [optional] |
- Content-Type: Not defined
- Accept: application/json
OfferDetail get_offers_uuid(uuid)
Show details for one offer
Show details for one offer
# load the gem
require 'bmx_api_ruby'
# setup authorization
BmxApiRuby.configure do |config|
# Configure HTTP basic authorization: base
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = BmxApiRuby::OffersApi.new
uuid = 56 # Integer |
begin
#Show details for one offer
result = api_instance.get_offers_uuid(uuid)
p result
rescue BmxApiRuby::ApiError => e
puts "Exception when calling OffersApi->get_offers_uuid: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
uuid | Integer |
- Content-Type: Not defined
- Accept: application/json
OfferCreated post_offers_buy(side, volume, price, opts)
Create a buy offer
Create a buy offer
# load the gem
require 'bmx_api_ruby'
# setup authorization
BmxApiRuby.configure do |config|
# Configure HTTP basic authorization: base
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = BmxApiRuby::OffersApi.new
side = "side_example" # String | fixed or unfixed
volume = 56 # Integer | number of positions
price = 3.4 # Float | between 0.0 and 1.0
opts = {
tracker: "tracker_example", # String | tracker UUID
issue: "issue_example", # String | issue UUID
title: "title_example", # String | issue title
labels: "labels_example", # String | issue labels
status: "status_example", # String | issue status
maturation: "maturation_example", # String | YYMMDD_HHMM (default now + 1.week)
expiration: "expiration_example", # String | YYMMDD_HHMM (default now + 1.day)
maturation_offset: "maturation_offset_example", # String | offset string (see long description)
expiration_offset: "expiration_offset_example", # String | offset string (see long description)
poolable: true, # BOOLEAN | poolable? (default false)
aon: true # BOOLEAN | all-or-none? (default false)
}
begin
#Create a buy offer
result = api_instance.post_offers_buy(side, volume, price, opts)
p result
rescue BmxApiRuby::ApiError => e
puts "Exception when calling OffersApi->post_offers_buy: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
side | String | fixed or unfixed | |
volume | Integer | number of positions | |
price | Float | between 0.0 and 1.0 | |
tracker | String | tracker UUID | [optional] |
issue | String | issue UUID | [optional] |
title | String | issue title | [optional] |
labels | String | issue labels | [optional] |
status | String | issue status | [optional] |
maturation | String | YYMMDD_HHMM (default now + 1.week) | [optional] |
expiration | String | YYMMDD_HHMM (default now + 1.day) | [optional] |
maturation_offset | String | offset string (see long description) | [optional] |
expiration_offset | String | offset string (see long description) | [optional] |
poolable | BOOLEAN | poolable? (default false) | [optional] |
aon | BOOLEAN | all-or-none? (default false) | [optional] |
- Content-Type: multipart/form-data
- Accept: application/json
OfferCreated post_offers_uuid_clone(uuid, opts)
Create a clone
Create a clone
# load the gem
require 'bmx_api_ruby'
# setup authorization
BmxApiRuby.configure do |config|
# Configure HTTP basic authorization: base
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = BmxApiRuby::OffersApi.new
uuid = 56 # Integer |
opts = {
volume: 56, # Integer | number of positions
price: 3.4, # Float | between 0.0 and 1.0
tracker: "tracker_example", # String | tracker UUID
issue: "issue_example", # String | issue UUID
title: "title_example", # String | issue title
labels: "labels_example", # String | issue labels
status: "status_example", # String | issue status
maturation: "maturation_example", # String | YYMMDD_HHMM (default now + 1.week)
expiration: "expiration_example", # String | YYMMDD_HHMM (default now + 1.day)
maturation_offset: "maturation_offset_example", # String | offset string (see long description)
expiration_offset: "expiration_offset_example", # String | offset string (see long description)
poolable: true, # BOOLEAN | poolable? (default false)
aon: true # BOOLEAN | all-or-none? (default false)
}
begin
#Create a clone
result = api_instance.post_offers_uuid_clone(uuid, opts)
p result
rescue BmxApiRuby::ApiError => e
puts "Exception when calling OffersApi->post_offers_uuid_clone: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
uuid | Integer | ||
volume | Integer | number of positions | [optional] |
price | Float | between 0.0 and 1.0 | [optional] |
tracker | String | tracker UUID | [optional] |
issue | String | issue UUID | [optional] |
title | String | issue title | [optional] |
labels | String | issue labels | [optional] |
status | String | issue status | [optional] |
maturation | String | YYMMDD_HHMM (default now + 1.week) | [optional] |
expiration | String | YYMMDD_HHMM (default now + 1.day) | [optional] |
maturation_offset | String | offset string (see long description) | [optional] |
expiration_offset | String | offset string (see long description) | [optional] |
poolable | BOOLEAN | poolable? (default false) | [optional] |
aon | BOOLEAN | all-or-none? (default false) | [optional] |
- Content-Type: multipart/form-data
- Accept: application/json
OfferCreated post_offers_uuid_counter(uuid)
Create a counter-offer
Create a counter-offer
# load the gem
require 'bmx_api_ruby'
# setup authorization
BmxApiRuby.configure do |config|
# Configure HTTP basic authorization: base
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = BmxApiRuby::OffersApi.new
uuid = 56 # Integer |
begin
#Create a counter-offer
result = api_instance.post_offers_uuid_counter(uuid)
p result
rescue BmxApiRuby::ApiError => e
puts "Exception when calling OffersApi->post_offers_uuid_counter: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
uuid | Integer |
- Content-Type: multipart/form-data
- Accept: application/json
OfferDetail put_offers_uuid_cancel(uuid)
Cancel offer
Cancel offer
# load the gem
require 'bmx_api_ruby'
# setup authorization
BmxApiRuby.configure do |config|
# Configure HTTP basic authorization: base
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = BmxApiRuby::OffersApi.new
uuid = 56 # Integer |
begin
#Cancel offer
result = api_instance.put_offers_uuid_cancel(uuid)
p result
rescue BmxApiRuby::ApiError => e
puts "Exception when calling OffersApi->put_offers_uuid_cancel: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
uuid | Integer |
- Content-Type: application/json
- Accept: application/json