This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"breadcrumbs.enabled": true, | |
"ruby.codeCompletion": "rcodetools", | |
"ruby.intellisense": "rubyLocate", | |
"ruby.interpreter.commandPath": "/home/mnaichuk/.rvm/rubies/ruby-2.5.3/bin/ruby", | |
"ruby.lint": { | |
"rubocop": { | |
"rails": true, | |
"except": [ | |
"spec/**" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//= require yarn_components/raven-js/dist/raven | |
//= require yarn_components/perfect-scrollbar/dist/perfect-scrollbar | |
//= require ./lib/sentry | |
//= require jquery3 | |
//= require jquery_ujs | |
//= require popper | |
//= require bootstrap | |
//= require bootstrap-datetimepicker | |
//= require jsoneditor.min |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc 'Get list of currencies', | |
is_array: true, | |
success: Entities::Currency | |
params do | |
optional :type, type: String, | |
values: %w[fiat coin], | |
desc: -> { API::V2::Entities::Currency.documentation[:type][:desc] } | |
end | |
get '/currencies' do | |
currencies = Currency.enabled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TRON(TRX) - 6; | |
EOS(EOS) - 18; | |
Stellar (XLM) - 7; | |
Monero (XMR) - 12; | |
Cardano (ADA) - 6; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/account | |
account.currency.doesnt_exist Currency doesn't exist | |
account.deposit.invalid_state Deposit invalid state | |
account.deposit.non_integer_limit Value you send could not be parsed into Integer type | |
account.deposit.invalid_limit Invalid limit | |
account.deposit.non_integer_limit Limit value you send could not be parsed into Integer type | |
account.deposit.non_positive_page Page value must be positive | |
account.deposit.empty_txid Txid is missing, txid is empty | |
account.currency.doesnt_exist Currency doesn't exist | |
account.deposit_address.invalid_address_format Invalid deposit address format |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# USAGE | |
# ruby app.rb 'NEOUSD' 'neo-usd-data.json' "2019-03-05 13:15:00 +0200" | |
require 'faye/websocket' | |
require 'eventmachine' | |
require 'pry' | |
@data = [] | |
@market = ARGV[0] | |
@file = File.open(ARGV[1], "a") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 step: | |
{:config=> | |
{:currencies=>"usd,eur", | |
:traders=>25, | |
:threads=>50, | |
:orders=> | |
{:injector=>"bitfinex", | |
:number=>20000, | |
:markets=>"usdeur", | |
:data_load_path=>"config/bench/data/usd-eur1.csv"}}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------------------------------------- | |
Daemon name | MA | TE | OP | | |
--------------------------------------- | |
Markets num: | 1 | 1 | 1 | | |
--------------------------------------- | |
Oper. num: | 200k | 8k | 10k | | |
--------------------------------------- | |
Traders: | 5 | 5 | 5 | | |
--------------------------------------- | |
Injectors: | Dummy/Bitfinex | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------------------------------------------------- | |
Matching | |
--- | |
config: | |
currencies: usd,eur | |
traders: 5 | |
threads: 50 | |
report_path: reports | |
orders: | |
injector: dummy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------------------------------------------------- | |
Matching | |
--- | |
config: | |
currencies: usd,eur | |
traders: 5 | |
threads: 50 | |
report_path: reports | |
orders: | |
injector: dummy |
OlderNewer