Module: WavesRubyClient
- Defined in:
- lib/waves_ruby_client.rb,
lib/waves_ruby_client/api.rb,
lib/waves_ruby_client/asset.rb,
lib/waves_ruby_client/order.rb,
lib/waves_ruby_client/wallet.rb,
lib/waves_ruby_client/version.rb,
lib/waves_ruby_client/data_feed.rb,
lib/waves_ruby_client/conversion.rb,
lib/waves_ruby_client/order_book.rb,
lib/waves_ruby_client/transaction.rb,
lib/waves_ruby_client/order_data/place.rb,
lib/waves_ruby_client/order_data/cancel.rb,
lib/waves_ruby_client/order_data/user_orders.rb
Defined Under Namespace
Modules: Conversion, OrderData Classes: Api, Asset, DataFeed, Order, OrderBook, Transaction, Wallet
Constant Summary collapse
- WAVES_PUBLIC_KEY =
ENV['WAVES_PUBLIC_KEY']
- WAVES_PRIVATE_KEY =
ENV['WAVES_PRIVATE_KEY']
- WAVES_ADDRESS =
ENV['WAVES_ADDRESS']
- DATA_FEED_URL =
'https://marketdata.wavesplatform.com/api'
- NODE_URL =
ENV['WAVES_NODE_URL'] || 'https://nodes.wavesnodes.com'
- MATCHER_URL =
ENV['WAVES_MATCHER_URL'] || 'https://matcher.waves.exchange'
- MATCHER_ADDRESS =
ENV['WAVES_MATCHER_ADDRESS'] || '3PEjHv3JGjcWNpYEEkif2w8NXV4kbhnoGgu'
- MATCHER_PUBLIC_KEY =
ENV['WAVES_MATCHER_PUBLIC_KEY'] || '9cpfKN9suPNvfeUNphzxXMjcnn974eme8ZhWUjaktzU5'
- BTC_ASSET_ID =
'8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS'
- WAVES_ASSET_ID =
'WAVES'
- MATCHER_FEE =
0.003
- NUMBER_MULTIPLIKATOR =
10**8
- PRICE_ASSET =
WavesRubyClient::Asset.btc
- AMOUNT_ASSET =
WavesRubyClient::Asset.waves
- OrderAlreadyFilled =
Class.new(StandardError)
- VERSION =
'0.1.5'
Class Method Summary collapse
-
.try_many_times(times = 5) ⇒ Object
try method call several times.
Class Method Details
.try_many_times(times = 5) ⇒ Object
try method call several times
52 53 54 55 56 57 58 59 |
# File 'lib/waves_ruby_client.rb', line 52 def self.try_many_times(times = 5) tries ||= times yield rescue StandardError => e sleep(1) retry unless (tries -= 1).zero? raise e end |