public

  • Download Gist
cadaapi.stock.china.thrift
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
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()
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.