Files
Dena/lib/api_bench.rb
2026-08-13 19:50:53 +03:30

11 lines
363 B
Ruby

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