module Fcoin::Endpoint::Public
Public Instance Methods
public_currencies()
click to toggle source
Display available currency
curl: GET api.fcoin.com/v2/public/currencies
@example Display available currency
client = Fcoin::Client.new puts cient.public_currencies
@see developer.fcoin.com/zh.html#0fd2e492e6 @return [Hash or JSON]
# File lib/fcoin/endpoint/public.rb, line 31 def public_currencies get('public/currencies', false) end
public_server_time()
click to toggle source
Get server time
curl: GET api.fcoin.com/v2/public/server-time
@example get server time
client = Fcoin::Client.new puts client.public_server_time #=> {"status":0,"data":1531562028166}
@see developer.fcoin.com/zh.html#8aa898cda7 @return [Hash or JSON]
# File lib/fcoin/endpoint/public.rb, line 16 def public_server_time get('public/server-time', false) end
public_symbols()
click to toggle source
Query available transaction pairs
curl: GET api.fcoin.com/v2/public/symbols
@example Query available transaction pairs
client = Fcoin::Client.new puts client.public_symbols
@see developer.fcoin.com/zh.html#a266e284f4 @return [Hash or JSON]
# File lib/fcoin/endpoint/public.rb, line 46 def public_symbols get('public/symbols', false) end