We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b750421 commit f768b73Copy full SHA for f768b73
lib/rest/v2/pulse.rb
@@ -68,6 +68,9 @@ def submit_pulse(pulse)
68
# @see https://docs.bitfinex.com/reference#rest-auth-pulse-add
69
###
70
def submit_pulse_comment(pulse)
71
+ if pulse[:parent].to_s.strip.empty?
72
+ raise ":parent (pulse id value) is required for comments"
73
+ end
74
resp = authenticated_post("auth/w/pulse/add", params: pulse).body
75
Bitfinex::Models::Pulse.unserialize(resp)
76
end
0 commit comments