#stock #fugle

fugle

A Simple, Lightweight, Fast and Safe Fugle Library

10 releases

0.2.2 Jun 5, 2021
0.2.1 Jun 4, 2021
0.2.0 May 23, 2021
0.1.6 May 13, 2021
0.1.0 Jun 7, 2020

#32 in HTTP client

39 downloads per month

MIT license

35KB
675 lines

fugle-rs

Build status Latest version Documentation License

A Simple, Lightweight, Fast and Safe Fugle Library.

What is Fugle

This is a rust version library to access Fugle's

  • RESTful API
  • Websocket (enable websocket feature)

services in a very easy way.

Examples

for more please reference to the examples folder

Fugle Chart

API

let agent = IntradayBuilder::new().build();
agent.chart("2884").call()?;

Websocket

let (tx, rx) = mpsc::channel();
let mut lis = listener::Intraday::new("demo", tx.clone());
                                                           
lis.chart("2884", true);
let response = rx.recv()?;

Fugle Quote

API

let agent = IntradayBuilder::new().build();
agent.quote("2884").call()?;

Websocket

let (tx, rx) = mpsc::channel();
let mut lis = listener::Intraday::new("demo", tx.clone());
                                                           
lis.quote("2884", true);
let response = rx.recv()?;

Fugle Meta

API

let agent = IntradayBuilder::new().build();
agent.meta("2884").call()?;

Websocket

let (tx, rx) = mpsc::channel();
let mut lis = listener::Intraday::new("demo", tx.clone());
                                                           
lis.meta("2884", true);
let response = rx.recv()?;

Fugle Dealts

API

let agent = IntradayBuilder::new().build();
agent.dealts("2884").call()?;

Dependencies

~3.5–7MB
~166K SLoC