Initial commit
This commit is contained in:
10
lib/api_bench.rb
Normal file
10
lib/api_bench.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
class ApiBench
|
||||
def create_order(base_url, market, side, volume, token, ord_type, price)
|
||||
url = "#{base_url}/api/v2/market/orders?market=#{market}&side=#{side}&volume=#{volume}&ord_type=#{ord_type}&price=#{price}"
|
||||
connection = Faraday.new(url)
|
||||
_response = connection.post do |request|
|
||||
request.headers["Authorization"] = token
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user