Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
namespace py cadaapi.stock
include "struct.thrift"
struct Stock {
1: required string ticker,
2: required i32 status,
3: required struct.CadaDateTime timestamp
}
struct TableStock {
1: required list<string> head,
2: required list<Stock> body,
3: optional struct.CadaTranslation translation
}
struct RatingByReport {
1: required string ticker,
2: required i32 cnt_institution,
3: optional list<string> strong_buy,
4: optional list<string> buy,
5: optional list<string> neutral,
6: optional list<string> sell,
7: optional list<string> strong_sell,
8: optional i32 cnt_maintain,
9: optional i32 cnt_upgrade,
10: optional i32 cnt_downgrade,
11: optional i32 avg_score,
12: optional string adjustment
}
struct TableRatingByReport {
1: required list<string> head,
2: required list<RatingByReport> body,
3: optional struct.CadaTranslation translation
}
# *************** China ************************
service china{
void ping(),
TableStock listed(1:struct.CadaDateTime date),
TableRatingByReport rating_byreport(1:string ticker) throws (1:struct.CadaInternalError error),
string test_transport()
}
# ***************** Hong kong ********************
service hongkong{
void ping()
}
# ***************** Taiwan ********************
service taiwan{
void ping()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.