| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237 |
- // 消息头
- message MessageHead {
- optional uint32 FunCode = 1; // 功能号
- optional uint32 RequestID = 2; // 客户端的流水ID
- optional uint64 AccountID = 3; // 账号ID
- optional uint32 AccessID = 4; //二级分配给客户端的接入ID
- optional int64 ClientTime = 5; //消息发起时间
- optional uint32 GoodsID = 6; //商品ID
- optional string UUID = 7; // 消息唯一ID
- optional uint32 MarketID = 8; // 所属市场ID
- optional uint32 UserID = 9; // 用户ID
- optional string ResponseTopic = 10; // 应答消息所属主题
- optional uint64 AccountID2 = 11; // 账号ID-币币交易使用
- }
- // 查询请求分页信息
- message QueryReqPageInfo {
- optional int32 PageNumber = 1; // 查询第几页,1为第一页
- optional int32 RecordPerPage = 2; // 每页多少条记录(服务端应该有个最大允许数量,该字段值不允许超过服务端的)
- optional int32 QueryMark = 3; // 客户自定义查询标记
- optional string SortField = 4; // 按哪个字段排序
- optional int32 SortOrder = 5; // 排序方式,0降序 1升序页
- optional int32 NeedTotalCount = 6; // 是否需要返回TotalCount值
- }
- // 查询结果分页信息
- message QueryRspPageInfo {
- optional int32 PageNumber = 1; // 查询第几页,1为第一页
- optional int32 RecordPerPage = 2; // 每页多少条记录(服务端应该有个最大允许数量,该字段值不允许超过服务端的)
- optional int32 QueryMark = 3; // 客户自定义查询标记
- optional string SortField = 4; // 按哪个字段排序
- optional int32 SortOrder = 5; // 排序方式,0降序 1升序页
- optional int32 RecordCount = 6; // 服务端返回,本次查询结果返回了多少条记录
- optional int32 TotalCount = 7; // 服务端返回,满足查询条件的共多少条记录
- }
- message CommonPackage {
- required MessageHead Header = 1; // 消息头
- }
- // 公共通知消息头
- message NotifyHead {
- optional int32 NtfMode = 1; // 消息通知模式(单播、组播、广播)
- repeated uint32 ExcludeAcctIDs = 2; // 排除账号集合(首先过滤此集合帐号)
- repeated uint32 ExchIDs = 3; // 目标交易所集合(若匹配所属交易所,推送)
- repeated uint32 MemberIDs = 4; // 目标会员集合(若匹配所属会员,推送)
- repeated uint64 AccountIDs = 5; // 目标账号集合(以上均不匹配时,最后检查此集合)
- }
- // 公共通知消息
- message CommonNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共通知消息(生成后包含MessageHead,引用上面消息即可)
- }
- // 用户登录请求
- message LoginReq {
- optional MessageHead Header = 1;
- optional uint64 LoginID = 2; // 登录ID
- optional string LoginPWD = 3; // 登录密码
- optional uint32 LoginType = 4; // 登陆类型
- optional uint32 ClientType = 5; // 终端软件类型
- optional string Version = 6; // 终端软件版本号
- optional string MobilePhone = 7; // 移动电话
- optional string GUID = 8; // 唯一标识码
- optional string LoginIp = 9; // 登录IP地址
- optional uint32 LoginPort = 10; // 登陆通信端口
- optional string DeviceID = 11; // 设备标识
- optional string EnvironmentInfo = 12; // 软件环境信息
- optional string LoginCode = 13; // 登陆码
- optional bytes ClientSystemInfo = 14; // 终端系统信息
- optional string ClientAppID = 15; // 终端AppID
- }
- // 用户登录应答
- message LoginRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 LoginID = 4; // 登录ID
- optional uint32 LoginUserType = 5; // 登陆用户类型
- optional uint32 AccountStatus = 6; // 用户状态
- optional uint32 UserID = 7; // 用户ID
- optional uint32 MemberUserID = 8; // 用户所属会员用户ID
- repeated uint64 AccountIDs = 9; // 账户ID列表(有权限的)
- optional string Token = 10; // 用户令牌
- optional uint64 SystemTime = 11; // 系统时间
- optional uint32 HasUpdatedPwd = 12; // 是否已更改密码
- optional uint32 PwdWrongCnt = 13; // 当前密码输入错误次数
- optional uint32 PwdWrongLockCnt = 14; // 登陆账号锁定密码输入错误次数
- optional uint32 LoginLockHourNum = 15; // 登陆账号锁定时长(小时)
- optional string LoginCode = 16; // 登陆码
- optional bytes ClientSystemInfo = 17; // 终端系统信息
- optional uint64 ClientID = 18; // 终端ID(登陆服务分配,用于通道交易关联链路)
- }
- // 用户登出请求
- message LogoutReq {
- optional MessageHead Header = 1;
- optional uint64 LoginID = 2; // 登录ID
- optional string Token = 3; // 登录时返回的用户令牌
- optional string LoginIp = 4; // 登出IP地址
- optional uint32 LoginPort = 5; // 登出通信端口
- }
- // 用户登出应答
- message LogoutRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- }
- // 用户令牌校验请求
- message TokenCheckReq {
- optional MessageHead Header = 1;
- optional uint64 LoginID = 2; // 登陆账户ID
- optional string Token = 3; // 用户令牌
- optional uint64 SystemTime = 4; // 校验时的系统时间
- optional uint32 CheckType = 5; // 校验类型
- }
- // 用户令牌校验应答
- message TokenCheckRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 LoginID = 4; // 登陆账户ID
- optional uint32 TokenStatus = 5; // 令牌状态
- optional uint32 LoginUserType = 6; // 登陆用户类型
- optional uint32 UserID = 7; // 用户ID
- optional uint32 MemberUserID = 8; // 用户所属会员用户ID
- repeated uint64 AccountIDs = 9; // 账户ID列表(有权限的)
- optional uint64 SystemTime = 10; // 返回服务器最新时间
- }
- // 修改账户密码请求
- message ModifyPwdReq {
- optional MessageHead Header = 1;
- optional uint32 ModifyPwdType = 2; // 修改密码类型1:登陆密码2:资金账户密码
- optional uint64 ModifyPwdID = 3; // 被修改的ID(ModifyType=1:LoginIDModifyType=2:AccountID)
- optional string OldPwd = 4; // 旧资金密码
- optional string NewPwd = 5; // 新资金密码
- }
- // 修改账户密码应答
- message ModifyPwdRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- }
- // 登陆账户状态操作请求
- message LoginStatusOperReq {
- optional MessageHead Header = 1;
- optional uint64 LoginID = 2; // 登录ID
- optional uint32 LoginStatus = 3; // 操作状态1.正常2.冻结
- optional uint32 OperatorID = 4; // 操作人ID
- }
- // 登陆账户状态操作请求
- message LoginStatusOperRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 LoginID = 4; // 登录ID
- optional uint32 LoginStatus = 5; // 操作状态1.正常2.冻结
- optional uint32 OperatorID = 6; // 操作人ID
- }
- // 三方登陆请求
- message AuthLoginReq {
- optional MessageHead Header = 1;
- optional string AuthID = 2; // 三方认证ID
- optional uint32 AuthType = 3; // 三方认证类型
- optional uint32 ClientType = 4; // 终端软件类型
- optional string Version = 5; // 终端软件版本号
- optional string GUID = 6; // 唯一标识码
- optional string LoginIp = 7; // 登录IP地址
- optional uint32 LoginPort = 8; // 登陆通信端口
- optional string DeviceID = 9; // 设备标识
- optional string EnvironmentInfo = 10; // 软件环境信息
- }
- // 三方登录应答
- message AuthLoginRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string AuthID = 4; // 三方认证ID
- optional uint64 LoginID = 5; // 登录ID
- optional uint32 LoginUserType = 6; // 登陆用户类型
- optional uint32 AccountStatus = 7; // 用户状态
- optional uint32 UserID = 8; // 用户ID
- optional uint32 MemberUserID = 9; // 用户所属会员用户ID
- repeated uint64 AccountIDs = 10; // 账户ID列表(有权限的)
- optional string Token = 11; // 用户令牌
- optional uint64 SystemTime = 12; // 系统时间
- optional uint32 HasUpdatedPwd = 13; // 是否已更改密码
- }
- // 管理端踢人请求
- message ManageKickoffReq {
- optional MessageHead Header = 1;
- repeated uint64 LoginIDs = 2; // 登录ID数组
- }
- // 管理端踢人应答
- message ManageKickoffRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- }
- // 通用错误通知
- message ErrorNtf {
- optional MessageHead Header = 1; // 消息头
- optional string RetDesc = 2; // string 描述信息
- }
- // 客户离线通知
- message CustOfflineNtf {
- optional MessageHead Header = 1; // 消息头
- repeated uint32 SessionID = 2; // uint32 用户的sessionid(由接入服务分配的),是一数组。该接口是系统内部服务使用的接口
- repeated uint64 LoginID = 3; // uint64 用户登陆的loginid,是一数组。该接口是系统内部服务使用的接口
- }
- // 头寸变化通知
- message PosChangedNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 AccountID = 3; // uint64 交易账号
- optional uint32 GoodsID = 4; // uint32 商品
- }
- // 资金变化通知
- message MoneyChangedNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 AccountID = 3; // uint64 交易账号
- }
- // 持仓变化通知
- message HoldsChangedNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 OrderID = 3; // uint64 一级生成的订单号
- optional string ClientSerialNo = 4; // string 客户端流水号
- optional uint64 AccountID = 5; // uint64 交易账号
- optional uint32 GoodsID = 6; // uint32 商品
- optional uint32 BuyOrSell = 7; // uint32 买卖方向
- optional uint64 Qty = 8; // uint64 持仓数量
- optional double TradePrice = 9; // double 成交金额
- optional double HolderPrice = 10; // double 持仓金额
- }
- // 公告消息推送
- message BltMsgNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional int32 MsgID = 3; // int32 消息号
- optional uint32 MsgType = 4; // uint32 消息类别
- optional string PublishDate = 5; // string 消息发布时间
- optional string Pubber = 6; // string 发布者
- optional int32 TopFlag = 7; // int32 置顶标志
- optional string ValidDateEnd = 8; // string 消息结束日期
- optional string Title = 9; // string 标题
- optional string Content = 10; // string 内容
- }
- // 平仓单平仓明细
- message ArrayCloseInfo {
- optional uint64 ClosedOrderID = 1; // 被平持仓单ID
- optional uint64 ClosedQty = 2; // 被平仓数量
- optional double ClosePL = 3; // 平仓盈亏
- optional double RlsUsedMargin = 4; // 释放的占用保证金
- optional double TradeCharge = 5; // 平仓手续费
- optional double WareHouseCharge = 6; // 仓单服务费
- optional double TradeAmount = 7; // 成交金额
- optional string OpenTime = 8; // 开仓时间(对冲接口用)
- optional double OpenPrice = 9; // 开仓价格(对冲接口用)
- optional uint64 MatchAccountID = 10; // 对手方资金账号代码
- optional double RealClosePL = 11; // 实际盈亏
- }
- // 报单通知
- message DeclareOrderNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 OrderID = 3; // uint64 一级生成的订单号
- optional string ClientSerialNo = 4; // string 客户端流水号
- optional uint32 GoodsID = 5; // uint32 原始委托商品代码
- optional uint32 BuyOrSell = 6; // uint32 买卖方向
- optional uint64 OrderQty = 7; // uint64 委托数量
- optional uint64 TradeQty = 8; // uint64 成交数量
- optional uint64 CancelQty = 9; // uint64 撤单数量
- optional uint32 OrderStatus = 10; // uint32 单据状态
- optional string ActiveTime = 11; // string 激活时间
- optional string CancelTime = 12; // string 撤销时间
- optional string UpdateTime = 13; // string 最后修改时间
- }
- // 委托单成交通知
- message OrderDealedNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 OrderID = 3; // uint64 一级生成的订单号
- optional string ClientSerialNo = 4; // string 客户端流水号
- optional uint32 GoodsID = 5; // uint32 原始委托商品代码
- optional uint64 TradeQty = 6; // uint64 成交数量
- optional double Amount = 7; // double 成交金额
- optional uint64 ActiveQty = 8; // uint64 激活数量,即剩余数量
- optional uint32 OrderStatus = 9; // uint32 单据状态
- optional uint64 TradeID = 10; // uint64 成交ID
- optional uint64 AccountID = 11; // uint64 资金账号代码
- optional double TradePrice = 12; // double 成交价格
- optional uint32 BuyOrSell = 13; // uint32 买卖方向
- optional uint64 OrderQty = 14; // uint64 委托数量
- optional uint32 OrderType = 15; // uint32 订单类型
- optional string TradeTime = 16; // string 成交时间
- repeated ArrayCloseInfo CloseInfos = 17; // ArrayCloseInfo 平仓信息
- optional uint32 SpecialAccount = 18; // uint32 特别会员账号
- optional double TradeCharge = 19; // double 成交手续费
- optional double WareHouseCharge = 20; // double 仓单服务费
- optional double UsedMargin = 21; // double 占用保证金
- optional uint32 OperatorID = 22; // uint32 操作员账号ID
- optional uint32 MemberID = 23; // uint32 会员账号,会员系统平仓使用
- optional uint64 MatchAccountID = 24; // uint64 对手方资金账号代码
- optional uint32 BuildType = 25; // uint32 下单类型
- optional uint32 CloseType = 26; // uint32 平仓类型
- }
- // 委托单失效通知
- message OrderFailedNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 OrderID = 3; // uint64 一级生成的订单号
- optional string ClientSerialNo = 4; // string 客户端流水号
- optional uint32 GoodsID = 5; // uint32 原始委托商品代码
- optional int32 Reason = 6; // int32 失效代码
- }
- // 委托单被平通知
- message OrderClosedNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 OrderID = 3; // uint64 一级生成的订单号
- optional string ClientSerialNo = 4; // string 客户端流水号
- optional uint32 GoodsID = 5; // uint32 原始委托商品代码
- optional uint64 TradeQty = 6; // uint64 被平数量
- optional double Amount = 7; // double 成交金额
- optional uint64 ActiveQty = 8; // uint64 激活数量,即剩余数量
- optional uint32 OrderStatus = 9; // uint32 单据状态
- }
- // 委托单撤单通知
- message OrderCanceledNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 OrderID = 3; // uint64 一级生成的订单号
- optional string ClientSerialNo = 4; // string 客户端流水号
- optional uint32 GoodsID = 5; // uint32 商品
- optional uint64 CancelQty = 6; // uint64 撤销数量
- optional uint32 OrderStatus = 7; // uint32 单据状态
- }
- // 操作变更通知
- message OperateChangeNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional string IP = 3; // string IP
- optional uint32 OperatorId = 4; // uint32 操作者
- optional string OperateType = 5; // string 操作类型(管理端功能菜单)
- optional string OperateTime = 6; // string 操作时间
- optional int32 ChangeType = 7; // int32 变更类型(增、删、改等)
- optional int32 ObjectType = 8; // int32 变更对象(1、帐号变更;2、商品变更等)
- optional string ObjectId = 9; // string 目标Id(帐号Id,商品Id…)
- optional string ObjectCode = 10; // string 目标Code(帐号code,商品code…)
- optional string Content = 11; // string 变更内容描述
- }
- // 风控通知
- message RiskControlNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 AccountId = 3; // uint64 账号id
- optional int32 AccountStatus = 4; // int32 账户状态
- optional int32 AccountType = 5; // int32 账户类型
- optional string AccountCode = 6; // string 账户名称
- optional string AccountName = 7; // string 账户名称
- optional int32 RiskLevel = 8; // int32 当前风险级别:1:提示,
- optional string MsgContent = 9; // string 风控消息内容
- optional string Idate = 10; // datetime 时间
- optional double RiskRate = 11; // double 风险率
- optional double CurrentNetBalance = 12; // double 净值
- optional int32 RiskType = 13; // int32 风控类型:0:默认风险率监控,1:安全度风控
- }
- // 强制平仓状态通知
- message ForceCloseStatusNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 OrderID = 3; // uint64 交易所订单号
- optional string ClientSerialNo = 4; // string 强制平仓流水号
- optional uint32 GoodsID = 5; // uint32 平仓商品代码
- optional uint32 BuyOrSell = 6; // uint32 买卖方向
- optional uint32 OrderStatus = 7; // uint32 单据状态
- }
- // 强制平仓成交通知
- message ForceCloseDealedNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 OrderID = 3; // uint64 交易所订单号
- optional string ClientSerialNo = 4; // string 强制平仓流水号
- optional uint32 GoodsID = 5; // uint32 平仓商品代码
- optional uint64 TradeQty = 6; // uint64 成交数量
- optional double Amount = 7; // double 成交金额
- optional uint64 TradeID = 8; // uint64 成交ID
- optional double TradePrice = 9; // double 成交价格
- optional uint32 BuyOrSell = 10; // uint32 买卖方向
- optional string TradeTime = 11; // string 成交时间
- optional double TradeCharge = 12; // double 成交手续费
- }
- // 市场状态变更通知
- message MarketStatusChangeNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint32 MarketID = 3; // uint32 市场ID
- optional uint32 Status = 4; // uint32 状态
- optional uint32 StepType = 5; // uint32 阶段
- optional string TradeDay = 6; // string 交易日
- optional string NotifyTime = 7; // string 通知发送时间
- }
- // 商品状态变更通知
- message GoodsStatusChangeNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint32 MarketID = 3; // uint32 市场ID
- optional uint32 GoodsID = 4; // uint32 商品ID
- optional uint32 Status = 5; // uint32 状态
- optional string TradeDay = 6; // string 交易日
- }
- // 账户变更通知
- message AccountChangeNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 LoginID = 3; // uint64 登陆账户ID
- optional int32 ChangeType = 4; // int32 变更类型(增、删、改等)
- }
- // 开休市计划通知
- message MarketPlanChangeNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- repeated MarketPlanChange MarketPlanChange = 3; // MarketPlanChange 市场开休市消息
- }
- // 开休市计划消息
- message MarketPlanChange {
- required uint32 SignalType = 1; // 控制信号类型:1开市2休市,3市场阶段开始,4市场阶段结束
- optional string ControlTime = 2; // 操作时间如:2016-03-2409:00:00
- optional uint32 MarketTypeId = 3; // 控制信号为1、2、3、4、5休市时:市场类型ID,为6时传空
- repeated uint32 GoodsId = 4; // 商品id
- optional uint32 RunStatus = 5; // 运行状态-0:处于休市、1:处于开市、2:处于临时休市、3:处于结算
- optional uint32 RunStep = 6; // 所处阶段-0:空白阶段、1:集合竞价阶段、2:连续竞价阶段、3:做市开盘阶段、4:发售开盘阶段
- optional string NextTradeDate = 7; // 下一个交易日日期,当控制信号为5时填入,例如:2016-06-08
- optional string TradeDate = 8; // 当前交易日日期,例如:2016-06-08
- optional string OpenMarketDate = 9; // 开市时间,当控制信号为5时填入,例如:2016-06-0809:00:00
- optional string LastTradeDateOfWeek = 10; // 本周最后一个交易日日期,结算时填入,格式:yyyy-MM-dd
- optional uint32 TradeMode = 11; // 交易模式
- }
- // 商品变更通知
- message GoodsChangeNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint32 GoodsID = 3; // uint32 商品ID
- optional int32 ChangeType = 4; // int32 变更类型(增、删、改等)
- }
- // 手动修改市场状态请求
- message ManualChangeMarketReq {
- optional MessageHead Header = 1;
- optional int32 MarketID = 2; // 市场ID
- optional int32 Operate = 3; // 操作(开市、手动休市等)
- }
- // 手动修改市场状态响应
- message ManualChangeMarketRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional int32 MarketID = 4; // 市场ID
- optional int32 Status = 5; // 操作状态1成功0失败
- optional int32 ErrorCode = 6; // 错误码
- }
- // 结算结果通知
- message ReckonResultNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional int32 MarketID = 3; // int32 市场ID(0-为系统)
- optional int32 Status = 4; // int32 状态
- optional string TradeDay = 5; // string 交易日
- }
- // 市场状态手工变化通知
- message MarketStatusManualChangeNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional int32 MarketID = 3; // int32 市场ID(0-为系统)
- optional int32 Status = 4; // int32 状态
- optional int32 StepType = 5; // int32 阶段
- optional string TradeDay = 6; // string 交易日
- }
- // 商品状态手工变更通知
- message GoodsStatusManualChangeNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional int32 MarketID = 3; // int32 市场ID
- optional int32 GoodsID = 4; // int32 商品ID
- optional int32 Status = 5; // int32 状态
- optional string TradeDay = 6; // string 交易日
- }
- // 商品停牌计划变更通知
- message GoodsClosePlanChangeNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint32 MarketID = 3; // uint32 市场ID
- optional uint32 GoodsID = 4; // uint32 商品ID
- optional string CloseDate = 5; // string 停牌日期
- optional string StartTime = 6; // string 开始时间
- optional string EndTime = 7; // string 结束时间
- }
- // 用户账号数据变更
- message AccountDataChange {
- optional uint64 AccountId = 1; // 账号ID
- optional int32 ChangeType = 2; // 变更类型(增、删、改等)
- }
- // 用户变更通知
- message UserChangeNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 UserId = 3; // uint64 用户ID
- optional int32 ChangeType = 4; // int32 变更类型(增、删、改等)
- repeated AccountDataChange AccountChange = 5; // AccountDataChange 账户变更
- }
- // 登录账户数据变更
- message LoginAccChange {
- optional uint64 LoginId = 1; // 账号ID
- optional int32 ChangeType = 2; // 变更类型(增、删、改,资金权限等)
- }
- // 登录账户变更通知
- message LoginAccChangeNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- repeated LoginAccChange LoginAccChange = 3; // LoginAccChange 变更登录账户数组
- }
- // 供应链金融业务状态通知
- message SCFBusinessStatusNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共通知消息
- optional uint64 ExtBusinessID = 3; // uint64 外部业务流水号
- optional uint64 SCFContractID = 4; // uint64 SCF合同ID
- optional int32 SCFContractType = 5; // int32 合同类型
- optional int32 BusinessType = 6; // int32 业务类型
- optional int32 Status = 7; // int32 状态
- optional string RetMsg = 8; // string 返回描述
- optional int32 ReturnCode = 9; // int32 返回错误码
- }
- // 仓单贸易成交通知
- message WRTradeDealedNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 ListingOrderID = 3; // uint64 挂牌委托单号
- optional uint64 DelistingOrderID = 4; // uint64 摘牌委托单号
- optional uint64 TradeQty = 5; // uint64 挂牌成交数量
- optional uint64 ActiveQty = 6; // uint64 挂牌剩余数量
- optional uint64 RealTradeQty = 7; // uint64 摘牌实际成交数量
- optional uint64 TradeID = 8; // uint64 成交单ID
- optional uint64 BuyAccountID = 9; // uint64 买资金账号
- optional uint64 SellAccountID = 10; // uint64 卖资金账号
- optional double TradePrice = 11; // double 成交价
- optional string TradeTime = 12; // string 成交时间
- optional uint64 WRFactorTypeID = 13; // uint64 仓单要素ID
- optional uint32 WRTransferUserID = 14; // uint32 仓单受让账户
- optional double FreezeFirstAmount = 15; // double 冻结首付金额
- optional double UnFreezeFirstAmount = 16; // double 解冻首付金额
- optional double RealTradeAmount = 17; // double 实际成交金额
- optional double PerformanceAmount = 18; // double 履约金额
- optional uint64 PerformancePlanID = 19; // uint64 履约计划ID
- optional int64 PerformanceTemplateID = 20; // int64 履约计划模板ID
- }
- // 履约计划步骤处理完成通知
- message PerformancePlanStepProcessedNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 PerformancePlanID = 3; // uint64 履约计划ID
- optional uint64 PerformancePlanStepID = 4; // uint64 履约计划步骤ID
- optional string RetDesc = 5; // string 描述信息
- }
- // 市场状态给行情服务通知
- message MarketStatusToQuoteNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint32 MarketID = 3; // uint32 市场ID
- optional string TradeDate = 4; // string 交易日
- optional uint32 Status = 5; // uint32 状态,默认填0
- optional string NotifyTime = 6; // string 通知发送时间
- }
- // 合作套保帐户风控通知
- message ScfAccountRiskNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 AccountID = 3; // uint64 帐户ID
- optional int32 ScfRiskLv = 4; // int32 合作套保风险等级(eScfRiskLv)
- optional int32 ScfStatus = 5; // int32 合作套保风险状态(eScfRiskStatus)
- }
- // 商品可售数量通知
- message GoodsAvailableSaleNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 UserID = 3; // uint64 用户ID
- optional uint64 AccountID = 4; // uint64 资金账号ID
- optional uint32 GoodsID = 5; // uint32 交易商品ID
- optional uint32 MarketID = 6; // uint32 市场ID
- optional int32 AvailableQty = 7; // int32 可售数量
- optional int32 Status = 8; // int32 操作状态1成功0失败
- }
- // 仓单头寸互转通知
- message WRPosTransferNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 RelatedOrderId = 3; // uint64 关联单号
- optional int32 TradeQty = 4; // int32 交易数量
- optional int32 Direct = 5; // int32 方向:订单转仓单、仓单转订单(eWRHolderTranslateType)
- optional string TradeTime = 6; // string 成交时间
- }
- // 银行服务入金成功通知
- message BankInSuccessNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- required uint64 ExchTicket = 3; // uint64 成功的银行服务流水号
- required uint64 AccountCode = 4; // uint64 资金账户
- required double Amount = 5; // double 金额
- required string TradeDate = 6; // string 交易日
- }
- // 银行服务出金成功通知
- message BankOutSuccessNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- required uint64 ExchTicket = 3; // uint64 成功的银行服务流水号
- required uint64 AccountCode = 4; // uint64 资金账户
- required double Amount = 5; // double 金额
- required string TradeDate = 6; // string 交易日
- }
- // 系统参数修改通知
- message SystemParamChangeNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional string ParamCode = 3; // string 参数代码
- }
- // 斩仓通知
- message RiskCutNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 AccountId = 3; // uint64 账号id
- optional int32 RiskLevel = 4; // int32 当前风险级别:1:提示,
- optional string Idate = 5; // datetime 时间
- optional double CurRate = 6; // double 实时风险率
- optional double CutRate = 7; // double 斩仓触发风险率
- optional double SafeRate = 8; // double 斩仓恢复风险率
- }
- // 交易成交源信息
- message TradeDealedSourceInfo {
- optional uint64 Qty = 1; // 源成交数量
- optional double Price = 2; // 源成交价
- optional uint64 HoldTradeID = 3; // 持仓单成交ID
- }
- // 交割成交通知
- message DeliveryDealedNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 AccountId = 3; // uint64 账号id
- optional uint64 DeliveryID = 4; // uint64 交割ID
- optional uint32 GoodsID = 5; // uint32 商品ID
- optional double AgreeUnit = 6; // double 合约单位
- repeated TradeDealedSourceInfo TradeDealedSource = 7; // TradeDealedSourceInfo 持仓成交源
- optional uint32 DeliveryGoodsID = 8; // uint32 交割商品ID
- }
- // 交易成交通知
- message TradeDealedNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 AccountId = 3; // uint64 账号id
- optional uint64 CloseTradeID = 4; // uint64 平仓成交单号
- optional uint64 GoodsID = 5; // uint64 商品ID
- optional double AgreeUnit = 6; // double 合约单位
- optional uint64 Qty = 7; // uint64 成交数量
- optional double Price = 8; // double 源成交价
- }
- // 用户首次登陆通知
- message LoginFirstNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 LoginId = 3; // uint64 登陆id
- repeated uint64 AccountIds = 4; // uint64 账号id
- }
- // 竞拍商品状态变更通知
- message AuctionGoodsStatusChangeNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint32 MarketID = 3; // uint32 市场ID
- optional uint32 GoodsID = 4; // uint32 商品ID
- optional string GoodsCode = 5; // string 商品代码
- optional string GoodsName = 6; // string 商品名称
- optional uint32 Status = 7; // uint32 商品状态
- optional string TradeDay = 8; // string 交易日
- optional uint32 TradeMode = 9; // uint32 交易模式
- optional uint32 DecimalPlace = 10; // uint32 小数位数
- optional uint32 GroupID = 11; // uint32 场次ID
- }
- // 交易日重算通知
- message TradeDateRedoneNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint32 Redone = 3; // uint32 重置标识
- }
- // 商城卖方收款成功通知
- message MallSellerReceiveSuccessNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 BuyerAccountID = 3; // uint64 买方资金账号
- optional uint64 SellerAccountID = 4; // uint64 卖方资金账号
- optional double ShoppingAmount = 5; // double 购物金额
- optional double MaidRatio = 6; // double 分拥比率
- optional uint64 PayMentID = 7; // uint64 支付单号
- optional double ExchDivRation = 8; // double 交易所分润比率
- }
- // 履约生成合同通知通知
- message PerformanceBuildAgreementNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 PerformancePlanID = 3; // uint64 履约计划ID
- optional int32 PerformanceType = 4; // int32 履约类型
- optional uint64 RelatedOrderID = 5; // uint64 关联单号
- optional double Amount = 6; // double 履约金额
- optional int32 PerformanceStatus = 7; // int32 履约状态
- optional uint64 BuyAccountID = 8; // uint64 买方账号
- optional uint64 SellAccountID = 9; // uint64 卖方账号
- optional double OverShortAmount = 10; // double 溢短金额
- }
- // 解除账户关联关系通知
- message RelievingAccRelationNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 UserID = 3; // uint64 解除账户用户id
- optional uint64 AccountID = 4; // uint64 解除账户资金账户Id
- optional uint64 RelatedOrderID = 5; // uint64 关联单号id
- }
- // 报价量用完通知
- message QuoteQtyUseUpNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 QuoteId = 3; // uint64 报价单ID
- }
- // 交割商品变更通知
- message DeliveryGoodsChangeNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint32 DeliveryGoodsID = 3; // uint32 交割商品ID
- optional int32 ChangeType = 4; // int32 变更类型,变更包含要素及扩展(增、删、改等)
- }
- // 期权交易通知
- message OptionTradeNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 TradeID = 3; // uint64 成交单号
- optional string TradeDate = 4; // string 交易日
- optional uint32 MarketID = 5; // uint32 市场ID
- optional uint32 GoodsID = 6; // uint32 商品ID
- optional uint64 AccountID = 7; // uint64 账号ID
- optional uint32 BuyOrSell = 8; // uint32 方向-0:买
- optional uint64 HolderQty = 9; // uint64 持仓数量
- optional double HolderPrice = 10; // double 持仓价格
- optional double HolderAmount = 11; // double 持仓金额
- optional uint32 IsCloseToday = 12; // uint32 今日是否能平仓0:能平仓1:不能平
- optional uint32 OptionType = 13; // uint32 期权类型-1:认购(看涨)
- optional double Premium = 14; // double 权利金(单手)
- optional uint32 IsPreClose = 15; // uint32 是否预平仓0:非预平仓1:预平仓
- optional double ClosePrice = 16; // double 预平仓价格
- optional uint32 IsComfirmClose = 17; // uint32 是否确认行权0:非确认行权1:确认行权
- }
- // 商品最大数量通知
- message GoodsMaxQtyNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 UserID = 3; // uint64 用户ID
- optional uint64 AccountID = 4; // uint64 资金账号ID
- optional uint32 GoodsID = 5; // uint32 交易商品ID
- optional uint32 MarketID = 6; // uint32 市场ID
- optional int64 BuyMaxQty = 7; // int64 最大买数量
- optional int32 LimitType = 8; // int32 期权类型-1:认购)
- }
- // 委托单撤单通知
- message RiskOrderCanceledNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 AccountID = 3; // uint64 资金账号ID
- }
- // 交易风控规则配置变更通知
- message TradeRiskRuleConfigChangeNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint32 OperateType = 3; // uint32 操作类型1:增2:删
- optional uint32 RuleChangeType = 4; // uint32 变更类型1:风控规则(支持增删改)2:风控规则组(支持增删改)
- optional uint32 RiskRuleID = 5; // uint32 风控规则ID(风控规则操作时有效)
- optional uint32 RiskRuleGroupID = 6; // uint32 风控规则组ID(风控规则组操作时有效)
- repeated uint32 GroupAddRuleIDs = 7; // uint32 风控规则组增加规则数组(增改有效)
- repeated uint32 GroupDelRuleIDs = 8; // uint32 风控规则组删除规则数组(删改有效)
- }
- // 交易模板配置变更通知
- message TradeTemplateConfigChangeNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint32 TemplateType = 3; // uint32 模板类型1:保证金2:手续费
- optional uint32 TemplateID = 4; // uint32 模板ID
- repeated uint32 AddAuxIDs = 5; // uint32 模板增加辅助ID保证金手续费:GoodsID汇率:OriCurrencyID
- repeated uint32 DelAuxIDs = 6; // uint32 模板删除辅助ID保证金手续费:GoodsID汇率:OriCurrencyID
- repeated uint32 UpdateAuxIDs = 7; // uint32 模板修改辅助ID保证金手续费:GoodsID汇率:OriCurrencyID
- }
- // 资金账户交易模板配置变更通知
- message TaAccountTemplateConfigChangeNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint32 OperateType = 3; // uint32 操作类型1:增2:删
- optional uint64 AccountID = 4; // uint64 账户ID
- }
- // 外部账户配置同步完成通知
- message ExtenalAccountCfgSyncFinishNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional string TradeDate = 3; // string 交易日
- optional uint64 AccountID = 4; // uint64 账户ID(空表示所有外部账号配置都同步完成)
- optional uint32 ChannelID = 5; // uint32 渠道ID(同上)
- }
- // 风控账户交易限制状态变更通知
- message RiskAccountTradeLimitStatusChangeNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint32 OperateType = 3; // uint32 操作类型1:增2:删
- optional uint64 AccountID = 4; // uint64 账户ID
- optional uint32 RiskTradeStatus = 5; // uint32 风控交易状态eAccountRiskTradeStatus
- }
- // 风控消息管理端通知客户端
- message RiskToWebNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 MsgId = 3; // uint64 消息ID
- optional string Content = 4; // string 消息内容
- }
- // 管理端个性化风控通知
- message AccountConfigChangeNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint32 NtfType = 3; // uint32 类型:1-风控变更,2-投资者分组变更,3-投资者分组个性化变更,4-账户个性化变更
- optional uint64 Userid = 4; // uint64 会员/投资者ID
- optional uint32 Roletype = 5; // uint32 角色:6-自营,8-做市(投资者没有)
- optional uint64 Accountid = 6; // uint64 资金账户
- optional uint64 Groupid = 7; // uint64 分组ID,2、3时使用
- optional uint64 Goodsid = 8; // uint64 商品ID
- optional uint32 ChangType = 9; // uint32 变更类型:1新增,2修改,3删除
- }
- // 商品组变更通知
- message GoodsGroupChangeNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint32 GoodsGroupID = 3; // uint32 商品组ID
- optional int32 ChangeType = 4; // int32 变更类型(增、删、改等)
- }
- // 场次变更通知
- message AuctionGroupInfoNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 AutoId = 3; // uint64 场次ID
- optional int32 ChangeType = 4; // int32 变更类型(1:增、2:改、3:删等)
- }
- // 场次状态变更通知
- message AuctionGroupStatusNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint32 MarketID = 3; // uint32 市场ID
- optional uint32 Status = 4; // uint32 场次状态
- optional string TradeDay = 5; // string 交易日
- optional uint32 TradeMode = 6; // uint32 交易模式
- optional uint32 GroupID = 7; // uint32 场次ID
- }
- // 履约计划完成通知
- message PerformancePlanProcessedNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 PerformancePlanID = 3; // uint64 履约计划ID
- optional uint64 RelatedOrderID = 4; // uint64 关联单号
- optional uint64 AccountID = 5; // uint64 资金账号ID
- optional uint32 MarketID = 6; // uint32 市场ID
- optional string TradeDay = 7; // string 交易日
- optional double Amount = 8; // double 履约金额
- optional string TradeTime = 9; // string 成交时间
- optional uint32 Score = 10; // uint32 积分
- }
- // 场外期权最大数量通知
- message OTCOptionGoodsMaxQtyNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 UserID = 3; // uint64 用户ID
- optional uint64 AccountID = 4; // uint64 资金账号ID
- optional uint32 GoodsID = 5; // uint32 交易商品ID
- optional uint32 GoodsGroupId = 6; // uint32 商品组ID
- optional uint32 MarketID = 7; // uint32 市场ID
- optional int64 BuyMaxQty = 8; // int64 最大买数量
- optional int32 LimitType = 9; // int32 期权类型0:全部1:认购(看涨)
- }
- // 跟单设置变更通知
- message FollowOrderSetNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 StrategyId = 3; // uint64 策略ID(AUTOID)
- optional string StrategyName = 4; // string 策略名称
- optional uint32 Type = 5; // uint32 策略类型1:跟委托2:跟成交
- optional uint32 PriceMode = 6; // uint32 跟单模式1:市价单2:限价单
- optional double Ratio = 7; // double 跟单比例
- optional uint32 Direct = 8; // uint32 跟单方向1:正向2:反向
- optional string AccountId = 9; // string 跟单账号
- optional string AccountId2 = 10; // string 被跟单账号
- optional uint32 ChangeNtfType = 11; // uint32 变更类型1:新增2:修改
- optional string GoodsId = 12; // string 跟单商品ID(逗号隔开)
- optional uint32 Status = 13; // uint32 状态0-禁用1-启用
- }
- // 上架商品状态变更通知
- message SpotQuoteStatusChangeNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint32 CurMarketID = 3; // uint32 当前市场ID
- optional uint32 DeliveryGoodsID = 4; // uint32 交割商品ID
- optional uint32 DGStatus = 5; // uint32 品种状态
- optional uint32 QuoteStatus = 6; // uint32 报价状态
- optional uint32 ListingStatus = 7; // uint32 挂牌状态
- optional uint32 AuctionStatus = 8; // uint32 竞拍状态
- optional string TradeDay = 9; // string 交易日
- optional uint32 CurUserID = 10; // uint32 当前用户
- optional uint64 CurAccountID = 11; // uint64 当前资金账户
- }
- // 锁仓认购活动变更通知
- message ChannelLockBuyChangeNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint32 OperateType = 3; // uint32 操作类型1:增2:删
- optional uint64 ActiveID = 4; // uint64 活动ID
- }
- // 通道路由设置变更通知
- message ChannelSetChangeNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint32 OperateType = 3; // uint32 操作类型1:增2:删
- optional uint64 Cid = 4; // uint64 活动ID
- }
- // 买方挂牌成交通知
- message BuyListingTradeDealedNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 BuyAccountID = 3; // uint64 买方资金账户ID
- optional uint32 DeliveryGoodsID = 4; // uint32 交割商品ID
- optional uint32 ListingStatus = 5; // uint32 挂牌状态(3:已成交)
- optional double TradeAmount = 6; // double 成交金额
- optional string TradeTime = 7; // string 成交时间
- }
- // 现货商城商品状态变更通知
- message SpotShopGoodsStatusChangeNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint32 GoodsID = 3; // uint32 商品ID
- optional uint32 Status = 4; // uint32 1:新增2:下架3:修改
- optional string TradeDay = 5; // string 交易日
- }
- // 委托单成功通知
- message OrderSuccessedNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 OrderID = 3; // uint64 委托单ID
- optional uint32 GoodsID = 4; // uint32 商品ID
- optional string OrderTime = 5; // string 委托时间
- }
- // 金点拍出价成功通知
- message JdpQuoteSuccessNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint32 UserID = 3; // uint32 用户ID
- optional uint64 AccountID = 4; // uint64 账户ID
- optional uint32 GoodsID = 5; // uint32 商品ID
- optional string NickName = 6; // string 昵称
- optional double Price = 7; // double 当前价格
- optional double PrizeaAmount = 8; // double 奖励金额
- optional string Ordertime = 9; // string 委托时间
- }
- // 止盈止损触发通知
- message SPSLTriggerNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 OrderID = 3; // uint64 单号
- optional uint64 AccountID = 4; // uint64 账户ID
- optional uint32 GoodsID = 5; // uint32 商品ID
- optional uint32 Status = 6; // uint32 止盈止损单据状态
- }
- // 用户分组变更通知
- message UserGroupNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint32 UserGroupID = 3; // uint32 用户分组ID
- optional uint32 ChangeType = 4; // uint32 变更类型(增、删、改等)
- optional uint32 NtfType = 5; // uint32 变更范围(分组信息、分组明细)
- }
- // 止盈止损设置变更通知
- message SPSLSetChangeNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint32 OperateType = 3; // uint32 操作类型1:新增2:修改
- optional uint64 SpslId = 4; // uint64 模板ID
- }
- // 投顾托管关系变更通知
- message TrusteeRelationNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 TrusteeUserID = 3; // uint64 投顾用户ID
- repeated uint64 FTouGuClientInfo = 4; // uint64 投顾与客户关系
- optional uint32 IdRelation = 5; // uint32 0关联1解除
- }
- // 允许交易通知通知
- message ExtAllowTradeNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint32 TradeSwitch = 3; // uint32 交易切换0允许
- }
- // 主账户强平设置变更通知
- message ForceCloseSetChangeNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint32 OperateType = 3; // uint32 操作类型1:新增2:修改
- optional uint64 tmplateId = 4; // uint64 模板ID
- }
- // 资金账户状态变更通知
- message TaaccountStausChangeNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- repeated uint64 AccountId = 3; // uint64 资金账户ID
- optional uint32 TradeStatus = 4; // uint32 交易状态-1:正常
- }
- // 交易委托请求
- message OrderReq {
- optional MessageHead Header = 1;
- optional string ClientSerialNo = 2; // 客户端流水号
- optional string ClientOrderTime = 3; // 客户端委托时间
- optional uint32 ClientType = 4; // 终端类型
- optional uint64 LoginID = 5; // 登陆账号
- optional uint64 AccountID = 6; // 交易账号
- optional uint32 GoodsID = 7; // 商品ID
- optional uint32 MarketID = 8; // 市场ID
- optional int32 ValidType = 9; // 校验类型
- optional uint32 OperateType = 10; // 操作类型:
- optional uint32 OrderSrc = 11; // 单据来源
- optional uint64 OperatorID = 12; // 操作员账号ID
- optional double OrderPrice = 13; // 委托价格
- optional double MarketMaxSub = 14; // 市价允许最大偏差(做市)
- optional uint64 OrderQty = 15; // 委托数量
- optional uint32 BuyOrSell = 16; // 买卖方向
- optional uint32 BuildType = 17; // 下单类型
- optional double CurtQuotePrice = 18; // 保留,计算冻结金额使用
- optional double SpPrice = 19; // 止盈价格
- optional double SlPrice = 20; // 止损价格
- optional uint32 PriceMode = 21; // 取价方式
- optional uint32 TimevalidType = 22; // 时间有效类型
- optional uint32 TriggerType = 23; // 预埋单触发类型
- optional double TriggerPrice = 24; // 预埋单触发价格
- optional uint32 ListingSelectType = 25; // 挂牌点选类型
- optional uint32 DelistingType = 26; // 摘牌类型
- optional uint64 RelatedID = 27; // 关联单号
- optional uint32 OptionType = 28; // 期权类型(1:认购(看涨)2:认沽(看跌))
- optional double Premium = 29; // 权利金
- optional uint32 TriggerOperator = 30; // 触发条件-1:
- optional string ServiceTime = 31; // 服务端时间
- }
- // 交易委托应答
- message OrderRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 OrderID = 4; // 一级生成的订单号
- optional string OrderTime = 5; // 接收委托交易的时间
- }
- // 撤单请求
- message CancelOrderReq {
- optional MessageHead Header = 1;
- optional string ClientSerialNo = 2; // 客户端流水号
- optional string ClientOrderTime = 3; // 客户端委托时间
- optional uint32 ClientType = 4; // 终端类型
- optional uint32 OperateType = 5; // 操作类型
- optional uint64 OldOrderId = 6; // 原委托单号
- optional uint64 AccountID = 7; // 交易账号
- optional uint32 OrderSrc = 8; // 单据来源
- optional uint64 OperatorID = 9; // 操作员账号ID
- optional string IP = 10; // 单据来源IP
- }
- // 撤单应答
- message CancelOrderRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ExchActionID = 4; // 交易所操作号
- optional string OrderTime = 5; // 接收委托交易的时间
- }
- // 风控斩仓请求
- message RiskCloseReq {
- optional MessageHead Header = 1;
- optional uint64 EntrustID = 2; // 斩仓委托ID
- optional string RiskCloseTime = 3; // 风控委托时间(YYYY-MM-DDHH:MM:SS)
- optional uint64 AccountID = 4; // 交易账号
- optional uint32 GoodsID = 5; // 商品ID
- optional uint32 MarketID = 6; // 市场ID
- optional uint32 OperateType = 7; // 操作类型:
- optional uint32 OrderSrc = 8; // 单据来源
- optional double OrderPrice = 9; // 委托价格
- optional uint64 OrderQty = 10; // 委托数量
- optional uint32 BuyOrSell = 11; // 买卖方向(委托下单方向与持仓头寸方向相反)
- optional uint32 BuildType = 12; // 下单类型
- optional uint32 PriceMode = 13; // 取价方式
- optional string RiskCloseSendTime = 14; // 风控委托发送时间(YYYY-MM-DDHH:MM:SS)
- optional uint32 CloseType = 15; // 平仓方式,0-平仓1-平今2-平昨
- optional string IP = 16; // 单据来源IP
- }
- // 风控斩仓响应
- message RiskCloseRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional int32 CloseRspResult = 4; // 斩仓结果(0:成功,其它为失败)
- optional uint64 EntrustID = 5; // 斩仓委托ID(从斩仓请求中带回)
- optional uint64 AccountID = 6; // 交易账号
- optional uint64 TradeQty = 7; // 实际成交手数
- }
- // 仓单持仓转换请求
- message WairhouseReceiptHolderTranslateReq {
- optional MessageHead Header = 1;
- optional uint64 AccountID = 2; // 交易账号
- optional uint32 GoodsID = 3; // 商品ID
- optional uint64 TranslateQty = 4; // 转换数量
- optional uint32 TranslateType = 5; // 转换类型(1:仓单转持仓2:持仓转仓单)
- optional uint32 UnfreezeFlag = 6; // 是否解冻标志(1:需解冻2:不解冻)
- optional uint32 BusinessID = 7; // 业务ID(返回)
- optional uint64 TradeID = 8; // 交易ID
- optional uint64 WRSerialNo = 9; // 仓单服务流水号(返回)
- }
- // 仓单持仓转换响应
- message WairhouseReceiptHolderTranslateRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint32 BusinessID = 4; // 业务ID(返回)
- optional uint64 TradeID = 5; // 交易ID
- optional uint64 WRSerialNo = 6; // 仓单服务流水号(返回)
- optional uint64 AccountID = 7; // 交易账号
- optional uint64 UserID = 8; // 忽略此字段
- }
- // 交割协议平仓请求
- message DeliveryDealCloseReq {
- optional MessageHead Header = 1;
- optional uint64 DeliveryID = 2; // 交割单号
- optional uint32 GoodsID = 3; // 商品Id(收益权)
- optional uint64 BuyAccountID = 4; // 买方账户Id
- optional uint64 SellAccountID = 5; // 卖方账户Id
- optional double ClosePrice = 6; // 协议平仓价格
- optional uint64 CloseQty = 7; // 协议平仓数量
- optional uint32 OrderSrc = 8; // 单据来源
- optional string ClientSerialNo = 9; // 流水号
- optional uint32 DeliveryPriceType = 10; // 交割平仓价格类型
- }
- // 交割协议平仓应答
- message DeliveryDealCloseRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 DeliveryID = 4; // 交割单号
- optional uint32 GoodsID = 5; // 商品Id
- optional string ClientSerialNo = 6; // 流水号
- optional double TradeAmount = 7; // 交割成交货款
- }
- // 交割成交请求
- message DeliveryTradeReq {
- optional MessageHead Header = 1;
- optional uint64 DeliveryID = 2; // 交割单号
- optional uint32 GoodsID = 3; // 商品Id(所有权)
- optional uint64 AccountID = 4; // 买方账户Id
- optional uint64 Qty = 5; // 头寸数量
- optional uint32 OrderSrc = 6; // 单据来源
- optional string ClientSerialNo = 7; // 流水号
- optional uint32 DeliveryGoodsID = 8; // 交割商品Id(所有权)
- }
- // 交割成交应答
- message DeliveryTradeRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 DeliveryID = 4; // 交割单号
- optional uint32 GoodsID = 5; // 商品Id
- optional double TotalOpenAmount = 6; // 建仓总金额
- optional double TotalPayAmount = 7; // 已支付总金额
- optional string ClientSerialNo = 8; // 流水号
- }
- // 交割协议转让请求
- message DeliveryTransferReq {
- optional MessageHead Header = 1;
- optional uint64 DeliveryID = 2; // 交割单号
- optional uint32 GoodsID = 3; // 商品Id
- optional uint32 BuyOrSell = 4; // 买卖方向
- optional uint64 CloseAccountID = 5; // 平仓账户Id
- optional uint64 MatchAccountID = 6; // 对手账户Id
- optional double Price = 7; // 转让价格
- optional uint64 Qty = 8; // 转让数量
- optional uint32 OrderSrc = 9; // 单据来源
- optional string ClientSerialNo = 10; // 流水号
- }
- // 交割协议转让应答
- message DeliveryTransferRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 DeliveryID = 4; // 交割单号
- optional uint32 GoodsID = 5; // 商品Id
- optional string ClientSerialNo = 6; // 流水号
- }
- // 预行权请求
- message PreExerciseReq {
- optional MessageHead Header = 1;
- optional string ClientSerialNo = 2; // 客户端流水号
- optional string ClientOrderTime = 3; // 客户端委托时间(YYYY-MM-DDHH:MM:SS)
- optional uint32 ClientType = 4; // 终端类型
- optional uint64 AccountID = 5; // 交易账号
- optional uint32 GoodsID = 6; // 商品ID
- optional uint32 MarketID = 7; // 市场ID
- optional uint32 OperateType = 8; // 操作类型
- optional uint32 OrderSrc = 9; // 单据来源
- optional uint64 OperatorID = 10; // 操作员账号ID
- optional uint64 RelatedID = 11; // 关联单号
- optional uint32 OptionType = 12; // 期权类型(1:认购(看涨)2:认沽(看跌))
- optional uint32 BuyOrSell = 13; // 买卖方向
- }
- // 预行权返回
- message PreExerciseRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string ClientSerialNo = 4; // 流水号
- optional uint64 AccountID = 5; // 交易账号
- optional uint64 RelatedID = 6; // 关联单号
- }
- // 确认行权请求
- message ConfirmExerciseReq {
- optional MessageHead Header = 1;
- optional string ClientSerialNo = 2; // 客户端流水号
- optional string ClientOrderTime = 3; // 客户端委托时间
- optional uint32 ClientType = 4; // 终端类型
- optional uint64 AccountID = 5; // 交易账号
- optional uint32 GoodsID = 6; // 商品ID
- optional uint32 MarketID = 7; // 市场ID
- optional uint32 OperateType = 8; // 操作类型
- optional uint32 OrderSrc = 9; // 单据来源
- optional uint64 OperatorID = 10; // 操作员账号ID
- optional uint64 RelatedID = 11; // 关联单号
- optional uint32 OptionType = 12; // 期权类型(1:认购(看涨)2:认沽(看跌))
- optional bytes ShipperConfigInfo = 13; // 发货配置信息
- optional int32 ShipperConfigType = 14; // 发货配置类型
- optional uint32 BuyOrSell = 15; // 买卖方向
- optional int32 VersionFlag = 16; // 版本标记(1,新版本;0或无值,旧版本)
- }
- // 确认行权返回
- message ConfirmExerciseRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string ClientSerialNo = 4; // 流水号
- optional uint64 AccountID = 5; // 交易账号
- optional uint64 RelatedID = 6; // 关联单号
- }
- // 管理员强行平仓请求
- message ManageForceCloseReq {
- optional MessageHead Header = 1;
- optional uint64 EntrustID = 2; // 强行平仓委托ID(用于关联ID和返回应答)
- optional string ClientOrderTime = 3; // 委托时间(YYYY-MM-DDHH:MM:SS)
- optional uint64 AccountID = 4; // 平仓单据交易账号
- optional uint32 GoodsID = 5; // 平仓商品ID
- optional uint32 MarketID = 6; // 市场ID
- optional uint32 OperateType = 7; // 操作类型
- optional uint32 OrderSrc = 8; // 单据来源
- optional double OrderPrice = 9; // 平仓价格
- optional uint64 OrderQty = 10; // 平仓数量
- optional uint32 BuyOrSell = 11; // 买卖方向(委托下单方向与持仓头寸方向相反)
- }
- // 管理员强行平仓响应
- message ManageForceCloseRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 EntrustID = 4; // 强行平仓委托ID(用于关联ID和返回应答)
- optional uint64 AccountID = 5; // 平仓单据交易账号
- optional uint32 TradeQty = 6; // 实际成交数量
- }
- // 预售挂牌请求
- message PreSaleListingInfoReq {
- optional MessageHead Header = 1;
- optional uint64 ApplyID = 2; // 预售申请ID
- optional uint64 AccountID = 3; // 卖方资金账号ID
- optional uint32 MarketID = 4; // 市场ID
- optional string GoodsName = 5; // 商品名称
- optional string GoodsCode = 6; // 商品代码
- optional string Unit = 7; // 单位
- optional uint64 ApplyQty = 8; // 申请数量
- optional uint32 StepPriceType = 9; // 阶梯价类型
- optional string GoodsDesc = 10; // 商品详情
- optional string GoodsPicUrl = 11; // 商品介绍图片
- optional uint32 DecimalPlace = 12; // 价格小数位
- optional uint32 SellMarginAlgorithm = 13; // 卖方保证金收取方式
- optional double SellMarginValue = 14; // 卖方保证金设置值
- optional uint32 BuyChargeAlgorithm = 15; // 买方手续费收取方式
- optional double BuyChargeValue = 16; // 买方手续费设置值
- optional uint32 SellChargeAlgorithm = 17; // 卖方手续费收取方式
- optional double SellChargeValue = 18; // 卖方手续费设置值
- optional uint32 PerformanceMode = 19; // 履约方式
- optional uint64 PerformanceTemplateID = 20; // 履约计划模板ID
- optional uint32 PreSaleStatus = 21; // 预售状态
- optional uint32 HandleStatus = 22; // 处理状态
- optional string StartDay = 23; // 开始日期
- optional string EndDay = 24; // 结束日期
- optional double SellerFreezeMargin = 25; // 卖方冻结保证金
- optional double SellerFreezeCharge = 26; // 卖方冻结手续费
- optional uint32 BuyMarginAlgorithm = 27; // 买方保证金收取方式
- optional double BuyMarginValue = 28; // 买方保证金设置值
- optional uint64 MinTradeQty = 29; // 最小摘牌量
- optional uint32 PerformanceWay = 30; // 交货模式-2:分步履约
- optional double BuyReleaseRatio = 31; // 买方释放比率[2:分步履约]
- optional double SellReleaseRatio = 32; // 卖方释放比率[2:分步履约]
- optional uint32 ExecuteMode = 33; // 执行方式[2:分步履约]-1:顺序执行
- optional uint32 ExecuteSide = 34; // 执行方[2:分步履约]-1:买方
- optional uint32 MinQty = 35; // 最小执行量[2:分步履约]
- optional uint32 HoldDays = 36; // 合同期限[2:分步履约]
- optional double BuyChargeValue2 = 37; // 买方手续费设置值[会员部分]
- optional double SellChargeValue2 = 38; // 卖方手续费设置值[会员部分]
- }
- // 预售挂牌响应
- message PreSaleListingInfoRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ListingID = 4; // 预售挂牌ID
- optional uint64 ApplyID = 5; // 预售申请ID
- optional uint32 TradeQty = 6; // 实际成交数量
- optional uint64 SellerAccountID = 7; // 卖方资金账号ID
- }
- // 预售委托请求
- message PreSaleOrderReq {
- optional MessageHead Header = 1;
- optional uint64 ListingID = 2; // 关联挂牌ID
- optional uint32 BuyOrSell = 3; // 买卖方向
- optional uint64 AccountID = 4; // 账户ID
- optional uint64 OrderQty = 5; // 委托数量
- optional string ClientOrderTime = 6; // 客户端委托时间
- optional string ClientTicket = 7; // 客户端流水号
- optional uint32 ClientType = 8; // 客户端类型
- optional string GoodsCode = 9; // 商品代码
- optional uint32 MarketID = 10; // 市场ID
- }
- // 预售委托响应
- message PreSaleOrderRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ListingID = 4; // 关联挂牌ID
- optional uint64 AccountID = 5; // 账户ID
- optional string ClientTicket = 6; // 客户端流水号
- }
- // 管理端协议转让请求
- message ManageProtoTransferReq {
- optional MessageHead Header = 1;
- optional uint64 ApplyID = 2; // 申请ID
- optional uint64 OutAccountID = 3; // 转出方资金账号ID
- optional uint64 InAccountID = 4; // 转入方资金账号
- optional uint32 GoodsID = 5; // 商品ID
- optional uint32 BuyOrSell = 6; // 转出方买卖方向
- optional uint64 Qty = 7; // 转让数量
- optional double TransferPrice = 8; // 转让价格
- optional double HoldPrice = 9; // 持仓价格[所有权]
- optional uint32 FreezeDays = 10; // 冻结天数
- optional string ClientTicket = 11; // 客户端流水号
- }
- // 管理端协议转让响应
- message ManageProtoTransferRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ApplyID = 4; // 申请ID
- optional string ClientTicket = 5; // 客户端流水号
- }
- // 商品退市请求
- message GoodsDelistReq {
- optional MessageHead Header = 1;
- optional uint32 GoodsID = 2; // 商品ID
- optional uint32 AccountType = 3; // 账户类型-1:非做市会员
- }
- // 商品退市请求
- message GoodsDelistRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint32 GoodsID = 4; // 商品ID
- }
- // 预售撤销请求
- message PreSaleCancelReq {
- optional MessageHead Header = 1;
- optional uint64 ListingID = 2; // 关联挂牌ID
- optional uint32 MarketID = 3; // 市场ID
- }
- // 预售撤销响应
- message PreSaleCancelRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ListingID = 4; // 关联挂牌ID
- optional uint32 MarketID = 5; // 市场ID
- }
- // 交易委托请求
- message ChannelOrderReq {
- optional MessageHead Header = 1;
- optional string ClientSerialNo = 2; // 客户端流水号
- optional string ClientOrderTime = 3; // 客户端委托时间
- optional uint32 ClientType = 4; // 终端类型
- optional uint64 LoginID = 5; // 登陆账号
- optional uint64 AccountID = 6; // 交易账号
- optional uint32 GoodsID = 7; // 商品ID
- optional uint32 MarketID = 8; // 市场ID
- optional int32 ValidType = 9; // 有效类型-1当日有效
- optional uint32 ChannelOperateType = 10; // 操作类型:
- optional uint32 ChannelOrderSrc = 11; // 单据来源委托来源-1:客户端
- optional uint32 HedgeFlag = 12; // 投机套保标志-0:无
- optional uint64 OperatorID = 13; // 操作员账号ID
- optional double OrderPrice = 14; // 委托价格
- optional uint64 OrderQty = 15; // 委托数量
- optional uint32 BuyOrSell = 16; // 买卖方向(买卖-0:买
- optional uint32 ChannelBuildType = 17; // 下单类型(开平标志-0:无
- optional uint32 CloseType = 18; // 平仓方式(平仓方式-0:无
- optional uint32 PriceMode = 19; // 取价方式-1:市价
- optional uint32 TimeValidType = 20; // 时间有效类型
- optional uint64 RelatedID = 21; // 关联单号
- optional string ServiceTime = 22; // 服务端时间
- optional string validtime = 23; // 有效时间
- optional uint64 CloseTodayQty = 24; // 平今仓数量
- optional double CurPrice = 25; // 当时的行情价
- optional uint32 SPPoint = 26; // 止盈点数
- optional uint32 SLPoint = 27; // 止损点数
- optional string IP = 28; // 下单来源IP
- }
- // 交易委托应答
- message ChannelOrderRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 OrderID = 4; // 一级生成的订单号
- optional string OrderTime = 5; // 接收委托交易的时间
- }
- // 修正持仓请求
- message ManageAmendHolderReq {
- optional MessageHead Header = 1;
- optional uint64 EntrustID = 2; // 修正持仓委托ID(用于关联ID和返回应答)
- optional string ClientOrderTime = 3; // 委托时间(YYYY-MM-DDHH:MM:SS)
- optional uint64 AccountID = 4; // 交易账号
- optional uint32 GoodsID = 5; // 商品ID
- optional uint32 MarketID = 6; // 市场ID
- optional uint32 ChannelOperateType = 7; // 操作类型
- optional uint32 ChannelOrderSrc = 8; // 单据来源委托来源-1:客户端
- optional double OrderPrice = 9; // 价格
- optional uint64 OrderQty = 10; // 数量
- optional uint32 BuyOrSell = 11; // 买卖方向(平仓:委托下单方向与持仓头寸方向相反)
- optional uint32 ChannelBuildType = 12; // 下单类型(开平标志-0:无
- optional uint32 CloseType = 13; // 平仓类型(平仓标志-0:平仓
- optional string IP = 14; // 下单来源IP
- }
- // 修正持仓响应
- message ManageAmendHolderRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 EntrustID = 4; // 强行平仓委托ID(用于关联ID和返回应答)
- optional uint64 AccountID = 5; // 平仓单据交易账号
- }
- // 修正成交请求
- message ManageAmendTradeReq {
- optional MessageHead Header = 1;
- optional uint64 EntrustID = 2; // 修正成交委托ID(用于关联ID和返回应答)
- optional string ClientOrderTime = 3; // 委托时间(YYYY-MM-DDHH:MM:SS)
- optional uint32 MarketID = 4; // 市场ID
- optional string TradeDate = 5; // 交易日
- optional uint32 ChannelOrderSrc = 6; // 单据来源委托来源-1:客户端
- optional uint64 MhpInnerTradeID = 7; // 对冲平台成交单ID
- }
- // 修正成交响应
- message ManageAmendTradeRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 EntrustID = 4; // 修正成交委托ID(用于关联ID和返回应答)
- optional uint64 MhpInnerTradeID = 5; // 对冲平台成交单ID
- optional string TradeDate = 6; // 交易日
- }
- // 币币兑换委托请求
- message CoinExchangeOrderReq {
- optional MessageHead Header = 1;
- optional string ClientSerialNo = 2; // 客户端流水号
- optional string ClientOrderTime = 3; // 客户端委托时间
- optional uint32 ClientType = 4; // 终端类型
- optional uint64 LoginID = 5; // 登陆账号
- optional uint64 AccountIDPayer = 6; // 交易账号-付款
- optional uint64 AccountIDPayee = 7; // 交易账号-收款
- optional uint32 GoodsID = 8; // 商品ID
- optional uint32 MarketID = 9; // 市场ID
- optional int32 ValidType = 10; // 校验类型
- optional uint32 OperateType = 11; // 操作类型:
- optional uint32 OrderSrc = 12; // 单据来源
- optional uint64 OperatorID = 13; // 操作员账号ID
- optional double OrderPrice = 14; // 委托价格
- optional uint64 OrderQty = 15; // 委托数量
- optional uint32 BuyOrSell = 16; // 买卖方向
- optional uint32 PriceMode = 17; // 取价方式
- optional uint32 TimevalidType = 18; // 时间有效类型
- optional uint32 TriggerType = 19; // 预埋单触发类型
- optional double TriggerPrice = 20; // 预埋单触发价格
- optional uint32 TriggerOperator = 21; // 触发条件-1:
- optional uint64 RelatedID = 22; // 关联单号
- optional string ServiceTime = 23; // 服务端时间
- }
- // 币币兑换委托应答
- message CoinExchangeOrderRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 OrderID = 4; // 一级生成的订单号
- optional string OrderTime = 5; // 接收委托交易的时间
- }
- // 法币交易委托请求
- message CoinC2COrderReq {
- optional MessageHead Header = 1;
- optional string ClientSerialNo = 2; // 客户端流水号
- optional string ClientOrderTime = 3; // 客户端委托时间
- optional uint32 ClientType = 4; // 终端类型
- optional uint64 LoginID = 5; // 登陆账号
- optional uint32 TradeCurrencyID = 6; // 交易货币ID
- optional uint32 PayCurrencyID = 7; // 支付货币ID
- optional uint64 AccountID = 8; // 交易账号
- optional uint32 MarketID = 9; // 市场ID
- optional uint32 ListType = 10; // 摘挂类型
- optional uint32 BuyOrSell = 11; // 买卖方向
- optional double OrderPrice = 12; // 委托价格
- optional uint64 OrderQty = 13; // 委托数量
- optional uint32 DelistLimitType = 14; // 摘牌限制方式
- optional uint32 DelistLimitMinValue = 15; // 摘牌限制最小值
- optional uint32 DelistLimitMaxValue = 16; // 摘牌限制最小值
- optional string PayModels = 17; // 支持的支付方式
- optional string PayInfoIDs = 18; // 支付信息IDs(卖)
- optional uint32 ValidType = 19; // 时间有效类型
- optional string ValidTime = 20; // 有效期限
- optional uint32 OrderSrc = 21; // 单据来源
- optional uint64 OperatorID = 22; // 操作员账号ID
- optional uint64 RelatedID = 23; // 关联单号
- optional string ServiceTime = 24; // 服务端时间
- }
- // 法币交易委托应答
- message CoinC2COrderRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 OrderID = 4; // 一级生成的订单号
- optional string OrderTime = 5; // 接收委托交易的时间
- }
- // 法币交易撤单请求
- message CoinC2CCancelReq {
- optional MessageHead Header = 1;
- optional string ClientSerialNo = 2; // 客户端流水号
- optional string ClientOrderTime = 3; // 客户端委托时间
- optional uint32 ClientType = 4; // 终端类型
- optional uint32 OperateType = 5; // 操作类型
- optional uint64 OldOrderId = 6; // 原委托单号
- optional uint64 AccountID = 7; // 交易账号
- optional uint32 MarketID = 8; // 市场ID
- optional uint32 OrderSrc = 9; // 单据来源
- optional uint64 OperatorID = 10; // 操作员账号ID
- }
- // 法币交易撤单应答
- message CoinC2CCancelRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ExchActionID = 4; // 交易所操作号
- optional string OrderTime = 5; // 接收委托交易的时间
- }
- // 通道锁仓请求
- message ChannelLockReq {
- optional MessageHead Header = 1;
- optional string ClientSerialNo = 2; // 客户端流水号
- optional string ClientOrderTime = 3; // 客户端委托时间
- optional uint32 ClientType = 4; // 终端类型
- optional uint64 LoginID = 5; // 登陆账号
- optional uint64 AccountID = 6; // 交易账号
- optional uint32 GoodsID = 7; // 商品ID
- optional uint32 MarketID = 8; // 市场ID
- optional uint64 OperatorID = 9; // 操作员账号ID
- optional uint64 ActiveInfoID = 10; // 锁仓活动ID
- optional uint64 Qty = 11; // 锁仓数量
- optional double OrderPrice = 12; // 当前价格
- optional uint64 GiftQty = 13; // 赠送数量
- optional string StopDate = 14; // 锁仓结束时间(格式YYYY-MM-DD)
- optional string IDCardPhotoURL = 15; // 身份证地址
- optional string SignatureURL = 16; // 电子签名地址
- }
- // 通道锁仓应答
- message ChannelLockRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 OrderID = 4; // 一级生成的订单号
- optional string OrderTime = 5; // 接收委托交易的时间
- }
- // 通道撤销锁仓请求
- message ChannelCancelLockReq {
- optional MessageHead Header = 1;
- optional string ClientSerialNo = 2; // 客户端流水号
- optional string ClientOrderTime = 3; // 客户端委托时间
- optional uint32 ClientType = 4; // 终端类型
- optional uint64 LoginID = 5; // 登陆账号
- optional uint64 AccountID = 6; // 交易账号
- optional uint64 OperatorID = 7; // 操作员账号ID
- optional uint64 OrderID = 8; // 锁仓单据ID
- }
- // 通道撤销锁仓应答
- message ChannelCancelLockRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 OrderID = 4; // 一级生成的订单号
- optional string OrderTime = 5; // 接收委托交易的时间
- }
- // 划转信息
- message ChannelTransferInfo {
- optional uint64 TransferAccountID = 1; // 划转账号
- optional uint64 TransferQty = 2; // 划转数量
- }
- // 通道审核锁仓请求
- message ChannelAuditLockReq {
- optional MessageHead Header = 1;
- optional uint64 OrderID = 2; // 锁仓单据ID
- optional string ClientOrderTime = 3; // 管理端操作时间
- optional uint64 AccountID = 4; // 交易账号
- optional uint64 OperatorID = 5; // 操作员账号ID
- optional uint32 OperatorType = 6; // 操作类型(通过或拒绝)
- optional string Remark = 7; // 备注
- repeated ChannelTransferInfo TransferInfos = 8; // 划转信息
- }
- // 通道审核锁仓应答
- message ChannelAuditLockRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 OrderID = 4; // 一级生成的订单号
- }
- // 通道解锁锁仓请求
- message ChannelUnlockLockReq {
- optional MessageHead Header = 1;
- optional uint64 OrderID = 2; // 锁仓单据ID
- optional string ClientOrderTime = 3; // 管理端操作时间
- optional uint64 AccountID = 4; // 交易账号
- optional uint64 OperatorID = 5; // 操作员账号ID
- optional string Remark = 6; // 备注
- }
- // 通道解锁锁仓应答
- message ChannelUnlockLockRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 OrderID = 4; // 一级生成的订单号
- }
- // 场外成交核单请求
- message ChannelOutsideTradeReq {
- optional MessageHead Header = 1;
- required uint64 OrderID = 2; // 单据ID
- optional string ClientOrderTime = 3; // 管理端操作时间
- optional uint64 AccountID = 4; // 交易账号
- optional uint64 OperatorID = 5; // 操作员账号ID
- required double TradePrice = 6; // 成交价
- }
- // 场外成交核单应答
- message ChannelOutsideTradeRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 OrderID = 4; // 单据ID
- }
- // 供货商冻结头寸增加请求
- message VendorAddFreezePositionReq {
- optional MessageHead Header = 1;
- optional uint64 AccountID = 2; // 交易账号
- optional uint32 GoodsID = 3; // 商品ID
- optional uint64 AddQty = 4; // 增加数量
- optional string ClientTicket = 5; // 客户端流水号
- }
- // 供货商冻结头寸增加响应
- message VendorAddFreezePositionRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string ClientTicket = 4; // 客户端流水号
- }
- // 供货商解冻头寸审核通过请求
- message VendorUnfreezeAuditPassReq {
- optional MessageHead Header = 1;
- optional uint64 ReqID = 2; // 申请单号
- optional string ClientTicket = 3; // 客户端流水号
- }
- // 供货商解冻头寸审核通过响应
- message VendorUnfreezeAuditPassRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ReqID = 4; // 申请单号
- optional string ClientTicket = 5; // 客户端流水号
- }
- // 商品转移信息
- message GoodsTransferInfo {
- optional uint64 OutAccountID = 1; // 转出方交易账号
- optional uint64 InAccountID = 2; // 转入方交易账号
- optional uint32 GoodsID = 3; // 商品ID
- optional uint64 Qty = 4; // 数量
- optional double Price = 5; // 价格
- optional double CostPrice = 6; // 成本价
- optional uint32 IsFreeze = 7; // 是否冻结0:不冻结1:冻结
- optional uint32 FreezeDays = 8; // 冻结天数
- optional uint64 FreezePosQty = 9; // 冻结头寸数量(回购接口使用)
- optional uint64 TradePosQty = 10; // 交易头寸数量(回购接口使用)
- }
- // 商品配售请求
- message GoodsRationReq {
- optional MessageHead Header = 1;
- repeated GoodsTransferInfo RationInfos = 2; // 配售信息集合
- optional string ClientTicket = 3; // 客户端流水号
- }
- // 商品配售响应
- message GoodsRationRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string ClientTicket = 4; // 客户端流水号
- }
- // 商品转让请求
- message GoodsTransferReq {
- optional MessageHead Header = 1;
- repeated GoodsTransferInfo TransferInfos = 2; // 转让信息集合
- optional string ClientTicket = 3; // 客户端流水号
- }
- // 商品转让响应
- message GoodsTransferRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string ClientTicket = 4; // 客户端流水号
- }
- // 商品回购请求
- message GoodsBuyBackReq {
- optional MessageHead Header = 1;
- repeated GoodsTransferInfo BuyBackInfos = 2; // 回购信息集合
- optional string ClientTicket = 3; // 客户端流水号
- }
- // 商品回购响应
- message GoodsBuyBackRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string ClientTicket = 4; // 客户端流水号
- }
- // 商品提货请求
- message GoodsPickupReq {
- optional MessageHead Header = 1;
- optional uint64 AccountID = 2; // 交易账号
- optional uint32 GoodsID = 3; // 商品ID
- optional uint64 Qty = 4; // 提货数量
- optional string ReciverName = 5; // 提货人姓名
- optional uint32 CardTypeId = 6; // 提货人证件类型
- optional string CardNum = 7; // 提货人证件号码
- optional string PhoneNum = 8; // 提货人联系方式
- optional uint32 TakeMode = 9; // 提货方式-2:自提
- optional string Address = 10; // 提货人详细地址
- optional string TakeRemark = 11; // 提货备注
- optional string ClientTicket = 12; // 客户端流水号
- }
- // 商品提货响应
- message GoodsPickupRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string ClientTicket = 4; // 客户端流水号
- }
- // 止盈止损请求
- message ChannelSPSLOrderReq {
- optional MessageHead Header = 1;
- optional uint32 ClientType = 2; // 终端类型
- optional uint64 LoginID = 3; // 登陆账号
- optional uint64 AccountID = 4; // 交易账号
- optional uint32 GoodsID = 5; // 商品ID
- optional uint32 MarketID = 6; // 市场ID
- optional int32 ValidType = 7; // 有效类型:1-当日有效
- optional uint32 OperateType = 8; // 操作类型:1-
- optional uint32 OrderSrc = 9; // 单据委托来源-1:客户端
- optional uint64 OrderQty = 10; // 委托数量
- optional uint32 BuyOrSell = 11; // 买卖方向(买卖-0:买
- optional uint64 RelatedID = 12; // 关联单号(撤单时填写)
- optional double SpPrice = 13; // 止盈价格
- optional double SlPrice = 14; // 止损价格
- optional uint32 PriceType = 15; // 价格类型:1-
- optional uint32 TriggerType = 16; // 触发条件:1-
- }
- // 止盈止损应答
- message ChannelSPSLOrderRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 OrderID = 4; // 一级生成的订单号
- }
- // 交易跟单请求
- message ChannelFollowReq {
- optional MessageHead Header = 1;
- optional uint64 LoginID = 2; // 登陆账号
- optional string GoodsCode = 3; // 商品代码
- optional double OrderPrice = 4; // 委托价格
- optional uint64 OrderQty = 5; // 委托数量
- optional uint32 BuyOrSell = 6; // 买卖方向(买卖-0:买
- optional uint32 ChannelBuildType = 7; // 下单类型(开平标志-0:无
- optional uint32 CloseType = 8; // 平仓方式(平仓方式-0:无
- optional uint32 PriceMode = 9; // 取价方式-1:市价
- }
- // 交易跟单应答
- message ChannelFollowRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- }
- // 管理员清仓请求
- message ManageClearPosReq {
- optional MessageHead Header = 1;
- optional uint64 AccountID = 2; // 交易账号
- }
- // 管理员清仓响应
- message ManageClearPosRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 AccountID = 4; // 交易账号
- }
- // 交易状态改变请求
- message TradeStatusChangeReq {
- optional MessageHead Header = 1;
- repeated uint64 AccountID = 2; // 交易账号
- optional uint32 TradeStatus = 3; // 交易状态,1-正常2-受限3-冻结
- }
- // 交易状态改变响应
- message TradeStatusChangeRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- }
- // 账户操作子指令
- message SubCommand {
- optional uint32 CommandCode = 1; // 子指令操作码
- optional bytes CommandStrings = 2; // 子指令流
- }
- // 账户操作指令请求
- message AccountCommandReq {
- optional MessageHead Header = 1;
- optional uint64 UserId = 2; // 用户ID
- optional uint64 AccountId = 3; // 交易账号
- optional uint32 BusinessCode = 4; // 业务编号
- optional uint64 RelatedOrderId = 5; // 关联单号
- optional uint64 TradeId = 6; // 成交单号
- repeated SubCommand SubCommands = 7; // 子指令集合
- optional uint64 SerialNumber = 8; // 流水号
- optional string TradeDate = 9; // 交易日
- }
- // 账户操作指令应答
- message AccountCommandRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 UserId = 4; // 用户ID
- optional uint64 AccountId = 5; // 交易账号
- optional uint32 BusinessCode = 6; // 业务编号
- optional uint64 RelatedOrderId = 7; // 关联单号
- optional uint64 TradeId = 8; // 成交单号
- repeated SubCommand SubCommands = 9; // 子指令应答集合
- optional uint64 SerialNumber = 10; // 流水号
- optional string TradeDate = 11; // 交易日
- }
- // 资金操作指令
- message FundOperationCmd {
- optional uint64 AccountId = 1; // 交易账号
- optional uint32 OperateType = 2; // 变更类型
- optional double ChangeAmount = 3; // 变更金额
- optional uint32 RelatedGoodsId = 4; // 关联商品
- optional uint32 RelatedMarketId = 5; // 关联市场
- optional uint64 SubOrderIndex = 6; // 子指令序号
- optional uint32 OpAmountType = 7; // 操作资金类型
- }
- // 持仓操作指令
- message PositionOperationCmd {
- optional uint64 AccountId = 1; // 交易账号
- optional uint32 GoodsId = 2; // 商品ID
- optional uint32 BuyOrSell = 3; // 买卖方向
- optional uint32 OperateType = 4; // 变更类型
- optional int64 ChangeQty = 5; // 变更数量
- optional double ChangeAmount = 6; // 变更金额
- optional uint64 SubOrderIndex = 7; // 子指令序号
- optional uint32 OpPositionType = 8; // 操作头寸类型
- }
- // 账户资金信息请求
- message AccountFundInfoReq {
- optional MessageHead Header = 1;
- optional uint64 OrderId = 2; // 查询委托单号
- optional uint64 AccountId = 3; // 查询资金账号
- optional uint32 QueryBitMask = 4; // 查询位掩码
- }
- // 账户资金信息响应
- message AccountFundInfoRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 OrderId = 4; // 查询委托单号
- optional uint64 AccountId = 5; // 查询资金账号
- optional double AvailableMargin = 6; // 可用保证金,查询位掩码:1
- optional double AvailableOutMoney = 7; // 可出资金,查询位掩码:2
- optional int32 IsCleanAccount = 8; // 是否是干净账户,查询位掩码:4
- }
- // 仓单头寸操作指令
- message WRPositionOperationCmd {
- optional uint32 DeliveryGoodsId = 1; // 交割商品ID
- optional uint32 BrandId = 2; // 品牌ID
- optional uint32 QualityID = 3; // 品质ID
- optional uint32 SpecID = 4; // 规格ID
- optional uint32 WarehouseID = 5; // 仓库ID
- optional uint32 DeliveryMonthID = 6; // 月份ID
- optional uint32 OperateType = 7; // 变更类型
- optional int64 ChangeQty = 8; // 变更数量
- optional uint64 SubOrderIndex = 9; // 子指令序号
- optional uint32 OpPositionType = 10; // 操作头寸类型
- }
- // 仓单订单头寸操作指令
- message TradeWRPositionOperationCmd {
- optional uint64 AccountId = 1; // 资金账号ID
- optional uint32 DeliveryGoodsId = 2; // 交割商品ID
- optional uint32 GoodsID = 3; // 交易合约ID
- optional uint32 BrandId = 4; // 品牌ID
- optional uint32 QualityID = 5; // 品质ID
- optional uint32 SpecID = 6; // 规格ID
- optional uint32 WarehouseID = 7; // 仓库ID
- optional uint32 DeliveryMonthID = 8; // 月份ID
- optional uint32 OperateType = 9; // 变更类型
- optional int64 ChangeQty = 10; // 变更数量
- optional uint64 SubOrderIndex = 11; // 子指令序号
- optional uint32 OpPositionType = 12; // 操作头寸类型
- }
- // 仓单订单头寸汇总查询指令
- message TradeWRPositionQueryCmd {
- optional uint64 AccountId = 1; // 资金账号ID
- optional uint32 GoodsID = 2; // 交易合约ID
- optional int64 AvailableQty = 3; // 可用数量
- }
- // 积分头寸操作指令
- message ScorePositionOperationCmd {
- optional uint64 ScoreTypeId = 1; // 积分类型ID
- optional uint32 OperateType = 2; // 变更类型
- optional int64 ChangeScore = 3; // 变更积分
- optional uint64 SubOrderIndex = 4; // 子指令序号
- optional uint32 OpPositionType = 5; // 操作头寸类型
- }
- // 帐户风控操作指令
- message RiskCtrlOperationCmd {
- optional uint64 AccountId = 1; // 资金账号ID
- optional uint64 RelatedId = 2; // 关联ID
- optional uint32 RelatedType = 3; // 关联类型
- optional uint32 OperateType = 4; // 变更类型
- optional int32 RiskMode = 5; // 风控模式
- optional double TipLine = 6; // 预警线
- optional double WarningLine = 7; // 禁开线
- optional double StopLine = 8; // 止损线
- optional double RecoveryLine = 9; // 恢复线
- optional double TotalAmount = 10; // 总金额
- optional double InvestAmount = 11; // 投资金额
- }
- // 外部账户操作指令请求
- message ExAccountCommandReq {
- optional MessageHead Header = 1;
- optional uint64 UserId = 2; // 用户ID
- optional uint64 AccountId = 3; // 交易账号
- optional uint32 BusinessCode = 4; // 业务编号
- optional uint64 RelatedOrderId = 5; // 关联单号
- optional uint64 TradeId = 6; // 成交单号
- repeated SubCommand SubCommands = 7; // 子指令集合
- }
- // 外部账户操作指令应答
- message ExAccountCommandRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 UserId = 4; // 用户ID
- optional uint64 AccountId = 5; // 交易账号
- optional uint32 BusinessCode = 6; // 业务编号
- optional uint64 RelatedOrderId = 7; // 关联单号
- optional uint64 TradeId = 8; // 成交单号
- repeated SubCommand SubCommands = 9; // 子指令应答集合
- }
- // 资金操作指令
- message ExFundOperationCmd {
- optional uint64 AccountId = 1; // 交易账号
- optional uint32 OperateType = 2; // 变更类型
- optional double ChangeAmount = 3; // 变更金额
- optional uint32 RelatedGoodsId = 4; // 关联商品
- optional uint32 RelatedMarketId = 5; // 关联市场
- optional uint32 ExCurrencyID = 6; // 外部货币ID
- optional double ExChangeAmount = 7; // 外部变更金额
- optional double ExClosePL = 8; // 逐笔平仓明细(账户)
- }
- // 持仓操作指令
- message ExPositionOperationCmd {
- optional uint64 AccountId = 1; // 交易账号
- optional uint32 GoodsId = 2; // 商品ID
- optional uint32 BuyOrSell = 3; // 买卖方向
- optional uint32 OperateType = 4; // 变更类型
- optional int64 ChangeQty = 5; // 变更数量
- optional double ChangeAmount = 6; // 变更金额
- optional int64 OpenQty = 7; // 建仓数量(先平后建用)
- optional int64 CloseQty = 8; // 平仓数量(先平后建用)
- }
- // 期权操作指令
- message OpPositionOperationCmd {
- optional uint64 AccountId = 1; // 交易账号
- optional uint64 TradeId = 2; // 成交单号
- optional uint32 BuyOrSell = 3; // 买卖方向
- optional uint32 OperateType = 4; // 变更类型
- optional int64 ChangeQty = 5; // 变更数量
- optional uint64 SubOrderIndex = 6; // 子指令序号
- optional uint32 OpPositionType = 7; // 操作头寸类型
- }
- // 外部账户分润请求
- message ExAccountDivideReq {
- optional MessageHead Header = 1;
- optional uint64 RelatedOrderId = 2; // 关联单号
- }
- // 外部账户分润请求
- message ExAccountDivideRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 RelatedOrderId = 4; // 关联单号
- }
- // 资金清算更新操作指令
- message SettleUpdateFundOperationCmd {
- optional uint64 AccountID = 1; // 资金账户ID
- optional double UserID = 2; // 用户ID
- optional double CurrencyID = 3; // 货币ID
- optional double Balance = 4; // 期初余额
- optional double OriFreezeMargin = 5; // 期初冻结保证金
- optional double OriUsedMargin = 6; // 期初占用保证金
- optional double OriOtherFreezeMargin = 7; // 期初其他冻结保证金
- optional double OriFreezeCharge = 8; // 期初手续费冻结
- optional double OriMortgageCredit = 9; // 期初授信金额
- optional double OriOtherCredit = 10; // 期初其它授信金额
- optional double OriOutAmountFreeze = 11; // 期初出金冻结
- optional double InAmount = 12; // 今日入金金额(包括三方入金)
- optional double OutAmount = 13; // 今日出金金额(包括三方出金)
- optional double PayCharge = 14; // 今日手续费支出
- optional double ClosePL = 15; // 今日平仓盈亏
- optional double CreditIncrease = 16; // 今日授信增加
- optional double CreditDecrease = 17; // 今日授信减少
- optional double OtherCreditIncrease = 18; // 今日其它授信增加
- optional double OtherCreditDecrease = 19; // 今日其它授信减少
- optional double TransferAmount = 20; // 今日划转金额
- optional double OtherPay = 21; // 其他支出
- optional double OtherIncome = 22; // 其他收入
- optional double ThirdinAmount = 23; // 今日三方入金
- optional double ThirdoutAmount = 24; // 今日三方出金
- }
- // 持仓清算更新操作指令
- message SettleUpdatePositionOperationCmd {
- optional uint64 AccountId = 1; // 交易账号
- optional uint32 GoodsId = 2; // 商品ID
- optional uint64 BuyPositionQty = 3; // 买期初持仓数量
- optional double BuyHolderAmount = 4; // 买持仓期初总金额
- optional uint64 BuyOpenTotalQty = 5; // 买开仓总数量
- optional uint64 BuyCloseTotalQty = 6; // 买平仓总数量
- optional uint64 SellPositionQty = 7; // 卖期初持仓数量
- optional double SellHolderAmount = 8; // 卖持仓期初总金额
- optional uint64 SellOpenTotalQty = 9; // 卖开仓总数量
- optional uint64 SellCloseTotalQty = 10; // 卖平仓总数量
- }
- // 仓单头寸清算更新操作指令
- message SettleUpdateWRPositionOperationCmd {
- optional uint64 AccountID = 1; // 交易账号
- optional uint32 DeliveryGoodsID = 2; // 交割商品ID
- optional uint64 WRFactorTypeID = 3; // 仓单要素类型ID
- optional uint32 BrandID = 4; // 品牌ID
- optional uint32 QualityID = 5; // 品质ID
- optional uint32 SpecID = 6; // 规格ID
- optional uint32 WarehouseID = 7; // 仓库ID
- optional uint32 DeliveryMonthID = 8; // 月份ID
- optional uint64 IncreaseQty = 9; // 今日增加数量
- optional uint64 DecreaseQty = 10; // 今日减少数量
- }
- // 订单仓单头寸清算更新操作指令
- message SettleUpdateTWRPositionOperationCmd {
- optional uint64 AccountID = 1; // 交易账号
- optional uint32 GoodsID = 2; // 商品ID
- optional uint32 DeliveryGoodsID = 3; // 交割商品ID
- optional uint64 WRFactorTypeID = 4; // 仓单要素类型ID
- optional uint32 BrandID = 5; // 品牌ID
- optional uint32 QualityID = 6; // 品质ID
- optional uint32 SpecID = 7; // 规格ID
- optional uint32 WarehouseID = 8; // 仓库ID
- optional uint32 DeliveryMonthID = 9; // 月份ID
- optional uint64 IncreaseQty = 10; // 今日增加数量
- optional uint64 DecreaseQty = 11; // 今日减少数量
- }
- // 积分头寸清算更新操作指令
- message SettleUpdateScorePositionOperationCmd {
- optional uint32 UserID = 1; // 用户ID
- optional uint64 ScoreTypeId = 2; // 积分类型ID
- optional uint32 OriScore = 3; // 期初积分
- optional uint32 TodayIncrease = 4; // 今日增加
- optional uint32 TodayDecrease = 5; // 今日减少
- }
- // 通用查询请求
- message QueryCommonReq {
- optional MessageHead Header = 1; // 消息头
- optional QueryReqPageInfo PageInfo = 2; // 查询分页信息
- optional string Statement = 3; // StatmentId
- optional int32 StatementFlag = 4; // StatmentId查询标记,不填写默认为=
- repeated ParamValue ParamValues = 5; // 参数列表
- optional int32 ParamValuesFlag = 6; // 参数列表查询标记,不填写默认为=
- }
- // 通用查询参数信息
- message ParamValue {
- optional string Key = 1; // 参数名
- optional string Value = 2; // 参数值
- }
- // 字段信息
- message FieldInfo {
- optional string FieldName = 1; // 字段名
- optional string FieldType = 2; // 字段类型
- }
- // 行数据
- message RowValue {
- repeated string RowValues = 1; // 行数据
- }
- // 通用查询应答
- message QueryCommonRsp_ {
- optional int32 RowNum = 1; // 字段名
- optional int32 ColumnNum = 2; // 字段类型
- repeated FieldInfo FieldInfos = 3; // 字段信息
- repeated RowValue RowValues = 4; // 行数据
- }
- message QueryCommonRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional QueryRspPageInfo PageInfo = 4; // 查询结果分页信息
- repeated QueryCommonRsp_ Rsps = 5; // 查询结果集
- }
- // 获取最后更新时间请求
- message LastUpdateTimeReq {
- optional MessageHead Header = 1;
- }
- // 获取最后更新时间应答
- message LastUpdateTimeRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 DirctionaryUTime = 4; // 枚举常量字典最后更新时间
- optional uint64 ErrorcodeUTime = 5; // 错误码字典最后更新时间
- optional uint64 MarketsUTime = 6; // 市场更新时间
- optional uint64 GoodsUTime = 7; // 商品更新时间
- optional uint64 ConfigUTime = 8; // 终端配置参数更新时间
- optional uint64 RiskMsgUTime = 9; // 风险协议书更新时间
- optional string TradeDate = 10; // 交易日;终端根据交易日获取市场的当日运行计划
- optional uint64 MenuUTime = 11; // 菜单更新时间
- optional uint64 DvGoodsUTime = 12; // 交割商品更新时间
- }
- // 市场查询请求
- message MarketsQueryReq {
- optional MessageHead Header = 1;
- optional uint64 MarketsUTime = 2; // 市场更新时间
- }
- // 市场查询应答
- message MarketsQueryRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- repeated MarketsInfo MarketsList = 4; // 市场列表结果集
- }
- // 市场信息
- message MarketsInfo {
- optional uint32 MarketID = 1; // 市场id
- optional string MarketName = 2; // 市场名称
- optional uint32 TradeMode = 3; // 交易模式枚举类型
- optional uint32 TradeProperty = 4; // 收益权,所有权
- optional uint32 PremiumQuoteMode = 5; // 权利金报价
- optional uint32 AuctionWRType = 6; // 竞拍仓单类型
- optional uint32 SellListingAuditFlag = 7; // 卖挂牌是否需要审核(仓单贸易)
- optional uint32 hasrebate = 8; // 是否返利
- optional double rebateratio = 9; // 返利比例
- }
- // 商品查询请求
- message GoodsQueryReq {
- optional MessageHead Header = 1;
- optional uint64 GoodsUTime = 2; // 商品更新时间
- }
- // 商品查询应答
- message GoodsQueryRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- repeated GoodsInfo GoodsList = 4; // 商品列表
- }
- // 商品信息
- message GoodsInfo {
- optional uint32 GoodsId = 1; // 商品Id
- optional string GoodsCode = 2; // 商品代码
- optional string GoodsName = 3; // 商品名称
- optional uint32 MarketID = 4; // 商品所属市场ID
- optional string ListingDate = 5; // 上市时间
- optional string LastTradeDate = 6; // 最后交易日期
- optional string DelistingDate = 7; // 商品退市时间
- optional uint32 DecimalPlace = 8; // 价格小数位
- optional string Currency = 9; // 报价货币
- optional double AgreeUnit = 10; // 每手乘数(合约单位)
- optional string GoodsUnit = 11; // 商品单位,直接返回单位值
- optional uint32 DeliveryFlag = 12; // 交割标志0:不交割1:要交割
- optional uint32 DeliveryGoodsId = 13; // 交割商品Id
- optional string DeliveryGoodsCode = 14; // 交割商品代码
- optional string DeliveryGoodsName = 15; // 交割商品名称
- optional string DeliveryGoodsUnit = 16; // 交割商品单位
- optional uint32 XDeliveryRatio = 17; // 主辅商品比的主商品手数
- optional uint32 PDeliveryRatio1 = 18; // 主辅商品比的辅助商品手数1
- optional uint32 PDeliveryRatio2 = 19; // 主辅商品比的辅助商品手数2
- optional uint32 MinDeliveryQty = 20; // 最小交割手数
- optional uint32 P1Type = 21; // 1-商品价格(goodsid有值)2-固定值(value填值)
- optional uint32 P2Type = 22; // 辅助合约2价格方式
- optional double P1value = 23; // 辅助合约价格
- optional double P2value = 24; // 辅助合约2价格
- optional uint32 PGoodsID1 = 25; // 辅助交易商品ID
- optional uint32 PGoodsID2 = 26; // 辅助商品2
- optional string BeginDate = 27; // 交割起始日期
- optional string EndDate = 28; // 交割结束日期
- optional uint32 Deliverymode = 29; // 交割方式
- optional uint32 Performancemode = 30; // 履约方式
- optional uint32 Optiontype = 31; // 期权类型
- optional uint64 Pricefator = 32; // 价格取整系数
- optional uint64 Stepvalue = 33; // 档位间矩
- optional uint32 Cuppricegear = 34; // 看涨向上档位
- optional uint32 Cdownpricegear = 35; // 看涨向下档位
- optional uint32 Puppricegear = 36; // 看跌向上档位
- optional uint32 Pdownpricegear = 37; // 看跌向下档位
- optional uint32 Expiretype = 38; // 行权日类型
- optional uint32 Expirecycle = 39; // 行权周期
- optional string Expiredate = 40; // 行权日
- repeated GoodsRule GoodsRuleList = 41; // 商品规则列表
- repeated GoodsMarginConfig GoodsMarginConfigList = 42; // 分类保证金列表
- repeated PriceMove GoodsPMList = 43; // 商品包含要素列表
- optional uint32 Rratio = 44; // 兑换系数R
- optional uint32 DeliveryPriceRule = 45; // 1:申报时价格2:成交时价格
- optional uint32 DelistingMode = 46; // 1:退市平仓2:退市交收3:不处理(仅期权)
- optional uint32 GoodsStatus = 47; // 3:上市7:待退市
- optional uint32 QuoteMinUnit = 48; // 行情最小变动单位
- optional uint32 PremiumAutoMode = 49; // 权利金自动方式1:比率2.固定
- optional double PremiumAutoValue = 50; // 权利金自动值
- optional uint32 GroupID = 51; // 所属商品组id
- optional uint32 IsBuyLimited = 52; // 是否限制建仓量
- optional uint32 ClosePriceMode = 53; // 强平价格方式
- optional double ClosePriceParam = 54; // 强平最新价浮动比例
- optional uint32 QtyDecimalPlace = 55; // 成交量小数位
- optional uint32 GoodsQuoteType = 56; // 合约报价类型
- optional uint32 GoodsCurrencyid = 57; // 合约货币ID
- optional uint32 Currencyid = 58; // 报价货币ID
- optional uint32 Lotsize = 59; // 最小交易数量
- optional uint32 QuoteGear = 60; // 行情档位(1-10)
- optional uint32 ShowBrokerFlag = 61; // 是否显示买卖经纪盘-0:不显示
- optional uint32 GoodsType = 62; // 商品类型
- optional uint32 InnerDealMode = 63; // 内部成交方式[通道交易]-1:净头寸
- }
- // 枚举常量字典查询请求
- message DictionaryQueryReq {
- optional MessageHead Header = 1;
- optional uint64 DirctionaryUTime = 2; // 枚举常量字典最后更新时间
- }
- // 枚举常量字典查询应答
- message DictionaryQueryRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- repeated DictionaryInfo DictionaryList = 4; // 枚举列表
- }
- // 枚举信息
- message DictionaryInfo {
- optional string FieldCode = 1; // 枚举类型代码
- optional string FieldName = 2; // 枚举类型名称
- optional string Key = 3; // 枚举值
- optional string Value = 4; // 枚举名称
- optional string Parma1 = 5; // 币种小数位
- }
- // 错误码字典查询请求
- message ErrorCodeQueryReq {
- optional MessageHead Header = 1;
- optional uint64 ErrorcodeUTime = 2; // 错误码字典最后更新时间
- }
- // 错误码字典查询应答
- message ErrorCodeQueryRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- repeated ErrorCodeInfo ErrorCodeList = 4; // 错误码列表
- }
- // 错误码信息
- message ErrorCodeInfo {
- optional string ErrorCode = 1; // 错误码
- optional string ErrorMsg = 2; // 提示信息
- }
- // 终端系统参数查询请求
- message ConfigQueryReq {
- optional MessageHead Header = 1;
- optional uint64 ConfigUTime = 2; // 终端配置参数更新时间
- }
- // 终端系统参数查询应答
- message ConfigQueryRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- repeated ConfigInfo ConfigInfoList = 4; // 参数列表
- }
- // 参数信息
- message ConfigInfo {
- optional string ParamCode = 1; // 参数代码
- optional string ParamName = 2; // 参数名称
- optional string ParamValue = 3; // 参数值
- optional string ParamRemark = 4; // 说明
- }
- // 市场运行计划查询请求
- message MarketRunQueryReq {
- optional MessageHead Header = 1;
- optional string TradeDate = 2; // 交易日
- }
- // 市场运行计划查询应答
- message MarketRunQueryRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string TradeDate = 4; // 交易日
- repeated MarketRun MarketRunList = 5; // 市场及其日计划列表
- }
- // 市场及其日计划信息
- message MarketRun {
- optional uint32 MarketId = 1; // 市场id
- repeated DayRun DayRunList = 2; // 市场日运行计划表
- }
- // 市场日运行计划信息
- message DayRun {
- optional uint32 TradeWeekDay = 1; // 交易归属日,星期几
- optional uint32 RunStep = 2; // 运行阶段
- optional uint32 StartWeekDay = 3; // 起始周几
- optional string StartTime = 4; // 起始时间
- optional uint32 EndWeekDay = 5; // 结束周几
- optional string EndTime = 6; // 结束时间
- }
- // 风险协议书查询请求
- message RiskTipQueryReq {
- optional MessageHead Header = 1;
- optional uint64 RiskMsgUTime = 2; // 风险协议书更新时间
- }
- // 风险协议书查询应答
- message RiskTipQueryRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string TipTitle = 4; // 标题
- optional string TipMsg = 5; // 内容
- }
- // 登录查询请求
- message LoginQueryReq {
- optional MessageHead Header = 1;
- optional uint64 LoginID = 2; // 登陆账号id
- optional string QueryItem = 3; // 不填返回全部结果集,填写后表示按需查询,多个以“,”隔开1-账号信息2-资金账户列表3-
- }
- // 登录查询应答
- message LoginQueryRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional AccountInfo AccountInfo = 4; // 账号信息
- repeated TAAccountAll TAAccountList = 5; // 资金账户列表
- repeated GoodsRuleAndFee GoodsRuleAndFeeList = 6; // 商品交易规则和费用规则列表
- repeated ParamValue ParamValues = 7; // 时间戳集合
- optional uint32 ServerLastNoticeId = 8; // 最大通知id
- }
- // 账户信息
- message AccountInfo {
- optional uint32 UserID = 1; // 用户ID
- optional uint32 UserType = 2; // 账户类型
- optional uint32 ParentUserID = 3; // 所属机构ID
- optional string AccountName = 4; // 账户名称
- optional string CustomerName = 5; // 用户名称(签约用)
- optional uint32 UserInfoType = 6; // 1:个人2:企业(签约用)
- optional uint32 CardTypeID = 7; // 证件类型(签约用)
- optional string CardNum = 8; // 证件号码(签约用)
- optional string Mobile = 9; // 手机号码(签约用)
- optional uint32 HasAuth = 10; // 是否已实名认证-0:未认证
- optional uint64 MemberUserid = 11; // 所属会员
- }
- // 账户相关信息
- message TAAccountAll {
- optional TaAccountInfo TaAccountInfo = 1; // 资金账户信息
- repeated TradePosition TradePositionList = 2; // 持仓头寸列表
- repeated uint32 MarketsIdList = 3; // 市场id数组
- }
- // 资金账户信息
- message TaAccountInfo {
- optional uint64 AccountId = 1; // 账户id
- optional uint32 TradeStatus = 2; // 交易状态
- optional string Currency = 3; // 币种
- optional uint32 IsMain = 4; // 是否母账户
- optional uint64 ParentAccountID = 5; // 所属母账户
- optional uint32 TAAccountType = 6; // 内、外部
- optional uint64 RelatedMainAccountID = 7; // 关联账户
- optional double Balance = 8; // 期初余额
- optional double CurrentBalance = 9; // 期末余额
- optional double UsedMargin = 10; // 占用保证金
- optional double FreezeMargin = 11; // 冻结保证金
- optional double OtherFreezeMargin = 12; // 其他冻结保证金
- optional double FreezeCharge = 13; // 手续费冻结
- optional double MortgageCredit = 14; // 授信金额
- optional double OtherCredit = 15; // 其它授信金额
- optional double OutAmountFreeze = 16; // 出金冻结
- optional double InAmount = 17; // 今日入金
- optional double OutAmount = 18; // 今日出金
- optional double PayCharge = 19; // 今日手续费支出
- optional double ClosePL = 20; // 今日平仓盈亏
- optional double CreditIncrease = 21; // 今日授信增加
- optional double CreditDecrease = 22; // 今日授信减少
- optional double OtherCreditIncrease = 23; // 今日其它授信增加
- optional double OtherCreditDecrease = 24; // 今日其它授信减少
- optional double TransferAmount = 25; // 今日划转金额
- optional double OtherPay = 26; // 其他支出
- optional double OtherIncome = 27; // 其他收入
- optional double OutThreshold = 28; // 出金阀值
- optional uint32 IsMarketAccount = 29; // 是否机构接单账号0:不是1:是
- optional uint32 Currencyid = 30; // 报价货币ID
- }
- // 持仓头寸信息
- message TradePosition {
- optional uint32 GoodsId = 1; // 商品id
- optional uint32 BuyFrozenQty = 2; // 买持仓冻结
- optional uint32 BuyOtherFrozenQty = 3; // 买持仓其他冻结
- optional uint32 BuyCurPositionQty = 4; // 买当前持仓总数量
- optional double BuyCurHolderAmount = 5; // 买当前持仓总金额
- optional uint32 SellFrozenQty = 6; // 卖持仓冻结
- optional uint32 SellOtherFrozenQty = 7; // 卖持仓其他冻结
- optional uint32 SellCurPositionQty = 8; // 卖当前持仓总数量
- optional double SellCurHolderAmount = 9; // 卖当前持仓总金额
- }
- // 商品规则和费用
- message GoodsRuleAndFee {
- optional int32 GoodsID = 1; // 商品ID
- optional int32 CustomerTypeID = 2; // 保证金类别枚举值
- repeated GoodsRule GoodsRuleList = 3; // 商品规则列表
- }
- // 商品规则类型
- message GoodsRule {
- optional int32 Ruleid = 1; // 规则id
- optional int32 GoodsID = 2; // 商品ID
- optional string RuleName = 3; // 规则名称
- optional double ParamValue = 4; // 参数值
- }
- // 商品保证金信息
- message GoodsMarginConfig {
- optional uint32 GoodsID = 1; // 商品id
- optional uint32 CustomerTypeID = 2; // 投资者客户类别
- optional uint32 MarginAlgorithm = 3; // 保证金计算方式
- optional double MarketMarginValue = 4; // 即市保证金值
- optional double ReckonMarginValue = 5; // 结算保证金值
- optional uint32 IsDefault = 6; // 是否默认0:否1:是
- }
- // 未读通知查询请求
- message NoticeQueryReq {
- optional MessageHead Header = 1;
- optional uint64 LoginID = 2; // Uint64
- optional uint32 LastNoticeId = 3; // 最后一条通知id
- optional uint32 MsgType = 4; // 1:公告通知2:系统消息(风控)
- }
- // 未读通知查询应答
- message NoticeQueryRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- repeated NoticeInfo NoticeInfoList = 4; // 通知列表
- }
- // 未读通知查询应答
- message NoticeInfo {
- optional uint32 NoticeId = 1; // id
- optional string NoticeTitle = 2; // 标题
- optional string NoticeContent = 3; // 内容
- optional uint64 NoticeTime = 4; // 发布时间,填计划发布时间
- optional uint32 NoticeType = 5; // 类型
- }
- // 菜单查询
- message FuncMenuReq {
- optional MessageHead Header = 1;
- optional uint64 MenuUTime = 2; // 菜单最后更新时间
- }
- // 菜单查询查询应答
- message FuncMenuRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- repeated FuncMenu FuncMenuList = 4; // 菜单列表
- }
- // 菜单权限
- message FuncMenu {
- optional string FuncMenuName = 1; // 功能菜单名称
- optional string FuncMenuCode = 2; // 功能菜单代码
- optional string Parentfuncmenucode = 3; // 父级菜单代码
- repeated FuncMenu SonMenus = 4; // 子菜单
- }
- // 交割商品查询
- message DeliveryGoodsQueryReq {
- optional MessageHead Header = 1;
- optional uint64 DeliveryGoodsUTime = 2; // 交割商品更新时间
- }
- // 交割商品应答
- message DeliveryGoodsQueryRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- repeated DeliveryGoodsInfo DeliveryGoodsList = 4; // 交割商品结果集
- }
- // 交割商品信息
- message DeliveryGoodsInfo {
- optional uint32 DeliveryGoodsID = 1; // 交割商品ID
- optional string DeliveryGoodsCode = 2; // 交割商品代码
- optional string DeliveryGoodsName = 3; // 交割商品名称
- optional string GoodsUnit = 4; // 交割商品单位
- optional uint32 StandardQty = 5; // 标准数量
- optional double StandardQtyRange = 6; // 标准数量偏差范围
- optional uint32 AuditFlag = 7; // 交割是否需要审核
- repeated PriceMove DeliveryGoodsPMList = 8; // 可选要素列表
- optional uint32 DeliveryGoodsType = 9; // 交割商品类型
- optional uint32 IsSplit = 10; // 是否拆分
- optional uint32 AgreeUnit = 11; // 合约单位
- optional uint32 QtyDecimalPlace = 12; // 成交量小数位
- }
- // 可点选仓单查询
- message DeliveryWRReq {
- optional MessageHead Header = 1;
- optional uint32 GoodId = 2; // 商品id
- optional uint32 DeliveryGoodsId = 3; // 交割商品id
- optional uint32 TradeProperty = 4; // 交易属性
- }
- // 可点选仓单应答
- message DeliveryWRRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- repeated GoodsDeliveryPrice GoodsDeliveryPriceList = 4; // 商品所有升贴水(商品价差列表)
- repeated UserTradeWRPosition AllTradeWRPositionList = 5; // 可点选仓单列表(订单仓单头寸)
- }
- // 商品价差信息
- message GoodsDeliveryPrice {
- optional string PriceMoveType = 1; // 升贴水类型
- optional uint32 PriceMoveID = 2; // 类型对应id
- optional double PriceMoveValue = 3; // 升贴水值
- optional string PriceMoveDesc = 4; // 描述
- }
- // 可点选用户仓单信息
- message UserTradeWRPosition {
- optional uint64 WRUserID = 1; // 持有人ID
- optional string WRUserName = 2; // 持有人名称(机构名称)
- optional uint64 AccountID = 3; // 资金账号ID
- optional uint32 DeliveryGoodsID = 4; // 交割商品ID
- optional uint32 RestQty = 5; // 可点数量
- repeated TradeWRPositionDetail TradeWRPositionDetailList = 6; // 仓单列表(订单仓单头寸)
- }
- // 可点选仓单明细
- message TradeWRPositionDetail {
- optional uint64 WRPositionID = 1; // 仓单头寸ID
- optional uint32 BrandID = 2; // 品牌ID
- optional uint32 QualityID = 3; // 品质ID
- optional uint32 SpecID = 4; // 规格ID
- optional uint32 WarehouseID = 5; // 仓库ID
- optional uint32 DeliveryMonthID = 6; // 月份ID(都是即期的)
- optional uint32 RestQty = 7; // 剩余数量
- }
- // 要素信息
- message PriceMove {
- optional uint32 PriceMoveType = 1; // 要素类型
- optional uint32 PriceMoveID = 2; // 要素id
- optional string PriceMoveDesc = 3; // 要素名称
- }
- // 已签约信息查询请求
- message BankSignReq {
- optional MessageHead Header = 1;
- optional uint64 AccountID = 2; // 资金账户
- optional string CusBankid = 3; // 托管银行ID
- }
- // 已签约信息查询响应
- message BankSignRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 AccountID = 4; // 资金账户
- optional string CusBankid = 5; // 托管银行ID
- repeated BankAccountSign BankSign = 6; // 已签约信息
- }
- // 已签约信息
- message BankAccountSign {
- optional uint64 AccountCode = 1; // 资金账户
- optional string CusBankID = 2; // 托管银行ID
- optional uint32 SignStatus = 3; // 签约状态
- optional string Currency = 4; // 币种
- optional string BankID = 5; // 开户行id
- optional string BankAccountNo = 6; // 银行卡
- optional string BankAccountName = 7; // 开户人名称
- optional uint32 CardType = 8; // 证件类型
- optional string CardNo = 9; // 证件号码
- optional string MobilePhone = 10; // 手机号码
- optional string BankName = 11; // 开户银行名称
- optional string CusBankName = 12; // 托管银行名称
- optional string AccountNameDisp = 13; // 未加密账户名称
- optional string BankAccountNameDisp = 14; // 未加密开户人名称
- optional string CardNoDisp = 15; // 未加密证件号码
- optional string MobilePhoneDisp = 16; // 未加密手机号码
- optional string CusBankTradeDate = 17; // 托管银行交易日期
- optional string ExtendInfo = 18; // JSON格式扩展信息
- optional uint32 CanModifyPhone = 19; // 是否能修改手机
- optional string Bankchildaccount = 20; // 银行子账户
- optional string OpenBankNo = 21; // 支行号
- }
- // 加密信息通用查询请求
- message QueryCommonSenReq {
- optional MessageHead Header = 1; // 消息头
- optional QueryReqPageInfo PageInfo = 2; // 查询分页信息
- optional string Statement = 3; // StatmentId
- optional int32 StatementFlag = 4; // StatmentId查询标记,不填写默认为=
- repeated ParamValue ParamValues = 5; // 参数列表
- optional int32 ParamValuesFlag = 6; // 参数列表查询标记,不填写默认为=
- repeated string SenNames = 7; // 加密字段名‘,’分隔
- optional int32 SenNamesFlag = 8; // 加密字段名‘,’分隔查询标记,不填写默认为=
- }
- // 加密信息通用查询应答
- message QueryCommonSenRsp_ {
- optional int32 RowNum = 1; // 字段名
- optional int32 ColumnNum = 2; // 字段类型
- repeated FieldInfo FieldInfos = 3; // 字段信息
- repeated RowValue RowValues = 4; // 行数据
- }
- message QueryCommonSenRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional QueryRspPageInfo PageInfo = 4; // 查询结果分页信息
- repeated QueryCommonSenRsp_ Rsps = 5; // 查询结果集
- }
- // 外部交易所查询请求
- message ExternalExchangeReq {
- optional MessageHead Header = 1;
- optional uint64 ExUTime = 2; // 更新时间
- }
- // 外部交易所查询应答
- message ExternalExchangeRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- repeated ExternalExchange ExternalExchangeList = 4; // 外部交易所列表
- }
- // 外部交易所信息
- message ExternalExchange {
- optional uint32 AutoID = 1; // 外部交易所id
- optional string ExExchangeCode = 2; // 外部交易所代码
- optional string ExExchangeName = 3; // 外部交易所名称
- optional string IsMarketPrice = 4; // 是否支持市价0:不支持1:支持
- }
- // 商品组查询请求
- message GoodsGroupReq {
- optional MessageHead Header = 1;
- optional uint64 GoodsGroupUTime = 2; // 更新时间
- }
- // 商品组查询应答
- message GoodsGroupRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- repeated GoodsGroup GoodsGroupList = 4; // 商品组(品种)列表
- }
- // 商品组信息
- message GoodsGroup {
- optional uint32 GoodsGroupID = 1; // 商品组id
- optional string GoodsGroupName = 2; // 商品组名称
- optional uint32 MarketID = 3; // 市场id
- optional uint32 ExExchangeID = 4; // 外部交易所id
- optional uint32 CanShort = 5; // 是否允许做空[通道交易]-0:不能做空
- }
- // 行情源分组时段查询请求
- message QuotesourceGroupRunQueryReq {
- optional MessageHead Header = 1;
- optional string TradeDate = 2; // 交易日
- }
- // 行情源分组时段查询应答
- message QuotesourceGroupRunQueryRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string TradeDate = 4; // 交易日
- repeated QuotesourceGroupRun QuotesourceGroupRunList = 5; // 市场及其日计划列表
- }
- // 行情源分组及其日计划信息
- message QuotesourceGroupRun {
- optional uint32 QuotesourceGroupId = 1; // 行情源分组id
- optional uint32 GoodsGroupId = 2; // 商品组id
- optional uint32 MarketId = 3; // 市场id
- repeated DayRun DayRunList = 4; // 行情源分组日运行计划表
- }
- // 交割申报请求
- message DeliveryOrderReq {
- optional MessageHead Header = 1;
- optional string ClientSerialNo = 2; // 客户端流水号
- optional string ClientOrderTime = 3; // 客户端委托时间
- optional uint32 ClientType = 4; // 终端类型
- optional uint64 AccountID = 5; // 交易账号
- optional uint32 XGoodsID = 6; // 主商品ID(交割合约)
- optional uint32 PGoodsID = 7; // 辅助商品ID(辅助合约)
- optional uint32 P2GoodsID = 8; // 辅助商品ID(辅助合约2)
- optional uint32 DeliveryGoodsID = 9; // 交割商品ID
- optional uint64 XQty = 10; // 交割合约数量
- optional uint64 PQty = 11; // 辅助合约数量
- optional uint64 P2Qty = 12; // 辅助合约2数量
- optional uint64 DeliveryQty = 13; // 交割商品仓单数量
- optional uint32 OperateType = 14; // 操作类型:
- optional uint32 OrderSrc = 15; // 单据来源
- optional uint32 OperatorID = 16; // 操作员账号ID
- optional DeliveryOrderDetail DeliveryOrderDetail = 17; // 关联仓单头寸
- optional uint32 TakeMode = 18; // 提货方式
- optional string ReceiverAddress = 19; // 提货地址
- }
- // 交割申报应答
- message DeliveryOrderRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string ClientSerialNo = 4; // 客户端流水号
- repeated DeliveryOrderDetail DeliveryOrderDetails = 5; // 一级生成的订单号
- optional string OrderTime = 6; // 接收委托交易的时间
- }
- // 交割申报仓单明细
- message WrDetail {
- optional uint64 DeliveryOrderID = 1; // 交割申报单Id
- }
- // 交割申报单明细
- message DeliveryOrderDetail {
- optional uint64 AccountID = 1; // 对手方账号
- optional uint64 Qty = 2; // 点选数量
- optional uint32 BrandID = 3; // 品牌
- optional uint32 QualityID = 4; // 品质
- optional uint32 StandardID = 5; // 规格
- optional uint32 WarehouseID = 6; // 仓库
- optional uint32 DeliveryMonthID = 7; // 月份
- optional uint32 TakeMode = 8; // 提货方式
- optional string ReceiverAddress = 9; // 提货地址
- }
- // 交割申请审核通知
- message DeliveryAuditNtf {
- optional MessageHead Header = 1; // 消息头
- optional string AuthorizedDate = 2; // string 审核日期
- optional uint32 OperatorID = 3; // uint32 操作员账号
- optional uint64 DeliveryOrderID = 4; // uint64 交割委托单号
- optional uint32 AuditStatus = 5; // uint32 审核状态
- optional string AuditRemark = 6; // string 审核备注
- }
- // 交割成交通知
- message DeliveryDealNtf {
- optional MessageHead Header = 1; // 消息头
- optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
- optional uint64 OrderID = 3; // uint64 交割委托单号
- optional uint32 GoodsID = 4; // uint32 商品ID
- optional uint64 AccountID = 5; // uint64 账户ID
- optional uint32 BuyOrSell = 6; // uint32 买卖方向
- optional uint64 OrderQty = 7; // uint64 委托数量
- optional string RetDesc = 8; // string 描述
- optional uint32 OperatorID = 9; // uint32 操作员账号ID
- optional uint64 MatchAccountID = 10; // uint64 对方账户ID
- optional uint64 UserID = 11; // uint64 用户ID
- optional uint64 MatchUserID = 12; // uint64 对方用户ID
- optional uint32 DeliveryGoodsID = 13; // uint32 交割商品ID
- optional uint32 TakeMode = 14; // uint32 提货方式
- }
- // 交割撤单请求
- message DeliveryCancelOrderReq {
- optional MessageHead Header = 1;
- optional string ClientSerialNo = 2; // 客户端流水号
- optional string ClientOrderTime = 3; // 客户端委托时间
- optional uint32 ClientType = 4; // 终端类型
- optional uint32 OperateType = 5; // 操作类型:
- optional uint32 OrderSrc = 6; // 单据来源
- optional uint32 OperatorID = 7; // 操作员账号ID
- optional uint64 DeliveryOrderID = 8; // 交割委托单号
- }
- // 交割撤销应答
- message DeliveryCancelOrderRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string ClientSerialNo = 4; // 客户端流水号
- optional string OrderTime = 5; // 接收委托交易的时间
- }
- // 交割请求订单请求
- message DeliveryApplyOrderReq {
- optional MessageHead Header = 1;
- optional string ClientSerialNo = 2; // 客户端流水号
- optional string ClientOrderTime = 3; // 客户端委托时间
- optional uint32 ClientType = 4; // 终端类型
- optional uint64 AccountID = 5; // 交易账号
- optional uint32 XGoodsID = 6; // 主商品ID(交割合约)
- optional uint32 PGoodsID = 7; // 辅助商品ID(辅助合约)
- optional uint32 P2GoodsID = 8; // 辅助商品ID(辅助合约2)
- optional uint32 DeliveryGoodsID = 9; // 交割商品ID
- optional uint64 XQty = 10; // 交割合约数量
- optional uint64 PQty = 11; // 辅助合约数量
- optional uint64 P2Qty = 12; // 辅助合约2数量
- optional uint64 DeliveryQty = 13; // 交割商品仓单数量
- optional uint32 OperateType = 14; // 操作类型
- optional uint32 OrderSrc = 15; // 单据来源
- optional uint32 OperatorID = 16; // 操作员账号ID
- optional uint64 CounterOrderID = 17; // 对手交割申请订单ID
- optional uint32 BrandID = 18; // 品牌
- optional uint32 QualityID = 19; // 品质
- optional uint32 StandardID = 20; // 规格
- optional uint32 WarehouseID = 21; // 仓库
- optional uint32 DeliveryMonthID = 22; // 月份
- optional uint32 IsStandard = 23; // 是否标准交割商品
- optional double PriceMove = 24; // 升贴水
- optional uint32 BuyOrSell = 25; // 买卖方向
- optional int32 ValidType = 26; // 有效类型
- optional string ValidTime = 27; // 有效时间
- optional uint32 TakeMode = 28; // 提货方式
- optional string ReceiverAddress = 29; // 提货地址
- }
- // 交割请求订单应答
- message DeliveryApplyOrderRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string ClientSerialNo = 4; // 客户端流水号
- optional string OrderTime = 5; // 接收委托交易的时间
- optional uint64 DeliveryApplyOrderID = 6; // 交割申请订单ID
- }
- // 交割请求订单撤销请求
- message DeliveryApplyCancelReq {
- optional MessageHead Header = 1;
- optional string ClientSerialNo = 2; // 客户端流水号
- optional string ClientOrderTime = 3; // 客户端委托时间
- optional uint32 ClientType = 4; // 终端类型
- optional uint32 OperateType = 5; // 操作类型
- optional uint32 OrderSrc = 6; // 单据来源
- optional uint32 OperatorID = 7; // 操作员账号ID
- optional uint64 DeliveryApplyOrderID = 8; // 交割申请订单ID
- }
- // 交割请求订单撤销应答
- message DeliveryApplyCancelRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string ClientSerialNo = 4; // 客户端流水号
- optional string OrderTime = 5; // 接收委托交易的时间
- }
- // 圈内会员交割请求订单请求
- message MemberDeliveryApplyOrderReq {
- optional MessageHead Header = 1;
- optional string ClientSerialNo = 2; // 客户端流水号
- optional string ClientOrderTime = 3; // 客户端委托时间
- optional uint32 ClientType = 4; // 终端类型
- optional uint64 AccountID = 5; // 交易账号
- optional uint32 XGoodsID = 6; // 主商品ID(交割合约)
- optional uint32 PGoodsID = 7; // 辅助商品ID(辅助合约)
- optional uint32 P2GoodsID = 8; // 辅助商品ID(辅助合约2)
- optional uint32 DeliveryGoodsID = 9; // 交割商品ID
- optional uint64 XQty = 10; // 交割合约数量
- optional uint64 PQty = 11; // 辅助合约数量
- optional uint64 P2Qty = 12; // 辅助合约2数量
- optional uint64 DeliveryQty = 13; // 交割商品仓单数量
- optional uint32 OperateType = 14; // 操作类型
- optional uint32 OrderSrc = 15; // 单据来源
- optional uint32 OperatorID = 16; // 操作员账号ID
- optional uint64 CounterOrderID = 17; // 对手交割申请订单ID
- optional uint32 BrandID = 18; // 品牌
- optional uint32 QualityID = 19; // 品质
- optional uint32 StandardID = 20; // 规格
- optional uint32 WarehouseID = 21; // 仓库
- optional uint32 DeliveryMonthID = 22; // 月份
- optional uint32 IsStandard = 23; // 是否标准交割商品
- optional double PriceMove = 24; // 升贴水
- optional uint32 BuyOrSell = 25; // 买卖方向
- optional int32 ValidType = 26; // 有效类型
- optional string ValidTime = 27; // 有效时间
- optional uint32 TakeMode = 28; // 提货方式
- optional string ReceiverAddress = 29; // 提货地址
- }
- // 圈内会员交割请求订单应答
- message MemberDeliveryApplyOrderRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string ClientSerialNo = 4; // 客户端流水号
- optional string OrderTime = 5; // 接收委托交易的时间
- optional uint64 DeliveryApplyOrderID = 6; // 交割申请订单ID
- }
- // 交割请求订单请求(无仓单)
- message NonWRDeliveryApplyOrderReq {
- optional MessageHead Header = 1;
- optional string ClientSerialNo = 2; // 客户端流水号
- optional string ClientOrderTime = 3; // 客户端委托时间
- optional uint32 ClientType = 4; // 终端类型
- optional uint64 AccountID = 5; // 交易账号
- optional uint32 XGoodsID = 6; // 主商品ID(交割合约)
- optional uint32 PGoodsID = 7; // 辅助商品ID(辅助合约)
- optional uint32 P2GoodsID = 8; // 辅助商品ID(辅助合约2)
- optional uint32 DeliveryGoodsID = 9; // 交割商品ID
- optional uint64 XQty = 10; // 交割合约数量
- optional uint64 PQty = 11; // 辅助合约数量
- optional uint64 P2Qty = 12; // 辅助合约2数量
- optional uint64 DeliveryQty = 13; // 交割商品仓单数量
- optional uint32 OperateType = 14; // 操作类型
- optional uint32 OrderSrc = 15; // 单据来源
- optional uint32 OperatorID = 16; // 操作员账号ID
- optional uint64 CounterOrderID = 17; // 对手交割申请订单ID
- optional uint32 BrandID = 18; // 品牌
- optional uint32 QualityID = 19; // 品质
- optional uint32 StandardID = 20; // 规格
- optional double PriceMove = 21; // 升贴水
- optional uint32 BuyOrSell = 22; // 买卖方向
- optional int32 ValidType = 23; // 有效类型
- optional string ValidTime = 24; // 有效时间
- optional uint32 TakeMode = 25; // 提货方式
- optional string ReceiverAddress = 26; // 提货地址
- optional uint32 WarehouseID = 27; // 仓库
- }
- // 交割请求订单应答(无仓单)
- message NonWRDeliveryApplyOrderRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string ClientSerialNo = 4; // 客户端流水号
- optional string OrderTime = 5; // 接收委托交易的时间
- optional uint64 DeliveryApplyOrderID = 6; // 交割申请订单ID
- }
- // 交割请求订单撤销请求(无仓单)
- message NonWRDeliveryApplyCancelReq {
- optional MessageHead Header = 1;
- optional string ClientSerialNo = 2; // 客户端流水号
- optional string ClientOrderTime = 3; // 客户端委托时间
- optional uint32 ClientType = 4; // 终端类型
- optional uint32 OperateType = 5; // 操作类型
- optional uint32 OrderSrc = 6; // 单据来源
- optional uint32 OperatorID = 7; // 操作员账号ID
- optional uint64 DeliveryApplyOrderID = 8; // 交割申请订单ID
- }
- // 交割请求订单撤销应答(无仓单)
- message NonWRDeliveryApplyCancelRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string ClientSerialNo = 4; // 客户端流水号
- optional string OrderTime = 5; // 接收委托交易的时间
- }
- // 交收服务商交割请求订单请求(无仓单)
- message NonWRMemberDeliveryApplyOrderReq {
- optional MessageHead Header = 1;
- optional string ClientSerialNo = 2; // 客户端流水号
- optional string ClientOrderTime = 3; // 客户端委托时间
- optional uint32 ClientType = 4; // 终端类型
- optional uint64 AccountID = 5; // 交易账号
- optional uint32 XGoodsID = 6; // 主商品ID(交割合约)
- optional uint32 PGoodsID = 7; // 辅助商品ID(辅助合约)
- optional uint32 P2GoodsID = 8; // 辅助商品ID(辅助合约2)
- optional uint32 DeliveryGoodsID = 9; // 交割商品ID
- optional uint64 XQty = 10; // 交割合约数量
- optional uint64 PQty = 11; // 辅助合约数量
- optional uint64 P2Qty = 12; // 辅助合约2数量
- optional uint64 DeliveryQty = 13; // 交割商品仓单数量
- optional uint32 OperateType = 14; // 操作类型
- optional uint32 OrderSrc = 15; // 单据来源
- optional uint32 OperatorID = 16; // 操作员账号ID
- optional uint64 CounterOrderID = 17; // 对手交割申请订单ID
- optional uint32 BrandID = 18; // 品牌
- optional uint32 QualityID = 19; // 品质
- optional uint32 StandardID = 20; // 规格
- optional double PriceMove = 21; // 升贴水
- optional uint32 BuyOrSell = 22; // 买卖方向
- optional int32 ValidType = 23; // 有效类型
- optional string ValidTime = 24; // 有效时间
- optional uint32 TakeMode = 25; // 提货方式
- optional string ReceiverAddress = 26; // 提货地址
- optional uint32 WarehouseID = 27; // 仓库
- }
- // 交收服务商交割请求订单应答(无仓单)
- message NonWRMemberDeliveryApplyOrderRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string ClientSerialNo = 4; // 客户端流水号
- optional string OrderTime = 5; // 接收委托交易的时间
- optional uint64 DeliveryApplyOrderID = 6; // 交割申请订单ID
- }
- // 交割申报请求(无仓单)
- message NonWRDeliveryOrderReq {
- optional MessageHead Header = 1;
- optional string ClientSerialNo = 2; // 客户端流水号
- optional string ClientOrderTime = 3; // 客户端委托时间
- optional uint32 ClientType = 4; // 终端类型
- optional uint64 AccountID = 5; // 交易账号
- optional uint32 XGoodsID = 6; // 主商品ID(交割合约)
- optional uint32 PGoodsID = 7; // 辅助商品ID(辅助合约)
- optional uint32 P2GoodsID = 8; // 辅助商品ID(辅助合约2)
- optional uint32 DeliveryGoodsID = 9; // 交割商品ID
- optional uint64 XQty = 10; // 交割合约数量
- optional uint64 PQty = 11; // 辅助合约数量
- optional uint64 P2Qty = 12; // 辅助合约2数量
- optional uint64 DeliveryQty = 13; // 交割商品仓单数量
- optional uint32 OperateType = 14; // 操作类型
- optional uint32 OrderSrc = 15; // 单据来源
- optional uint32 OperatorID = 16; // 操作员账号ID
- optional uint64 CounterOrderID = 17; // 对手交割申请订单ID
- optional uint32 BrandID = 18; // 品牌
- optional uint32 QualityID = 19; // 品质
- optional uint32 StandardID = 20; // 规格
- optional uint32 WarehouseID = 21; // 仓库
- optional uint32 DeliveryMonthID = 22; // 月份
- optional uint32 IsStandard = 23; // 是否标准交割商品
- optional double PriceMove = 24; // 升贴水
- optional uint32 BuyOrSell = 25; // 买卖方向
- optional int32 ValidType = 26; // 有效类型
- optional string ValidTime = 27; // 有效时间
- optional uint32 TakeMode = 28; // 提货方式
- optional string ReceiverAddress = 29; // 提货地址
- }
- // 交割申报应答(无仓单)
- message NonWRDeliveryOrderRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string ClientSerialNo = 4; // 客户端流水号
- optional string OrderTime = 5; // 接收委托交易的时间
- optional uint64 DeliveryApplyOrderID = 6; // 交割申请订单ID
- }
- // 交割申请审核请求
- message DeliveryAuditReq {
- optional MessageHead Header = 1;
- optional string ClientSerialNo = 2; // 客户端流水号
- optional string AuthorizedDate = 3; // 审核日期
- optional uint32 OperatorID = 4; // 操作员账号
- optional uint64 DeliveryOrderID = 5; // 交割委托单号
- optional uint32 AuditStatus = 6; // 审核状态
- optional string AuditRemark = 7; // 审核备注
- }
- // 交割申请审核应答
- message DeliveryAuditRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string ClientSerialNo = 4; // 客户端流水号
- optional uint64 DeliveryOrderID = 5; // 交割委托单号
- }
- // 配置中江交收自动配对请求
- message ZJAutoDeliveryMatchReq {
- optional MessageHead Header = 1;
- optional string ClientSerialNo = 2; // 客户端流水号
- optional uint32 DeliveryGoodsID = 3; // 交割商品ID
- optional uint32 ProviderUserID = 4; // 交收服务商ID
- optional uint64 BuyQty = 5; // 可买数量
- optional uint64 SellQty = 6; // 可卖数量
- }
- // 配置中江交收自动配对应答
- message ZJAutoDeliveryMatchRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string ClientSerialNo = 4; // 客户端流水号
- }
- // 签约请求
- message t2bBankSignReq {
- optional MessageHead Header = 1;
- required uint64 ExtOperatorID = 2; // 外部操作流水号
- optional string ExchId = 3; // 交易所编号
- optional string TradeDate = 4; // 交易所业务日期
- optional string ExchTicket = 5; // 交易所流水号
- required string AccountCode = 6; // 账户
- required string AccountName = 7; // 客户名称
- required string CusBankID = 8; // 托管银行编号
- required int32 OperateType = 9; // 变更类型[1-增加;2-修改;4-绑卡;
- required int32 IsForce = 10; // 是否强制[0-否;1-是]强制,只更新中心签约信息,不发送银行。用于银行信息不一致的情况
- optional string Currency = 11; // 币种
- optional int32 AccountType = 12; // 账户类型[1-对私;2-对公]
- required string OpenBankAccId = 13; // 银行卡行号
- optional string ForceSignBankAccountNo = 14; // 银行账户[强制签约时填写]
- optional string ForceSignBankAccountName = 15; // 银行账户名称[强制签约时填写]
- required string BankAccountNo = 16; // 银行账户
- optional string BankAccountName = 17; // 银行账户名称
- required string ExBankName = 18; // 开户行名称
- optional string OpenBankNo = 19; // 开户支行编号
- optional string OpenBankName = 20; // 开户支行名称
- required string CertType = 21; // 证件类型
- required string CertID = 22; // 证件号码
- optional string BankAccountPWD = 23; // 银行账户密码
- optional string AgentName = 24; // 授权代理人姓名
- optional int32 AgentCertType = 25; // 授权代理人证件类型
- optional string AgentCertID = 26; // 授权代理人证件号
- optional int32 BankAccountType = 27; // 银行账户类型
- optional string BankProvince = 28; // 开户银行所在省份
- optional string BankCity = 29; // 开户银行所在市
- optional int32 BankCardType = 30; // 银行卡类型
- optional string MobilePhone = 31; // 移动电话
- optional string IdentifyCode = 32; // 验证码
- optional string email = 33; // 电子邮箱
- optional string extend_info = 34; // 扩展信息(JSON串,参考配置要求进行填充)
- }
- // 签约应答
- message t2bBankSignRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ExtOperatorID = 4; // 外部操作流水号
- optional string AccountCode = 5; // 账户
- optional string NetAddr = 6; // 网络地址(当这里有网址时,应自动跳转网页)
- optional int32 Status = 7; // 状态(0成功,其他数值参考银行服务的错误码)
- required string ExchTicket = 8; // 交易所流水号
- optional string ExchId = 9; // 交易所编号
- optional string TradeDate = 10; // 交易所业务日期
- optional string CenterTicket = 11; // 中心流水号
- optional string CenterErrCode = 12; // 返回码
- optional string CenterErrMsg = 13; // 返回结果说明
- optional string bankChildAcc = 14; // 银行账号
- optional string bankChildAccName = 15; // 银行账户名
- optional string BankId = 16; // 银行卡行号
- optional string BankAccNum = 17; // 银行卡号
- optional string BankAccName = 18; // 银行卡户名
- }
- // 解约请求
- message t2bBankCancelSignReq {
- optional MessageHead Header = 1;
- required uint64 ExtOperatorID = 2; // 外部操作流水号
- optional string ExchId = 3; // 交易所编号
- required string AccountCode = 4; // 账户
- required string CusBankID = 5; // 托管银行编号
- required int32 IsForce = 6; // 是否强制
- optional string Currency = 7; // 币种
- optional string TradeDate = 8; // 交易所业务日期
- optional string ExchTicket = 9; // 交易所流水号
- optional string BankChildAcc = 10; // 银行子账号
- optional string BankChildAccName = 11; // 银行子账号名
- }
- // 解约应答
- message t2bBankCancelSignRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ExtOperatorID = 4; // 外部操作流水号
- optional string AccountCode = 5; // 账户
- optional string NetAddr = 6; // 网络地址(当这里有网址时,应自动跳转网页)
- optional int32 Status = 7; // 状态(0成功,其他数值参考银行服务的错误码)
- required string ExchTicket = 8; // 交易所流水号
- optional string ExchId = 9; // 交易所编号
- optional string TradeDate = 10; // 交易所业务日期
- optional string CenterTicket = 11; // 中心流水号
- optional string CenterErrCode = 12; // 返回码
- optional string CenterErrMsg = 13; // 返回结果说明
- }
- // 签到请求
- message t2bSignInReq {
- optional MessageHead Header = 1;
- optional string CusBankId = 2; // 托管银行编号
- optional uint64 ExtOperatorID = 3; // 外部操作流水号
- optional int32 ForceSignInFlag = 4; // 是否强制签约标识(默认正常签到)
- optional string Currency = 5; // 币种
- optional string ExchId = 6; // 交易所编号
- optional string TradeDate = 7; // 交易所业务日期
- optional string ExchTicket = 8; // 交易所流水号
- }
- // 签到应答
- message t2bSignInRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ExtOperatorID = 4; // 外部操作流水号
- optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
- required string ExchTicket = 6; // 交易所流水号
- optional string ExchId = 7; // 交易所编号
- optional string TradeDate = 8; // 交易所业务日期
- optional string CenterTicket = 9; // 中心流水号
- optional string CenterErrCode = 10; // 返回码
- optional string CenterErrMsg = 11; // 返回结果说明
- }
- // 客户信息上传请求
- message m2bRegistCustomerInfoReq {
- optional MessageHead Header = 1;
- required uint64 ExtOperatorID = 2; // 外部操作流水号
- optional string ExchId = 3; // 交易所编号
- required string TradeDate = 4; // 申请日期
- optional string ExchTicket = 5; // 交易所流水号
- required string AccountCode = 6; // 资金账户
- required string ChangeType = 7; // 变更类型[1-增加;2-修改]
- required string ClientName = 8; // 客户名称
- optional string ClentShortName = 9; // 客户简称
- required int32 ClientType = 10; // 客户类型[1-个人;2-机构]
- required int32 ClientAccountType = 11; // 客户账户类型[0-投资者;1-交易所;2-综合类;
- required string CertType = 12; // 证件类型
- required string CertId = 13; // 证件号码
- required string sex = 14; // 性别[0-未填;1-男;2-女]
- optional string LegalName = 15; // 法人姓名(机构填写)
- optional string OrgId = 16; // 组织机构代码(机构填写)
- optional string Nationality = 17; // 国籍
- optional string address = 18; // 地址
- optional string ContactUserName = 19; // 联系人姓名
- required string ContactUserTel = 20; // 联系人电话
- optional string ContactUserFax = 21; // 联系人传真
- optional string ContactUserEmail = 22; // 联系人邮箱
- optional string RelatedAcc = 23; // 经纪商账号
- optional string ExtendInfo = 24; // 扩展信息(JSON串,参考配置要求进行填充)
- }
- // 客户信息上传应答
- message m2bRegistCustomerInfoRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string ExchId = 4; // 交易所编号
- optional uint64 ExtOperatorID = 5; // 发起请求的流水号
- required string ExchTicket = 6; // 交易所流水号
- optional int32 Status = 7; // 状态(0成功,其他数值参考银行服务的错误码)
- required string TradeDate = 8; // 交易所业务日期
- optional string CenterTicket = 9; // 中心流水号
- optional string CenterErrCode = 10; // 中心返回码
- optional string CenterErrMsg = 11; // 中心返回结果说明
- }
- // 签退请求
- message t2bSignOutReq {
- optional MessageHead Header = 1;
- optional string CusBankId = 2; // 托管银行编号
- optional uint64 ExtOperatorID = 3; // 外部操作流水号
- optional int32 ForceSignInFlag = 4; // 是否强制签约标识(默认正常签到)
- optional string Currency = 5; // 币种
- optional string ExchId = 6; // 交易所编号
- optional string TradeDate = 7; // 交易所业务日期
- optional string ExchTicket = 8; // 交易所流水号
- }
- // 签退应答
- message t2bSignOutRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ExtOperatorID = 4; // 外部操作流水号
- optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
- required string ExchTicket = 6; // 交易所流水号
- optional string ExchId = 7; // 交易所编号
- optional string TradeDate = 8; // 交易所业务日期
- optional string CenterTicket = 9; // 中心流水号
- optional string CenterErrCode = 10; // 返回码
- optional string CenterErrMsg = 11; // 返回结果说明
- }
- // 注销上传的客户信息请求
- message m2bUnregistCustomerInfoReq {
- optional MessageHead Header = 1;
- required uint64 ExtOperatorID = 2; // 外部操作流水号
- optional string CusBankID = 3; // 托管银行编号
- optional string ExchId = 4; // 交易所编号
- required string TradeDate = 5; // 申请日期
- optional string ExchTicket = 6; // 交易所流水号
- required string AccountCode = 7; // 交易账号
- }
- // 注销上传的客户信息应答
- message m2bUnregistCustomerInfoRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ExtOperatorID = 4; // 外部操作流水号
- optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
- required string ExchTicket = 6; // 交易所流水号
- optional string ExchId = 7; // 交易所编号
- required string TradeDate = 8; // 交易日
- optional string CenterTicket = 9; // 中心流水号
- optional string CenterErrCode = 10; // 中心返回码
- optional string CenterErrMsg = 11; // 中心返回结果说明
- }
- // 出金请求
- message t2bBankWithdrawReq {
- optional MessageHead Header = 1;
- required uint64 ExtOperatorID = 2; // 外部操作流水号
- optional string ExchId = 3; // 交易所编号
- required string AccountCode = 4; // 资金账户
- required string CusBankID = 5; // 托管银行编号
- required string Currency = 6; // 币种
- optional int32 AccountType = 7; // 账户类型
- optional string BankChildAccount = 8; // 银行子账号
- optional string BankChildAccountName = 9; // 银行子账号名
- optional string OpenCardBankId = 10; // 银行卡行号
- optional string BankAccoutNum = 11; // 银行卡号
- optional string BankAccoutName = 12; // 银行卡户名
- required double Amount = 13; // 出金金额
- optional string AppDateTime = 14; // 申请日期和时间
- optional string OldTaPWD = 15; // 资金密码
- optional string Desc = 16; // 备注
- optional string IdentifyCode = 17; // 验证码
- optional string BranchBankName = 18; // 收款支行名称
- optional string extend_info = 19; // 扩展信息(JSON串,参考配置要求进行填充)
- optional string Remark = 20; // 备注
- optional string ExchTicket = 21; // 交易所流水号
- }
- // 出金应答
- message t2bBankWithdrawRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ExtOperatorID = 4; // 外部操作流水号
- optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
- required string ExchTicket = 6; // 交易所流水号
- optional string ExchId = 7; // 交易所编号
- optional string TradeDate = 8; // 交易日
- optional string CenterTicket = 9; // 中心流水号
- optional string CenterErrCode = 10; // 中心返回码
- optional string CenterErrMsg = 11; // 中心返回结果说明
- optional string CerterCheckDate = 12; // 中心对账日期
- optional string NetAddr = 13; // 网络地址(当这里有网址时,应自动跳转网页)
- }
- // 银行端出金请求
- message b2tBankWithdrawReq {
- optional MessageHead Header = 1;
- required string CusBankID = 2; // 托管银行编号
- optional string ExchTicket = 3; // 交易所流水号
- optional string ExchId = 4; // 交易所编号
- required string TradeDate = 5; // 交易所业务日期
- required string BankTicket = 6; // 银行流水号
- required string AccountCode = 7; // 资金账户
- optional string BankChildAccount = 8; // 银行子账号
- optional string BankChildAccountName = 9; // 银行子账户名
- optional string OldTaPWD = 10; // 资金密码
- required double Amount = 11; // 金额
- required string Currency = 12; // 币种
- optional string Remark = 13; // 备注
- optional string OpenCardBankId = 14; // 银行卡行号
- optional string BankAccoutNum = 15; // 银行卡号
- optional string BankAccoutName = 16; // 银行卡户名
- optional string IsHaveApply = 17; // 是否有出金申请[0-否;1-是]
- optional string ApplyTicket = 18; // 出金申请流水号
- optional string extend_info = 19; // 扩展信息
- }
- // 银行端出金应答
- message b2tBankWithdrawRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ExtOperatorID = 4; // 外部操作流水号
- optional int32 Status = 5; // 状态(0成功,1处理中,
- optional string StatusMsg = 6; // 处理状态描述文本
- required string ExchTicket = 7; // 交易所流水号
- required string BankTicket = 8; // 银行流水号
- optional string ExchId = 9; // 交易所编号
- required string TradeDate = 10; // 交易日
- required string ExchErrCode = 11; // 银行服务返回码
- optional string ExchErrMsg = 12; // 银行服务返回结果说明
- }
- // 银行端入金请求
- message b2tBankDepositReq {
- optional MessageHead Header = 1;
- required string CusBankID = 2; // 托管银行编号
- optional string ExchTicket = 3; // 交易所流水号
- optional string ExchId = 4; // 交易所编号
- required string TradeDate = 5; // 交易日
- required string BankTicket = 6; // 银行流水号
- required string AccountCode = 7; // 资金账户
- optional string BankChildAccount = 8; // 银行子账号
- optional string BankChildAccountName = 9; // 银行子账户名
- optional string OldTaPWD = 10; // 资金密码
- required double Amount = 11; // 金额
- required string Currency = 12; // 币种
- optional string Remark = 13; // 备注
- optional string OpenCardBankId = 14; // 银行卡行号
- optional string BankAccoutNum = 15; // 银行卡号
- optional string BankAccoutName = 16; // 银行卡户名
- optional int32 IsUpdate = 17; // 银行卡状态更新标志[0-否;1-是]
- optional int32 BankAccStatus = 18; // 银行卡状态[0-未绑定;1-已绑定]
- required string extend_info = 19; // 扩展信息[JSON串]
- optional int32 IsRollBack = 20; // 退票标志[0-否;1-是]默认为0
- optional string RawTicket = 21; // 原交易流水号[退票填原交易流水号]
- }
- // 银行端入金应答
- message b2tBankDepositRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ExtOperatorID = 4; // 外部操作流水号
- optional int32 Status = 5; // 状态(0成功,1处理中,
- optional string StatusMsg = 6; // 处理状态描述文本
- required string ExchTicket = 7; // 交易所流水号
- required string BankTicket = 8; // 银行流水号
- optional string ExchId = 9; // 交易所编号
- required string TradeDate = 10; // 交易日
- required string ExchErrCode = 11; // 银行服务返回码
- optional string ExchErrMsg = 12; // 银行服务返回结果说明
- }
- // 入金请求
- message t2bBankDepositReq {
- optional MessageHead Header = 1;
- required uint64 ExtOperatorID = 2; // 外部操作流水号
- required string CusBankID = 3; // 托管银行编号
- optional string ExchId = 4; // 交易所编号
- optional string TradeDate = 5; // 交易日
- optional string ExchTicket = 6; // 交易所流水号
- required string AccountCode = 7; // 资金账户
- optional string BusinessNo = 8; // 银行业务编号
- optional string BankChildAccount = 9; // 银行子账号
- optional string BankChildAccountName = 10; // 银行子账号名
- optional string OldTaPWD = 11; // 资金密码
- required double Amount = 12; // 金额
- required string Currency = 13; // 币种
- optional string Remark = 14; // 备注
- optional string OpenCardBankId = 15; // 银行卡行号
- optional string BankAccoutNum = 16; // 银行卡号
- optional string BankAccoutName = 17; // 银行卡户名
- optional string extend_info = 18; // 扩展信息(JSON串,参考配置要求进行填充)
- }
- // 入金应答
- message t2bBankDepositRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ExtOperatorID = 4; // 外部操作流水号
- optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
- required string ExchTicket = 6; // 交易所流水号
- optional string ExchId = 7; // 交易所编号
- optional string TradeDate = 8; // 交易日
- optional string CenterTicket = 9; // 中心流水号
- optional string CenterErrCode = 10; // 中心返回码
- optional string CenterErrMsg = 11; // 中心返回结果说明
- optional string CerterCheckDate = 12; // 中心对账日期
- optional string NetAddr = 13; // 网络地址(当这里有网址时,应自动跳转网页)
- }
- // 银行端签约请求
- message b2tBankSignReq {
- optional MessageHead Header = 1;
- required string CusBankID = 2; // 托管银行编号
- optional string ExchId = 3; // 交易所编号
- optional string TradeDate = 4; // 交易日
- required string BankTicket = 5; // 银行流水号
- required string AccountCode = 6; // 资金账户
- optional string BankChildAccount = 7; // 银行子账号
- optional string BankChildAccountName = 8; // 银行子账户名
- required string Currency = 9; // 币种
- optional string OpenCardBankId = 10; // 银行卡行号
- optional string BankAccoutNum = 11; // 银行卡号
- optional string BankAccoutName = 12; // 银行卡户名
- optional int32 AccountType = 13; // 银行账户类型[1-对私;2-对公]
- optional string ExtendInfo = 14; // 扩展信息(JSON串)
- optional int32 OperatType = 15; // 变更类型[1-增加;2-修改]
- }
- // 银行端签约应答
- message b2tBankSignRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ExtOperatorID = 4; // 外部操作流水号
- optional int32 Status = 5; // 状态(0成功,1处理中,
- optional string StatusMsg = 6; // 处理状态描述文本
- required string ExchTicket = 7; // 交易所流水号
- required string BankTicket = 8; // 银行流水号
- optional string ExchId = 9; // 交易所编号
- required string TradeDate = 10; // 交易日
- required string ExchErrCode = 11; // 银行服务返回码
- optional string ExchErrMsg = 12; // 银行服务返回结果说明
- }
- // 银行端解约请求
- message b2tBankCancelSignReq {
- optional MessageHead Header = 1;
- required string CusBankID = 2; // 托管银行编号
- optional string ExchId = 3; // 交易所编号
- optional string TradeDate = 4; // 交易日
- required string BankTicket = 5; // 银行流水号
- required string AccountCode = 6; // 资金账户
- optional string BankChildAccount = 7; // 银行子账号
- optional string BankChildAccountName = 8; // 银行子账户名
- required string Currency = 9; // 币种
- }
- // 银行端解约应答
- message b2tBankCancelSignRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ExtOperatorID = 4; // 外部操作流水号
- optional int32 Status = 5; // 状态(0成功,1处理中,
- optional string StatusMsg = 6; // 处理状态描述文本
- required string ExchTicket = 7; // 交易所流水号
- required string BankTicket = 8; // 银行流水号
- optional string ExchId = 9; // 交易所编号
- required string TradeDate = 10; // 交易日
- required string ExchErrCode = 11; // 银行服务返回码
- optional string ExchErrMsg = 12; // 银行服务返回结果说明
- }
- // 银行端出金申请请求
- message b2tBankWithdrawApplyForReq {
- optional MessageHead Header = 1;
- required string CusBankID = 2; // 托管银行编号
- optional string ExchId = 3; // 交易所编号
- optional string TradeDate = 4; // 交易日
- required string BankTicket = 5; // 银行流水号
- required string AccountCode = 6; // 资金账户
- optional string BankChildAccount = 7; // 银行子账号
- optional string BankChildAccountName = 8; // 银行子账户名
- optional string OldTaPWD = 9; // 资金密码
- required string Amount = 10; // 金额
- required string Currency = 11; // 币种
- optional string Remark = 12; // 备注
- }
- // 银行端出金申请应答
- message b2tBankWithdrawApplyForRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ExtOperatorID = 4; // 外部操作流水号
- optional int32 Status = 5; // 状态(0成功,1处理中,
- optional string StatusMsg = 6; // 处理状态描述文本
- required string ExchTicket = 7; // 交易所流水号
- required string BankTicket = 8; // 银行流水号
- optional string ExchId = 9; // 交易所编号
- required string TradeDate = 10; // 交易日
- required string ExchErrCode = 11; // 银行服务返回码
- optional string ExchErrMsg = 12; // 银行服务返回结果说明
- }
- // 银行端审核结果通知请求
- message b2tBankConfirmReq {
- optional MessageHead Header = 1;
- required string CusBankID = 2; // 托管银行编号
- optional string ExchId = 3; // 交易所编号
- required string TradeDate = 4; // 交易日
- required string BankTicket = 5; // 银行流水号
- optional string BusinessNo = 6; // 业务编号[原报文的业务编号(171-商品信息,102-出金)]
- required string RawTicket = 7; // 原交易流水号[原交易的交易所流水号]
- optional string CheckDate = 8; // 对账日期[出金审核成功通知是必填]
- required string Status = 9; // 审核状态[1-审核通过;2-审核不通过;3-审核通过,执行失败]
- optional string StatusMsg = 10; // 审核结果说明
- optional string extend_info = 11; // 扩展信息[JSON串]
- }
- // 银行端审核结果通知应答
- message b2tBankConfirmRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ExtOperatorID = 4; // 外部操作流水号
- optional int32 Status = 5; // 状态(0成功,1处理中,
- optional string StatusMsg = 6; // 处理状态描述文本
- required string ExchTicket = 7; // 交易所流水号
- required string BankTicket = 8; // 银行流水号
- optional string ExchId = 9; // 交易所编号
- required string TradeDate = 10; // 交易日
- required string ExchErrCode = 11; // 银行服务返回码
- optional string ExchErrMsg = 12; // 银行服务返回结果说明
- }
- // 短信验证码请求
- message t2bSMSVerificationCodeReq {
- optional MessageHead Header = 1;
- required uint64 ExtOperatorID = 2; // 外部操作流水号
- required string CusBankID = 3; // 托管银行编号
- optional string ExchId = 4; // 交易所编号
- optional string TradeDate = 5; // 交易日
- optional string ExchTicket = 6; // 交易所流水号
- required string AccountCode = 7; // 资金账户
- optional string BusinessNo = 8; // 银行业务编号
- optional string Mobile = 9; // 手机号码
- optional string extend_info = 10; // 扩展信息(JSON串,参考配置要求进行填充)
- }
- // 短信验证码应答
- message t2bSMSVerificationCodeRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ExtOperatorID = 4; // 外部操作流水号
- optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
- required string ExchTicket = 6; // 交易所流水号
- optional string ExchId = 7; // 交易所编号
- optional string TradeDate = 8; // 交易日
- optional string CenterTicket = 9; // 中心流水号
- optional string CenterErrCode = 10; // 中心返回码
- optional string CenterErrMsg = 11; // 中心返回结果说明
- }
- // 商品信息上传请求
- message t2bProductInfoReq {
- optional MessageHead Header = 1;
- required uint64 ExtOperatorID = 2; // 外部操作流水号
- optional string CusBankID = 3; // 托管银行编号
- optional string ExchId = 4; // 交易所编号
- optional string TradeDate = 5; // 交易日
- optional string ExchTicket = 6; // 交易所流水号
- required string ProductTypeCode = 7; // 产品类别代码
- required string ProductTypeName = 8; // 产品类别名称
- required string ProductTypeId = 9; // 产品类别ID
- required string ProductCode = 10; // 产品代码
- required string ProductName = 11; // 产品名称
- required string CountUnit = 12; // 计量单位
- required int32 MarketType = 13; // 子市场类型[1-不区分;2-大宗商品;3-挂牌交易;4-电子商城]
- required int32 BusinessType = 14; // 业务类型[1-不区分;2-大宗商品;3-金融资产;4-文化产权;
- required string DeliDepot = 15; // 交割仓库
- required double DeliFee = 16; // 交割费用
- required string DeliFeeUnit = 17; // 交割费用单位
- required string DeliCondition = 18; // 交割成色
- required double DeliDelayFee = 19; // 交割滞纳金率
- required double TransFee = 20; // 交易手续费
- required double HoldUpperLimit = 21; // 持仓上限
- required string HoldUpperLimitUnit = 22; // 持仓上限单位
- required double PriceSpread = 23; // 买卖差价
- required string PriceSpreadUnit = 24; // 买卖差价单位
- required double MinChange = 25; // 最小变动量
- required string MinChangeUnit = 26; // 最小变动单位
- required double MinTrans = 27; // 最小交易量
- required string MinTransUnit = 28; // 最小交易量单位
- required double MaxSingleTrans = 29; // 单笔最大交易量
- required string MaxSingleTransUnit = 30; // 单笔最大交易量单位
- required string ProductAttr = 31; // 产品附加属性
- required int32 ProductStatus = 32; // 商品状态[0-停牌;1-正常;2-撤牌]
- required int32 DataType = 33; // 数据类型[1-新增;2-修改;3-状态变更]
- required double ContractUnit = 34; // 合约单位
- }
- // 商品信息上传应答
- message t2bProductInfoRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ExtOperatorID = 4; // 外部操作流水号
- optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
- required string ExchTicket = 6; // 交易所流水号
- optional string ExchId = 7; // 交易所编号
- optional string TradeDate = 8; // 交易日
- optional string CenterTicket = 9; // 中心流水号
- optional string CenterErrCode = 10; // 中心返回码[99为审核中]
- optional string CenterErrMsg = 11; // 中心返回结果说明
- }
- // 付款请求
- message t2bPayMoneyReq {
- optional MessageHead Header = 1;
- required uint64 ExtOperatorID = 2; // 外部操作流水号
- required string CusBankID = 3; // 托管银行编号
- optional string ExchId = 4; // 交易所编号
- required string TradeDate = 5; // 交易日
- optional string ExchTicket = 6; // 交易所流水号
- required string AccountCode = 7; // 资金账户
- optional string BankChildAccount = 8; // 银行子账号
- optional string BankChildAccountName = 9; // 银行子账号名
- required string TargetAccountCode = 10; // 收款方交易账号
- optional string TargetBankChildAccount = 11; // 收款方银行账号
- optional string TargetBankChildAccountName = 12; // 收款方银行账户名
- optional string IsFrozen = 13; // 是否冻结
- optional string OldTaPWD = 14; // 资金密码
- required double Amount = 15; // 付款金额
- required string Currency = 16; // 币种
- optional string Remark = 17; // 备注
- }
- // 付款应答
- message t2bPayMoneyRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ExtOperatorID = 4; // 外部操作流水号
- optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
- required string ExchTicket = 6; // 交易所流水号
- optional string ExchId = 7; // 交易所编号
- optional string TradeDate = 8; // 交易日
- optional string CenterTicket = 9; // 中心流水号
- optional string CenterErrCode = 10; // 中心返回码
- optional string CenterErrMsg = 11; // 中心返回结果说明
- optional string CerterCheckDate = 12; // 中心对账日期
- }
- // 付款确认请求
- message t2bPayMoneyConfirmReq {
- optional MessageHead Header = 1;
- required uint64 ExtOperatorID = 2; // 外部操作流水号
- required string CusBankID = 3; // 托管银行编号
- optional string ExchId = 4; // 交易所编号
- optional string TradeDate = 5; // 交易日
- optional string ExchTicket = 6; // 交易所流水号
- required string PayTicket = 7; // 付款流水号
- optional string OldTaPWD = 8; // 资金密码
- required double Amount = 9; // 确认金额
- required string Currency = 10; // 币种
- optional string Remark = 11; // 备注
- }
- // 付款确认应答
- message t2bPayMoneyConfirmRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ExtOperatorID = 4; // 外部操作流水号
- optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
- required string ExchTicket = 6; // 交易所流水号
- optional string ExchId = 7; // 交易所编号
- optional string TradeDate = 8; // 交易日
- optional string CenterTicket = 9; // 中心流水号
- optional string CenterErrCode = 10; // 中心返回码
- optional string CenterErrMsg = 11; // 中心返回结果说明
- optional string CerterCheckDate = 12; // 中心对账日期
- }
- // 账户服务操作账户应答
- message bs2asAccOperateRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string Tip = 4; // 此协议只是为了拥有一个功能码(有可能是解冻并且扣款成功的回应)
- }
- // 账户服务冻结资金应答
- message bs2asFrozenRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string Tip = 4; // 此协议只是为了拥有一个功能码(出金请求冻结资金)
- }
- // 账户服务解冻资金应答
- message bs2asUnfreezeRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string Tip = 4; // 此协议只是为了拥有一个功能码(解冻出金冻结的资金)
- }
- // 账户服务解冻并且扣款应答
- message bs2asUnfreezeAndOutRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string Tip = 4; // 此协议只是为了拥有一个功能码(出金成功,执行解冻扣款)
- }
- // 账户服务扣款应答
- message bs2asOutBankRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string Tip = 4; // 此协议只是为了拥有一个功能码(出金)
- }
- // 账户服务入金增加金额应答
- message bs2asInBankRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string Tip = 4; // 此协议只是为了拥有一个功能码(入金)
- }
- // 开始上传客户信息请求
- message m2bInformToUploadUserInfoReq {
- optional MessageHead Header = 1;
- required uint64 ExtOperatorID = 2; // 外部操作流水号
- optional string Tip = 3; // 这个是交易端通知上传报文,银行服务检查并上传所有没有上传的客户信息
- }
- // 开始上传客户信息应答
- message m2bInformToUploadUserInfoRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- required uint64 ExtOperatorID = 4; // 外部操作流水号
- required int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
- required string ExchTicket = 6; // 交易所流水号
- }
- // 银行账户信息
- message ArrayBsBankAccInfos {
- optional string BankId = 1; // 银行卡行号
- optional string BankAccNo = 2; // 银行卡号
- optional string BankAccName = 3; // 银行卡户名
- optional string Status = 4; // 银行卡状态
- }
- // 账户信息查询请求
- message t2bQueryAccInfosReq {
- optional MessageHead Header = 1;
- required uint64 ExtOperatorID = 2; // 外部操作流水号
- required string CusBankID = 3; // 托管银行编号
- optional string ExchId = 4; // 交易所编号
- optional string TradeDate = 5; // 交易日
- optional string ExchTicket = 6; // 交易所流水号
- required string AccountCode = 7; // 资金账户
- optional string BankChildAccount = 8; // 银行子账号
- optional string BankChildAccountName = 9; // 银行子账号名
- optional string OldTaPWD = 10; // 资金密码
- optional string QueryType = 11; // 查询类别[1-查询所有信息;2-查询余额;3-查询银行卡]
- }
- // 账户信息查询应答
- message t2bQueryAccInfosRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ExtOperatorID = 4; // 外部操作流水号
- optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
- required string ExchId = 6; // 交易所编号
- optional string TradeDate = 7; // 交易日
- required string ExchTicket = 8; // 交易所流水号
- optional string BankTicket = 9; // 中心流水号
- optional string BankRetCode = 10; // 返回码
- optional string BankRetMsg = 11; // 返回结果说明
- optional string SignStatus = 12; // 签约状态
- optional string CustName = 13; // 客户名称
- optional string CustShortName = 14; // 客户简称
- optional string CustType = 15; // 客户类型
- optional string LagalName = 16; // 法人姓名
- optional string CertType = 17; // 证件类型
- optional string CertNo = 18; // 证件号码
- optional string Sex = 19; // 性别
- optional string OrgCode = 20; // 组织机构代码
- optional string Nationality = 21; // 国籍
- optional string Addr = 22; // 地址
- optional string ContactName = 23; // 联系人姓名
- optional string ContactPhone = 24; // 联系人电话
- optional string ContactFax = 25; // 联系人传真
- optional string ContactEmail = 26; // 联系人邮箱
- optional string RelatedAcctStr = 27; // 经纪商账号
- optional string AgenName = 28; // 经办人姓名
- optional string AgenCertType = 29; // 经办人证件类型
- optional string AgenCertNo = 30; // 经办人证件号码
- optional double Balan = 31; // 资金余额
- optional double CanUseAmount = 32; // 可用余额
- optional double CanGetAmount = 33; // 可取余额
- optional double FrozeAmount = 34; // 冻结金额
- optional double InBankAmount = 35; // 入金账户金额
- repeated ArrayBsBankAccInfos BankAccInfos = 36; // 银行卡信息(列表)
- }
- // 交易所账号
- message ArrayBsExchAccList {
- optional string AccNo = 1; // 账号
- optional string AccName = 2; // 账号名称
- optional string AccTypeName = 3; // 账户属性名称
- optional string Currency = 4; // 币种
- optional double Balan = 5; // 资金余额
- optional double CanUseAmount = 6; // 可用余额
- optional double CanGetAmount = 7; // 可取余额
- optional double FrozeAmount = 8; // 冻结金额
- }
- // 商户账户信息查询请求
- message t2bQueryExchAccInfosReq {
- optional MessageHead Header = 1;
- required uint64 ExtOperatorID = 2; // 外部操作流水号
- required string CusBankID = 3; // 托管银行编号
- optional string ExchId = 4; // 交易所编号
- optional string TradeDate = 5; // 交易日
- optional string ExchTicket = 6; // 交易所流水号
- optional string BusinessNo = 7; // 银行业务编号
- optional int32 AccType = 8; // 账户类型[0-所有;1-资金调拨;2-费用划转;
- }
- // 商户账户信息查询应答
- message t2bQueryExchAccInfosRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ExtOperatorID = 4; // 外部操作流水号
- optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
- optional string ExchId = 6; // 交易所编号
- optional string TradeDate = 7; // 交易日
- optional string ExchTicket = 8; // 交易所流水号
- optional string BankTicket = 9; // 中心流水号
- optional string BankRetCode = 10; // 返回码
- optional string BankRetMsg = 11; // 返回结果说明
- repeated ArrayBsExchAccList AccList = 12; // 账户列表
- }
- // 交易信息查询请求
- message t2bQueryBusinessStatusReq {
- optional MessageHead Header = 1;
- required uint64 ExtOperatorID = 2; // 外部操作流水号
- required string CusBankID = 3; // 托管银行编号
- optional string ExchId = 4; // 交易所编号
- optional string TradeDate = 5; // 交易日
- optional string ExchTicket = 6; // 交易所流水号
- optional string BusinessNo = 7; // 银行业务编号
- optional string QueryBusinessNo = 8; // 业务编号[原报文的业务编号]
- optional string QueryExchTicket = 9; // 交易流水号[查询交易的交易所流水号]
- optional string QueryType = 10; // 查询类别[1-查询所有信息;2-查询状态]
- }
- // 交易信息查询应答
- message t2bQueryBusinessStatusRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ExtOperatorID = 4; // 外部操作流水号
- optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
- optional string ExchId = 6; // 交易所编号
- optional string TradeDate = 7; // 交易日
- optional string ExchTicket = 8; // 交易所流水号
- optional string BankTicket = 9; // 中心流水号
- optional string BankRetCode = 10; // 返回码
- optional string BankRetMsg = 11; // 返回结果说明
- optional string QueryExchTicket = 12; // 原业务中心流水号
- optional string BusinessCheckDate = 13; // 对账日期
- optional string BusinessStatus = 14; // 交易状态
- optional double BusinessAmout = 15; // 金额
- optional string BusinessCurrency = 16; // 币种
- optional string BusinessDate = 17; // 交易日期
- optional string BusinessTime = 18; // 交易时间
- optional string BusinessRemark = 19; // 备注
- }
- // 链接地址查询请求
- message t2bQueryLinkAddrReq {
- optional MessageHead Header = 1;
- required uint64 ExtOperatorID = 2; // 外部操作流水号
- required string CusBankID = 3; // 托管银行编号
- optional string Tip = 4; // 本报文返回的内容是28102
- optional string ExchId = 5; // 交易所编号
- optional string TradeDate = 6; // 交易日
- optional string ExchTicket = 7; // 交易所流水号
- required string AccountCode = 8; // 资金账户
- optional string BusinessNo = 9; // 银行业务编号
- optional string BankChildAccount = 10; // 银行子账号
- optional string BankChildAccountName = 11; // 银行子账号名
- optional string OldTaPWD = 12; // 资金密码
- optional string QueryType = 13; // 查询类别[1-管理页面]
- }
- // 链接地址查询应答
- message t2bQueryLinkAddrRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- required uint64 ExtOperatorID = 4; // 外部操作流水号
- required string CusBankID = 5; // 托管银行编号
- optional string ExchId = 6; // 交易所编号
- optional string TradeDate = 7; // 交易日
- optional string ExchTicket = 8; // 交易所流水号
- optional string BankTicket = 9; // 银行流水号
- optional string BusinessNo = 10; // 业务编号
- optional string Link = 11; // 信息内容
- }
- // 费用查询请求
- message t2bQueryExchChargeReq {
- optional MessageHead Header = 1;
- required uint64 ExtOperatorID = 2; // 外部操作流水号
- required string CusBankID = 3; // 托管银行编号
- optional string ExchId = 4; // 交易所编号
- optional string TradeDate = 5; // 交易日
- optional string ExchTicket = 6; // 交易所流水号
- optional string BusinessNo = 7; // 银行业务编号
- optional int32 QueryType = 8; // 费用类别[1-收益]
- optional string BeginDate = 9; // 开始日期
- optional string EndDate = 10; // 结束日期
- }
- // 费用查询应答
- message t2bQueryExchChargeRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ExtOperatorID = 4; // 外部操作流水号
- optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
- optional string ExchId = 6; // 交易所编号
- optional string TradeDate = 7; // 交易日
- optional string ExchTicket = 8; // 交易所流水号
- optional string BankTicket = 9; // 中心流水号
- optional string BankRetCode = 10; // 返回码
- optional string BankRetMsg = 11; // 返回结果说明
- optional double Amount = 12; // 金额
- optional string Currency = 13; // 币种
- }
- // 交易所向中心报送文件请求
- message b2cInformFileReadyReq {
- optional MessageHead Header = 1;
- required string CusBankID = 2; // 托管银行编号
- optional string ExchId = 3; // 交易所编号
- optional string TradeDate = 4; // 交易日
- optional string ExchTicket = 5; // 交易所流水号
- optional string FileType = 6; // 文件类型
- optional string FilePath = 7; // 文件路径
- optional string FileName = 8; // 文件名称
- optional int32 IsResend = 9; // 是否重发
- optional string MD5 = 10; // 文件MD5码
- }
- // 交易所向中心报送文件应答
- message b2cInformFileReadyRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ExtOperatorID = 4; // 外部操作流水号
- optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
- optional string ExchId = 6; // 交易所编号
- required string TradeDate = 7; // 交易日
- required string ExchTicket = 8; // 交易所流水号
- required string BankTicket = 9; // 中心流水号
- required string BankRetCode = 10; // 返回码
- optional string BankRetMsg = 11; // 返回结果说明
- }
- // 平台资金划转请求
- message t2bExchOutInBankReq {
- optional MessageHead Header = 1;
- required uint64 ExtOperatorID = 2; // 外部操作流水号
- required string CusBankID = 3; // 托管银行编号
- optional string ExchId = 4; // 交易所编号
- optional string TradeDate = 5; // 交易日
- optional string ExchTicket = 6; // 交易所流水号
- optional string BusinessNo = 7; // 银行业务编号
- optional int32 TransferType = 8; // 资金划转类别[1-资金调拨;2-费用划转;3-利息划转]
- optional string BankAccNo = 9; // 银行账号
- optional string BankAccName = 10; // 银行账户名
- optional string TargetBankId = 11; // 收款方银行行号
- optional string TargetBankAccNo = 12; // 收款方银行账号
- optional string TargetBankAccName = 13; // 收款方银行账户名
- optional string BeginDate = 14; // 开始日期
- optional string EndDate = 15; // 结束日期
- optional double Amount = 16; // 金额
- optional string Currency = 17; // 币种
- optional string Remark = 18; // 备注
- }
- // 平台资金划转应答
- message t2bExchOutInBankRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ExtOperatorID = 4; // 外部操作流水号
- optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
- optional string ExchId = 6; // 交易所编号
- optional string TradeDate = 7; // 交易日
- optional string ExchTicket = 8; // 交易所流水号
- optional string BankTicket = 9; // 中心流水号
- optional string BankRetCode = 10; // 返回码
- optional string BankRetMsg = 11; // 返回结果说明
- }
- // 中心向交易所报送文件请求
- message c2bInformFileReadyReq {
- optional MessageHead Header = 1;
- required string CusBankID = 2; // 托管银行编号
- optional string ExchId = 3; // 交易所编号
- optional string TradeDate = 4; // 交易日
- optional string ExchTicket = 5; // 交易所流水号
- optional string BusinessNo = 6; // 银行业务编号
- optional string FileType = 7; // 文件类型
- optional string FilePath = 8; // 文件路径
- optional string FileName = 9; // 文件名称
- optional int32 IsResend = 10; // 是否重发
- optional string MD5 = 11; // 文件MD5码
- optional string BankTicket = 12; // 中心流水号
- }
- // 中心向交易所报送文件应答
- message c2bInformFileReadyRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ExtOperatorID = 4; // 外部操作流水号
- optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
- optional string ExchId = 6; // 交易所编号
- required string TradeDate = 7; // 交易日
- required string ExchTicket = 8; // 交易所流水号
- required string BankTicket = 9; // 中心流水号
- required string BankRetCode = 10; // 返回码
- optional string BankRetMsg = 11; // 返回结果说明
- }
- // 中心通知链接地址信息请求
- message c2bInformLinkAddrReq {
- optional MessageHead Header = 1;
- optional string ExchId = 2; // 交易所编号
- optional string TradeDate = 3; // 交易日
- optional string ExchTicket = 4; // 交易所流水号
- optional string BankTicket = 5; // 银行流水号
- optional string BusinessNo = 6; // 业务编号
- optional string Link = 7; // 信息内容
- }
- // 对账文件通知处理请求
- message bsOnInformAccCheckFileReq {
- optional MessageHead Header = 1;
- optional uint64 ExtOperatorID = 2; // 外部操作流水号
- required string CusBankID = 3; // 托管银行编号
- optional string ExchId = 4; // 交易所编号
- required string TradeDate = 5; // 交易日
- optional string FilePath = 6; // 文件路径
- optional string FileName = 7; // 文件名称
- optional string MD5 = 8; // 文件MD5码
- optional string BankTicket = 9; // 中心流水号
- }
- // 对账文件通知处理应答
- message bsOnInformAccCheckFileRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ExtOperatorID = 4; // 外部操作流水号(请求报文中有此字段才回应这个报文)
- optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
- optional string ExchId = 6; // 交易所编号
- required string TradeDate = 7; // 交易日
- required string ExchTicket = 8; // 交易所流水号
- }
- // 准备对账请求
- message bsPrepareDataForAccCheckReq {
- optional MessageHead Header = 1;
- optional uint64 ExtOperatorID = 2; // 外部操作流水号
- required string CusBankID = 3; // 托管银行编号
- optional string ExchId = 4; // 交易所编号
- required string TradeDate = 5; // 交易日
- optional string FilePath = 6; // 文件路径
- optional string FileName = 7; // 文件名称
- optional string MD5 = 8; // 文件MD5码
- optional string BankTicket = 9; // 中心流水号
- }
- // 准备对账应答
- message bsPrepareDataForAccCheckRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ExtOperatorID = 4; // 外部操作流水号(请求报文中有此字段才回应这个报文)
- optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
- optional string ExchId = 6; // 交易所编号
- required string TradeDate = 7; // 交易日
- required string ExchTicket = 8; // 交易所流水号
- }
- // 对账请求
- message bsAccCheckReq {
- optional MessageHead Header = 1;
- optional string CusBankID = 2; // 托管银行编号
- optional string ExchId = 3; // 交易所编号
- required string TradeDate = 4; // 交易日
- }
- // 通知交易端处理单边账请求
- message bs2tInformAccCheckResReq {
- optional MessageHead Header = 1;
- required string CusBankID = 2; // 托管银行编号
- optional string ExchId = 3; // 交易所编号
- required string TradeDate = 4; // 交易日
- optional int64 Status = 5; // 状态(0:对账成功没有单边账;其他请处理单边账)
- optional string Remark = 6; // 备注
- }
- // 通知交易端处理单边账应答
- message bs2tInformAccCheckResRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- required uint64 ExtOperatorID = 4; // 外部操作流水号(只要收到此应答报文,就认为通知成功)
- required string CusBankID = 5; // 托管银行编号
- optional string ExchId = 6; // 交易所编号
- required string TradeDate = 7; // 交易日
- }
- // 交易端通知所有单边账处理完毕请求
- message t2bInformAdjustFinishReq {
- optional MessageHead Header = 1;
- required uint64 ExtOperatorID = 2; // 外部操作流水号
- required string CusBankID = 3; // 托管银行编号
- optional string ExchId = 4; // 交易所编号
- required string TradeDate = 5; // 交易日
- }
- // 交易端通知所有单边账处理完毕应答
- message t2bInformAdjustFinishRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- required uint64 ExtOperatorID = 4; // 外部操作流水号(请求报文中有此字段才回应这个报文)
- optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
- optional string ExchId = 6; // 交易所编号
- required string TradeDate = 7; // 交易日
- required string ExchTicket = 8; // 交易所流水号
- }
- // 控制服务广播消息请求
- message cs2bsInformMsgReq {
- optional MessageHead Header = 1;
- required int32 Status = 2; // 状态(1:待开市;40.签到开始;44.签退开始;51.清算开始;)
- required string TradeDay = 3; // 交易日
- optional string NextTradeDay = 4; // 下一次开市日期
- }
- // 通知控制服务业务处理状态
- message bs2csInformMsgReq {
- optional MessageHead Header = 1;
- required string ExchTicket = 2; // 交易所流水号
- required string TradeDate = 3; // 交易日
- required int32 Status = 4; // 状态(1:待开市;40.签到开始;41.签到成功;42.签到部份成功;43.签到失败;44.签退开始;45.签退成功;46.签退部份成功;47.签退失败;48.对账开始;49.对账成功;50.对账失败;51.清算开始;52.清算成功;53.清算失败;)
- optional string remark = 5; // 状态描述
- }
- // 交易所审核结果通知请求
- message t2bExchConfirmBusinessReq {
- optional MessageHead Header = 1;
- required uint64 extoperatorid = 2; // 外部操作流水号
- required string cusbankid = 3; // 托管银行编号
- required string AccountCode = 4; // 资金账户(交易所的出入金,填0)
- optional string exchid = 5; // 交易所编号
- optional string tradedate = 6; // 交易日(被审业务发生的交易日)
- required string exchticket = 7; // 交易所流水号(被审核的流水)
- optional string bankticket = 8; // 中心流水号
- required int32 businesstype = 9; // 交易类型[1:入金;2:出金;3:签约;4:解约;5:资金调拨;
- required int32 businessconfirmstatus = 10; // 审核结果[1:通过;2:拒绝]
- optional string retcode = 11; // 返回码
- optional string retmsg = 12; // 返回结果说明
- optional string remark = 13; // 备注
- optional uint64 auditid = 14; // 审核人
- optional string extend = 15; // 扩展信息(若这个字段存在,则会更新到出入金申请表的扩展字段)
- }
- // 交易所审核结果通知应答
- message t2bExchConfirmBusinessRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- required uint64 ExtOperatorID = 4; // 外部操作流水号
- required int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
- required string ExchTicket = 6; // 交易所流水号(操作流水,非被审核交易的流水)
- }
- // 交易所单边账调整请求
- message t2bExchDealCheckErrReq {
- optional MessageHead Header = 1;
- required uint64 extoperatorid = 2; // 外部操作流水号(发起本次交易的流水,发起方填写)
- required string AccountCode = 3; // 资金账户(从差错表取)
- required string TradeDate = 4; // 交易日(从差错表取)
- required string AutoId = 5; // 单边账ID(从差错表取)
- required string ModifID = 6; // 单边账调整操作人员
- required string Remark = 7; // 调整操作描述
- required string ErrCode = 8; // 单边账错误码(从差错表取)
- required int32 OperType = 9; // 单边账操作类型(1:银行服务正常处理;2:
- optional string CusBankID = 10; // 托管银行编号(在哪个托管银行上操作):多签约时,必须填写
- }
- // 交易所单边账调整应答
- message t2bExchDealCheckErrRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- required uint64 ExtOperatorID = 4; // 外部操作流水号
- required int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
- optional string remark = 6; // 备注
- }
- // 开市或者闭市通知请求
- message t2bMarkingOpenOrCloseReq {
- optional MessageHead Header = 1;
- optional string ExchId = 2; // 交易所编号
- required string ExchDate = 3; // 交易所日期
- required string OpenDate = 4; // 开市日期
- required string NextDate = 5; // 下个开市日期
- required int32 Flag = 6; // 开休市标记1-开市;0-休市
- optional string extend_info = 7; // 扩展信息
- }
- // 开市或者闭市通知应答
- message t2bMarkingOpenOrCloseRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- required string ExchDate = 4; // 交易所日期
- optional string CenterRetCode = 5; // 返回码(中心)
- optional string CenterRetMsg = 6; // 返回结果说明(中心)
- }
- // 第三方支付模式退款申请请求
- message t2bThirdBankOutApplyReq {
- optional MessageHead Header = 1;
- required uint64 extoperatorid = 2; // 外部操作流水号(本次流水号)
- required string CusbankId = 3; // 第三方退款的托管银行渠道编号(中心定义的)
- required string TradeDate = 4; // 交易日(YYYYMMDD)
- required uint64 AccoutCode = 5; // 资金账户
- required uint64 RelateId = 6; // 关联单号
- required string RelateTradeDate = 7; // 关联单号的发生日期(YYYYMMDD)
- required double RelateAmount = 8; // 关联单号的金额
- optional string extend_info = 9; // 备注
- }
- // 第三方支付模式退款申请应答
- message t2bThirdBankOutApplyRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- required uint64 extoperatorid = 4; // 外部操作流水号(发起申请时的流水)
- required uint64 Exchticket = 5; // 银行服务操作流水
- required string TradeDate = 6; // 交易日(YYYYMMDD)
- required uint64 Status = 7; // 返回状态码(0成功,其他数值参考银行服务的错误码)
- optional string remark = 8; // 描述
- }
- // 第三方支付模式退款结果通知请求
- message t2bThirdBankOutNtfReq {
- optional MessageHead Header = 1;
- required uint64 extoperatorid = 2; // 外部操作流水号(本次流水号)
- required uint64 Exchticket = 3; // 银行服务操作流水(退款申请时返回的银行服务流水)
- required string TradeDate = 4; // 交易日(YYYYMMDD)
- required string ApplyTradeDate = 5; // 退款申请交易日(YYYYMMDD)
- required uint64 AccoutCode = 6; // 资金账户
- required string CusbankId = 7; // 第三方退款的托管银行渠道编号(中心定义的)
- required int32 Result = 8; // 退款结果代号(1:成功;2:失败)
- optional string ResultMsg = 9; // 结果描述
- }
- // 第三方支付模式退款结果通知应答
- message t2bThirdBankOutNtfRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- required uint64 extoperatorid = 4; // 外部操作流水号(发起申请时的流水)
- required uint64 Exchticket = 5; // 银行服务操作流水
- required string TradeDate = 6; // 交易日(YYYYMMDD)
- required uint64 Status = 7; // 返回状态码(0成功,其他数值参考银行服务的错误码)
- optional string remark = 8; // 描述
- }
- // 内部审核银行端出金申请通知请求
- message t2bConfirmBankWithdrawApplyNtfReq {
- optional MessageHead Header = 1;
- required string CusBankID = 2; // 托管银行编号
- optional string ExchId = 3; // 交易所编号
- optional string TradeDate = 4; // 交易日
- required string BankTicket = 5; // 银行流水号(审核拒绝才发这个通知给中心,中心没有应答返回)
- optional string ExchTicket = 6; // 交易所流水号
- optional string ConfirmStatus = 7; // 审核状态(目前只有审核拒绝才发这个通知)
- optional string ConfirmMsg = 8; // 审核信息
- }
- // 内部审核银行端出金申请通知应答
- message t2bConfirmBankWithdrawApplyNtfRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ExtOperatorID = 4; // 外部操作流水号
- optional int32 Status = 5; // 状态(0成功,1处理中,
- optional string StatusMsg = 6; // 处理状态描述文本
- required string ExchTicket = 7; // 交易所流水号(目前中心没这个应答)
- required string BankTicket = 8; // 银行流水号(目前中心没这个应答)
- optional string ExchId = 9; // 交易所编号
- required string TradeDate = 10; // 交易日
- required string ExchErrCode = 11; // 银行服务返回码
- optional string ExchErrMsg = 12; // 银行服务返回结果说明
- }
- // 入金验证码校验报文请求
- message t2bShortMsgCheckReq {
- optional MessageHead Header = 1;
- required uint64 extoperatorid = 2; // 外部操作流水号(发起本次交易的流水,发起方填写)
- required string CusBankID = 3; // 托管银行编号
- required string AccountCode = 4; // 资金账户
- optional string ExchId = 5; // 交易所编号
- optional string TradeDate = 6; // 交易日
- optional string ExchTicket = 7; // 交易所流水号
- required string RelatedExchTicket = 8; // 关联的入金流水号(返回的银行服务流水号)
- optional string ShortMsgId = 9; // 手机验证码
- optional string Extend = 10; // 扩展信息
- }
- // 入金验证码校验报文应答
- message t2bShortMsgCheckRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ExtOperatorID = 4; // 外部操作流水号
- optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
- optional string ExchId = 6; // 交易所编号
- optional string ExchTicket = 7; // 交易所流水号
- optional string CenterRetCode = 8; // 返回码
- optional string CenterRetDesc = 9; // 返回结果说明
- optional string BankTicket = 10; // 中心流水号
- }
- // 管理端调整资金请求
- message t2bManageAdjutAmountReq {
- optional MessageHead Header = 1;
- required uint64 ExtOperatorID = 2; // 外部操作流水(发起方填写)
- required int32 acc_type = 3; // 账户类型:1外部账户;其他暂时填0;
- required uint64 acc = 4; // 资金账号
- required double amount_nml = 5; // 非授信金额(资金调整金额只填这里)
- optional double amount_crd = 6; // 授信金额(资金调整这个字段不要填写)
- optional int32 currency = 7; // 币种(和bank_accountadjustapply的currency字段一个含义)
- required string tradedate = 8; // 交易日(格式:yyyymmdd)
- optional uint64 related_extticket = 9; // 关联外部流水号(发起方根据实际情况填写)
- required int32 adjust_type = 10; // 调整类型(和bank_accountadjustapply的applytype字段对应)
- required uint64 applyuserid = 11; // 申请人ID
- optional string remark = 12; // 备注
- }
- // 管理端调整资金应答
- message t2bManageAdjutAmountRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ExtOperatorID = 4; // 外部操作流水号(发回发起请求的流水)
- optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
- optional string ExchTicket = 6; // 交易所流水号
- optional string remark = 7; // 备注
- }
- // 管理端资金转移请求
- message t2bManageMoveAmountReq {
- optional MessageHead Header = 1;
- required uint64 ExtOperatorID = 2; // 外部操作流水(发起方填写)
- required int32 acc_type = 3; // 账户类型:1外部账户;其他暂时填0;
- required uint64 acc_main = 4; // 资金账号(母账号,资金调整账户填这个)
- required uint64 acc_pay = 5; // 付款账户
- required uint64 acc_receipt = 6; // 收款账户
- required double amount_nml = 7; // 非授信金额(资金调整金额只填这里)
- optional double amount_crd = 8; // 授信金额(资金调整这个字段不要填写)
- optional int32 currency = 9; // 币种(和bank_accountadjustapply的currency字段一个含义)
- required string tradedate = 10; // 交易日(格式:yyyymmdd)
- optional uint64 related_extticket = 11; // 关联外部流水号(发起方根据实际情况填写)
- required int32 adjust_type = 12; // 调整类型(和bank_accountadjustapply的applytype字段对应)
- required uint64 applyuserid = 13; // 申请人ID
- optional string remark = 14; // 备注
- }
- // 管理端资金转移应答
- message t2bManageMoveAmountRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ExtOperatorID = 4; // 外部操作流水号(发回发起请求的流水)
- optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
- optional string ExchTicket = 6; // 交易所流水号
- optional string remark = 7; // 备注
- }
- // 签约银行换签请求
- message t2bSwitchSignBankReq {
- optional MessageHead Header = 1;
- required uint64 ExtOperatorID = 2; // 外部操作流水(发起方填写)
- required uint64 acc_main = 3; // 资金账号
- required string protoCancelSign = 4; // 原签约银行解约报文,t2bBankCancelSignReq
- required int64 sizeProtoCancelSign = 5; // 原签约银行解约报文长度
- required string protoSign = 6; // 目标(新)银行签约报文,t2bBankSignReq
- required int64 sizeProtoSign = 7; // 目标(新)银行签约报文长度
- optional string remark = 8; // 备注
- }
- // 签约银行换签应答
- message t2bSwitchSignBankRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ExtOperatorID = 4; // 外部操作流水号(发回发起请求的流水)
- optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
- optional string ExchTicket = 6; // 交易所流水号
- optional string remark = 7; // 备注
- }
- // 实时行情
- message RealtimeQuote {
- optional uint32 GoodsID = 1; // 商品ID
- optional string GoodsCode = 2; // 商品编码
- optional uint32 DecimalPlace = 3; // 报价小数位
- optional uint64 Last = 4; // 最新价
- optional uint64 LastVolume = 5; // 最新成交量
- optional uint64 LastTurnover = 6; // 最新成交金额
- optional uint64 LastLot = 7; // 最新成交笔数
- optional uint64 TotalVolume = 8; // 总成交量
- optional uint64 TotalHolderVolume = 9; // 总持仓数量
- optional uint64 TotalTurnover = 10; // 总成交金额
- optional uint64 TotalLot = 11; // 总成交笔数
- optional string TradeDate = 12; // 交易日
- optional string DateTime = 13; // 报价时间
- optional uint64 NID = 14; // 数据报文ID
- optional uint64 ReckonPrice = 15; // 结算价
- optional uint64 PreReckonPrice = 16; // 昨日结算价
- optional uint64 NonTotalVolume = 17; // 非交易总成交量
- optional int64 NonTotalHolderVolume = 18; // 非交易总持仓数量
- optional uint64 NonTotalTurnover = 19; // 非交易总成交金额
- optional uint64 NonTotalLot = 20; // 非交易总成交笔数
- optional uint32 IsExsitBidAskPrice = 21; // 是否存在买卖价0:沿用上一次数据1:有数据,如果没有,则默认为0,填此字段,默认为1
- optional uint64 Open = 22; // 开盘价
- optional uint64 High = 23; // 最高价
- optional uint64 Low = 24; // 最低价
- optional uint32 QuoteType = 25; // 行情类型
- optional uint64 PreClose = 26; // 昨收价
- optional uint64 Average = 27; // 均价
- optional uint64 PreHoldVolume = 28; // 昨持仓
- optional uint64 LowLimit = 29; // 跌停价
- optional uint64 HighLimit = 30; // 涨停价
- repeated uint64 BidPriceArray = 31; // 买价从1档~N档,不会存在第2档有数据,而第1档无的情况,如果为0,必须填0(资管港股及参考行情除外)
- repeated uint64 AskPriceArray = 32; // 卖价从1档~N档,不会存在第2档有数据,而第1档无的情况,如果为0,必须填0(资管港股及参考行情除外)
- repeated uint64 BidVolumeArray = 33; // 买量从1档~N档,不会存在第2档有数据,而第1档无的情况,如果为0,必须填0(资管港股及参考行情除外)
- repeated uint64 AskVolumeArray = 34; // 卖量从1档~N档,不会存在第2档有数据,而第1档无的情况,如果为0,必须填0(资管港股及参考行情除外)
- repeated uint64 BidOrderIDArray = 35; // 买挂牌单号1~N档
- repeated uint64 AskOrderIDArray = 36; // 卖挂牌单号1~N档
- repeated uint64 CallOptionPremiumsArray = 37; // 认购权利金1~N档
- repeated uint64 PutOptionPremiumsArray = 38; // 认沽权利金1~N档
- optional uint64 IEV = 39; // 参考平衡价
- optional uint64 IEP = 40; // 参考平衡量
- optional string PublicTradeType = 41; // 公开的交易类型
- optional string BidQueueInfo = 42; // 买大利市
- optional string AskQueueInfo = 43; // 卖大利市
- optional uint64 GreyMarketPrice = 44; // 暗盘价
- repeated uint64 BidOrderVolumeArray = 45; // 买单量1~N档
- repeated uint64 AskOrderVolumeArray = 46; // 卖单量1~N档
- optional double PremiumRate = 47; // 权利金费率
- optional uint64 OptionPremium = 48; // 期权权利金
- optional uint64 OptionAskVolume = 49; // 期权卖量
- optional int64 PctChange = 50; // 涨跌百分比
- optional int64 PriceChangeByPreClose = 51; // 涨跌值,相对于昨收
- optional int64 PriceChangeByOpen = 52; // 涨跌值,相对于今开
- }
- // 商品码
- message WareCode {
- optional int32 ExchangeCode = 1; // 交易所数字代码
- optional int32 WareGroupCode = 2; // optionalint32WareGroupCode
- optional string strWare = 3; // 商品代码(内码)
- optional int32 ReckonPriceType = 4; // 获取结算价类型
- optional int32 ReferenceTime = 5; // 时间范围(单位分钟)
- }
- // 实时行情请求
- message RealtimeQuoteReq {
- optional MessageHead Header = 1;
- repeated WareCode Wares = 2; //
- optional int32 RequestType = 3; // 0表示订阅,非0表示取消订阅
- }
- // 实时行情应答
- message RealtimeQuoteRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- repeated RealtimeQuote PriceRecord = 4; // 实时行情推送数据
- }
- // 商品交易状态
- message MarketInfo {
- optional int32 ExchangeCode = 1; // 交易所数字代码
- optional int32 WareGroupCode = 2; // 商品组数字代码
- optional string strWare = 3; // 商品代码(内码)
- optional int32 TradeState = 4; // 交易状态
- optional string TradeTime = 5; // 交易时间安排
- optional string TradeDay = 6; // 交易日
- }
- // 查询历史Tik数据请求
- message QueryHistoryTikReq {
- optional MessageHead Header = 1; // 消息头
- optional QueryReqPageInfo PageInfo = 2; // 查询分页信息
- optional string TradeDay = 3; // 交易日
- optional int32 TradeDayFlag = 4; // 交易日查询标记,不填写默认为=
- optional int32 BeginTikID = 5; // 开始的tik编号
- optional int32 BeginTikIDFlag = 6; // 开始的tik编号查询标记,不填写默认为=
- optional int32 EndTikID = 7; // 结束的tik编号
- optional int32 EndTikIDFlag = 8; // 结束的tik编号查询标记,不填写默认为=
- optional int32 nSourceID = 9; // 行情源编号
- optional int32 nSourceIDFlag = 10; // 行情源编号查询标记,不填写默认为=
- }
- // 查询历史Tik数据请求
- message QueryWareLastTikReq {
- optional MessageHead Header = 1; // 消息头
- optional QueryReqPageInfo PageInfo = 2; // 查询分页信息
- repeated WareCode WareRecord = 3; //
- optional int32 WareRecordFlag = 4; // 查询标记,不填写默认为=
- }
- // MTP查询历史tik数据请求
- message QueryMTPWareLastTikReq {
- optional MessageHead Header = 1; // 消息头
- optional QueryReqPageInfo PageInfo = 2; // 查询分页信息
- optional int32 ReckonType = 3; // 结算类型
- optional int32 ReckonTypeFlag = 4; // 结算类型查询标记,不填写默认为=
- optional int32 Value = 5; // 根据结算类型的含义表示相关数值
- optional int32 ValueFlag = 6; // 根据结算类型的含义表示相关数值查询标记,不填写默认为=
- optional string startTime = 7; // 开始时间=开盘时间
- optional int32 startTimeFlag = 8; // 开始时间=开盘时间查询标记,不填写默认为=
- optional string endTime = 9; // 结束时间=结算时间
- optional int32 endTimeFlag = 10; // 结束时间=结算时间查询标记,不填写默认为=
- repeated string Symbol = 11; // 交易所行情代码+下划线+合约代码,如:101_AU100
- optional int32 SymbolFlag = 12; // 交易所行情代码+下划线+合约代码,如:101_AU100查询标记,不填写默认为=
- }
- // 商品报价
- message ArrayGoodsQuote {
- optional string Symbol = 1; // 商品代码
- repeated RealtimeQuote PriceRecord = 2; //
- }
- // MTP查询历史tik数据响应
- message QueryMTPWareLastTikRsp_ {
- optional int32 ReckonType = 1; // 结算类型
- optional int32 Value = 2; // 根据结算类型的含义表示相关数值
- repeated ArrayGoodsQuote GoodsQuoteTiks = 3; //
- }
- message QueryMTPWareLastTikRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional QueryRspPageInfo PageInfo = 4; // 查询结果分页信息
- repeated QueryMTPWareLastTikRsp_ Rsps = 5; // 查询结果集
- }
- // 历史tik查询结果
- message QueryHistoryTikRep {
- repeated RealtimeQuote PriceRecord = 1; //
- }
- // 商品信息
- message WareInfo {
- optional int32 ExchCode = 1; // 交易所代码
- optional string Symbol = 2; //
- }
- // 查询数据请求
- message DaysDataReq {
- optional MessageHead Header = 1;
- repeated WareInfo wareInfo = 2; //
- }
- // 盘面数据
- message DaysData {
- optional int32 ExchCode = 1; // 交易所代码
- optional string Symbol = 2; // 商品代码
- optional string Last = 3; // 最新
- optional string LimitHigh = 4; // 涨停
- optional string LimitLow = 5; // 跌停
- }
- // 盘面数据响应
- message DaysDataRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- repeated DaysData daysData = 4; //
- }
- // 结算价查询
- message SettlePriceReq {
- optional MessageHead Header = 1;
- repeated int32 GoodsIds = 2; // 商品ID
- }
- // 结算价
- message SettlePrice {
- required int32 GoodsId = 1; // 商品ID
- required string TradeDate = 2; // 交易日
- required string Price = 3; // 报价
- }
- // 结算价查询应答
- message SettlePriceRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- repeated SettlePrice SettlePrices = 4; //
- }
- // 行情数据报文
- message Quotation {
- optional uint32 GoodsID = 1; // 商品代码
- optional uint32 QuoterID = 2; // 报价商ID
- optional uint64 Bid = 3; // 买价
- optional uint64 Bid2 = 4; // 买价2
- optional uint64 Bid3 = 5; // 买价3
- optional uint64 Bid4 = 6; // 买价4
- optional uint64 Bid5 = 7; // 买价5
- optional int64 BidVolume = 8; // 买量
- optional int64 BidVolume2 = 9; // 买量2
- optional int64 BidVolume3 = 10; // 买量3
- optional int64 BidVolume4 = 11; // 买量4
- optional int64 BidVolume5 = 12; // 买量5
- optional uint64 Ask = 13; // 卖价
- optional uint64 Ask2 = 14; // 卖价2
- optional uint64 Ask3 = 15; // 卖价3
- optional uint64 Ask4 = 16; // 卖价4
- optional uint64 Ask5 = 17; // 卖价5
- optional int64 AskVolume = 18; // 卖量
- optional int64 AskVolume2 = 19; // 卖量2
- optional int64 AskVolume3 = 20; // 卖量3
- optional int64 AskVolume4 = 21; // 卖量4
- optional int64 AskVolume5 = 22; // 卖量5
- optional uint64 CallOptionPremiums = 23; // 认购权利金
- optional uint64 CallOptionPremiums2 = 24; // 认购权利金2
- optional uint64 CallOptionPremiums3 = 25; // 认购权利金3
- optional uint64 CallOptionPremiums4 = 26; // 认购权利金4
- optional uint64 CallOptionPremiums5 = 27; // 认购权利金5
- optional uint64 PutOptionPremiums = 28; // 认沽权利金
- optional uint64 PutOptionPremiums2 = 29; // 认沽权利金2
- optional uint64 PutOptionPremiums3 = 30; // 认沽权利金3
- optional uint64 PutOptionPremiums4 = 31; // 认沽权利金4
- optional uint64 PutOptionPremiums5 = 32; // 认沽权利金5
- optional string DateTime = 33; // 报价时间
- optional uint64 VaildTime = 34; // 行情有效时间(秒)
- optional uint32 QuoteMinValue = 35; // 报价随机量下限
- optional uint32 QuoteMaxValue = 36; // 报价随机量上限
- optional uint64 ReckonPrice = 37; // 结算价
- optional uint64 Last = 38; // 最新价
- optional uint64 LastVolume = 39; // 最新量
- optional uint64 TopBid = 40; // 最高买价
- optional uint64 BottomAsk = 41; // 最低卖价
- optional int64 BidMove = 42; // 买点差
- optional int64 AskMove = 43; // 卖点差
- optional uint32 QuoteSource = 44; // 报价来源
- optional double PremiumRate = 45; // 权利金费率
- optional uint64 OptionAskVolume = 46; // 期权卖量
- }
- // 结算价行情
- message ReckonQuotation {
- optional uint32 MarketId = 1; // 市场Id
- optional string TradeDate = 2; // 交易日
- optional string GoodsCode = 3; // 商品编码
- optional uint64 ReckonPrice = 4; // 结算价
- optional uint64 PreReckonPrice = 5; // 昨日结算价
- optional uint64 TotalHolderQty = 6; // 总持仓量
- optional uint64 UpLimitPrice = 7; // 涨停价
- optional uint64 DnLimitPrice = 8; // 跌停价
- }
- // 下发结算价信息
- message ReckonPriceQuote {
- optional string GoodsCode = 1; // 商品编码
- optional string TradeDate = 2; // 交易日
- optional string DateTime = 3; // 报价时间
- optional uint64 Last = 4; // 最新价
- optional uint64 ReckonPrice = 5; // 结算价
- optional uint64 PreReckonPrice = 6; // 昨日结算价
- optional uint64 HoldVolume = 7; // 持仓量
- optional uint64 UpLimitPrice = 8; // 涨停价
- optional uint64 DnLimitPrice = 9; // 跌停价
- }
- // 履约交易申请请求
- message PerformanceTradeApplyReq {
- optional MessageHead Header = 1;
- optional int64 PerformancePlanTemplateID = 2; // 履约计划模板ID
- optional uint32 PerformanceType = 3; // 履约类型
- optional uint64 RelatedOrderID = 4; // 关联单号(履约类型的关联单号)
- optional uint64 WRID = 5; // 仓单ID(可为空)
- optional double Amount = 6; // 履约金额
- optional uint64 WRTradeQty = 7; // 仓单交易数量
- optional uint64 WRFreezeQty = 8; // 仓单已冻数量
- optional uint64 BuyAccountID = 9; // 买方账号
- optional uint64 SellAccountID = 10; // 卖方账号
- optional uint64 WRTransferUserID = 11; // 仓单受让用户
- optional double BuyerFreezeAmount = 12; // 买方履约前冻结金额
- optional double SellerFreezeAmount = 13; // 卖方履约前冻结金额
- optional string ShipRemark = 14; // 发货备注
- optional string BuyerInfo = 15; // 买方联络
- optional string SellerInfo = 16; // 卖方联络
- optional uint32 MarketID = 17; // 市场ID
- optional uint64 contractid = 18; // 合同ID
- }
- // 履约交易申请应答
- message PerformanceTradeApplyRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 PerformancePlanID = 4; // 履约计划ID
- optional uint64 RelatedOrderID = 5; // 关联单号(履约类型的关联单号)
- }
- // 履约手动确认请求
- message PerformanceManualConfirmReq {
- optional MessageHead Header = 1;
- optional uint64 PerformancePlanStepID = 2; // 履约计划步骤ID
- optional double OverShortAmount = 3; // 溢短金额
- optional uint32 PerformanceExecuteSide = 4; // 履约步骤执行方1买方2
- optional string StepRemark = 5; // 步骤备注
- optional double OverShortQty = 6; // 溢短数量
- optional double ExpressFee = 7; // 运费金额
- }
- // 履约手动确认应答
- message PerformanceManualConfirmRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 PerformancePlanStepID = 4; // 履约计划步骤ID
- }
- // 延期申请请求
- message PerformanceDelayApplyReq {
- optional MessageHead Header = 1;
- optional uint64 PerformancePlanStepID = 2; // 履约计划步骤ID
- optional uint32 delaydays = 3; // 申请延期天数
- optional uint64 applicant = 4; // 申请人
- optional string applyremark = 5; // 申请备注
- }
- // 延期申请应答
- message PerformanceDelayApplyRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 PerformancePlanStepID = 4; // 履约计划步骤ID
- optional uint64 applicant = 5; // 申请人
- }
- // 延期审核请求
- message PerformanceDelayAuditReq {
- optional MessageHead Header = 1;
- optional uint64 PerformancePlanStepID = 2; // 履约计划步骤ID
- optional uint32 delaystatus = 3; // 延期审核状态(2:审核通过3:审核拒绝)
- optional uint64 auditor = 4; // 审核人
- optional string auditremark = 5; // 审核备注
- optional uint64 AutoID = 6; // 延期申请ID
- }
- // 延期审核应答
- message PerformanceDelayAuditRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 PerformancePlanStepID = 4; // 履约计划步骤ID
- optional uint64 auditor = 5; // 审核人
- }
- // 违约申请请求
- message PerformanceContractedApplyReq {
- optional MessageHead Header = 1;
- optional uint64 PerformancePlanID = 2; // 履约计划ID
- optional uint32 BreachType = 3; // 违约方类型
- optional uint64 Applicant = 4; // 违约申请人
- optional string ApplyRemark = 5; // 申请备注
- optional string Attachment = 6; // 附件
- }
- // 违约申请应答
- message PerformanceContractedApplyRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 PerformancePlanID = 4; // 履约计划ID
- }
- // 违约审核请求
- message PerformanceContractedAuditReq {
- optional MessageHead Header = 1;
- optional uint64 PerformancePlanID = 2; // 履约计划ID
- optional uint64 BreachApplyID = 3; // 违约申请ID
- optional uint32 BreachStatus = 4; // 违约状态(2:审核通过3:审核拒绝)
- optional uint64 Auditor = 5; // 违约审核人
- optional uint32 BreachType = 6; // 违约方类型
- optional string AuditRemark = 7; // 审核备注
- }
- // 违约审核应答
- message PerformanceContractedAuditRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 PerformancePlanID = 4; // 履约计划ID
- optional uint64 BreachApplyID = 5; // 违约申请ID
- }
- // 违约确认请求
- message PerformanceContractedConfirmReq {
- optional MessageHead Header = 1;
- optional uint64 PerformancePlanID = 2; // 履约计划ID
- optional uint64 BreachApplyID = 3; // 违约申请ID
- optional uint64 BuyAccountID = 4; // 买方账号
- optional uint64 SellAccountID = 5; // 卖方账号
- optional double BuyAmount = 6; // 买方应付/应收金额
- optional double SellAmount = 7; // 卖方应付/应收金额
- optional double ExchangeAmount = 8; // 交易所应收金额
- }
- // 违约确认应答
- message PerformanceContractedConfirmRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 PerformancePlanID = 4; // 履约计划ID
- optional uint64 BreachApplyID = 5; // 违约申请ID
- }
- // 履约修改联络信息请求
- message PerformanceModifyContactReq {
- optional MessageHead Header = 1;
- optional uint64 PerformancePlanID = 2; // 履约计划ID
- optional uint64 AccountID = 3; // 账号
- optional string ContactInfo = 4; // 联络信息
- }
- // 履约修改联络信息回应
- message PerformanceModifyContactRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 PerformancePlanID = 4; // 履约计划ID
- optional uint64 AccountID = 5; // 账号
- }
- // 履约现货合同生成请求
- message PerformanceTradeContractReq {
- optional MessageHead Header = 1;
- optional uint64 WRTradeDetailID = 2; // 关联成交单ID
- optional uint64 WRTradeOrderID = 3; // 关联委托单ID
- optional uint32 MarketID = 4; // 市场ID
- optional uint64 BuyAccountID = 5; // 买方资金账号
- optional uint64 SellAccountID = 6; // 卖方资金账号
- optional uint64 WRID = 7; // 关联仓单ID
- optional uint64 WRFactorTypeID = 8; // 仓单要素类型ID
- optional string TradeTime = 9; // 成交时间
- optional double TradePrice = 10; // 成交价格
- optional uint64 TradeQty = 11; // 成交数量
- optional double TradeAmount = 12; // 成交金额
- optional uint64 RealTradeQty = 13; // 实际成交数量(算上溢短)
- optional double RealTradeAmount = 14; // 实际成交金额
- optional double PerformanceAmount = 15; // 履约金额(实际成交金额)
- optional int64 PerformancePlanTemplateID = 16; // 履约计划模板ID
- optional string Attachment1 = 17; // 附件1
- optional string Attachment2 = 18; // 附件2
- optional string Remark = 19; // 备注
- optional uint32 PerformanceWay = 20; // 交货模式-2:分步履约
- optional double BuyReleaseRatio = 21; // 买方释放比率[2:分步履约]
- optional double SellReleaseRatio = 22; // 卖方释放比率[2:分步履约]
- optional uint32 ExecuteMode = 23; // 执行方式[2:分步履约]-1:顺序执行
- optional uint32 ExecuteSide = 24; // 执行方[2:分步履约]-1:买方
- optional uint32 PerformanceType = 25; // 履约类型-2:仓单贸易
- optional double BuyFreezeAmount = 26; // 买方冻结金额[2:分步履约]
- optional double SellFreezeAmount = 27; // 卖方冻结金额[2:分步履约]
- optional uint32 MinQty = 28; // 最小执行量[2:分步履约]
- optional uint32 HoldDays = 29; // 合同期限[2:分步履约]
- }
- // 履约现货合同生成应答
- message PerformanceTradeContractRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 WRTradeDetailID = 4; // 关联成交单ID
- optional uint64 WRTradeOrderID = 5; // 关联委托单ID
- optional uint64 ContractID = 6; // 合同ID
- }
- // 履约执行合同请求
- message PerformanceExecuteContractReq {
- optional MessageHead Header = 1;
- optional uint64 ContractID = 2; // 合同ID
- optional uint64 ExecuteQty = 3; // 执行数量
- optional uint32 ApplyExecuteSide = 4; // 申请执行方-1:买方2:卖方
- }
- // 履约执行合同应答
- message PerformanceExecuteContractRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ContractID = 4; // 合同ID
- optional uint64 PerformancePlanID = 5; // 履约计划ID
- }
- // 仓单转移请求
- message ReceiptMoveReq {
- optional MessageHead Header = 1;
- optional uint64 RelatedOrderID = 2; // 关联ID(用于重复消息的处理,以及带回给请求方)
- optional uint32 BuyUserID = 3; // 买方用户ID
- optional uint64 BuyAccountID = 4; // 买方账号
- optional uint32 SellUserID = 5; // 卖方用户ID
- optional uint64 SellAccountID = 6; // 卖方账号
- optional uint64 WRID = 7; // 仓单ID
- optional uint64 WRPos = 8; // 仓单头寸
- optional int32 IsFrozen = 9; // 头寸是否已冻结(0:未冻结,非0:已冻结)
- }
- // 仓单转移回应
- message ReceiptMoveRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 RelatedOrderID = 4; // 关联ID(用于重复消息的处理,以及带回给请求方)
- optional uint64 BuyAccountID = 5; // 买方账号
- optional uint64 SellAccountID = 6; // 卖方账号
- }
- // 仓单持仓操作请求
- message WarehouseSiteReq {
- optional MessageHead Header = 1;
- optional uint64 RelatedOrderID = 2; // 关联ID(用于重复消息的处理,以及带回给请求方)
- optional uint32 UserID = 3; // 仓单持仓所属用户(若存在AccountID则此字段被忽略)
- optional uint64 AccountID = 4; // 仓单持仓所属帐户(若无此数据则指定UserID)
- repeated uint64 WRHoldIDs = 5; // 操作仓单持仓ID
- optional uint64 WrID = 6; // 仓单ID,仅仓单持仓ID未指定时使用仓单ID
- optional int32 SourceStatus = 7; // 仓单持仓原状态(用于原状态校验,若不给出,则不进行原状态校验),解冻时忽略此字段,必须校验。
- optional int32 OperationType = 8; // 操作类型(1:冻结,2:履约冻结,3:解冻,4:履约解冻)
- }
- // 仓单持仓操作回应
- message WarehouseSiteRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 RelatedOrderID = 4; // 关联ID(用于重复消息的处理,以及带回给请求方)
- optional int32 OperationType = 5; // 操作类型(1:冻结,2:履约冻结,3:解冻,4:履约解冻)
- }
- // 仓单服务公共协议结构
- message WRCommon {
- optional uint32 UserID = 1; // 用户ID
- optional uint64 RelatedOrderID = 2; // 关联ID
- optional uint32 BusinessID = 3; // 业务ID
- optional uint64 TradeID = 4; // 成交ID
- optional uint64 AccountID = 5; // 账号ID
- }
- // 仓单拆解并冻结库位[仓单生成业务]请求
- message ReceiptSplitReq {
- optional MessageHead Header = 1;
- optional uint64 RelatedOrderID = 2; // 关联ID(用于重复消息的处理,以及带回给请求方)
- optional uint32 UserID = 3; // 用户ID
- optional uint64 AccountID = 4; // 帐户ID
- optional uint32 GoodsID = 5; // 交易合约ID(来源[SplitSrcPosType]是订单仓单头寸时需要,仓单头寸不需要)
- optional uint32 DeliveryGoodsId = 6; // 交割商品ID
- optional uint32 BrandId = 7; // 品牌ID
- optional uint32 QualityID = 8; // 品质ID
- optional uint32 SpecID = 9; // 规格ID
- optional uint32 WarehouseID = 10; // 仓库ID
- optional uint32 DeliveryMonthID = 11; // 月份ID
- optional int32 PosType = 12; // 头寸类型[SplitSrcPosType(1:订单头寸,2:仓单头寸)]
- optional uint64 PosQty = 13; // 操作头寸数量
- optional int32 IsFrozen = 14; // 头寸是否已冻结(0:未冻结,非0:已冻结)
- optional int32 WRTradeType = 15; // 仓单库位关系表中的成交类型
- }
- // 仓单拆解并冻结库位[仓单生成业务]回应
- message ReceiptSplitRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 RelatedOrderID = 4; // 关联ID(用于重复消息的处理,以及带回给请求方)
- optional double RealQty = 5; // 实际操作头寸数量
- optional uint64 WRID = 6; // 新生成的仓单ID
- }
- // 仓单转订单申请请求
- message ReceiptToHoldApplyReq {
- optional MessageHead Header = 1;
- optional uint64 RelatedOrderID = 2; // 关联ID(用于重复消息的处理,以及带回给请求方)
- optional uint32 UserID = 3; // 用户ID
- optional uint64 AccountID = 4; // 帐户ID
- optional uint32 DeliveryGoodsId = 5; // 交割商品ID
- optional uint32 GoodsID = 6; // 交易合约ID
- optional uint32 BrandId = 7; // 品牌ID
- optional uint32 QualityID = 8; // 品质ID
- optional uint32 SpecID = 9; // 规格ID
- optional uint32 WarehouseID = 10; // 仓库ID
- optional uint32 DeliveryMonthID = 11; // 月份ID
- optional uint64 TransferQty = 12; // 申请转换的仓单数量
- optional uint64 RequestorID = 13; // 申请人
- optional string Remark = 14; // 备注
- }
- // 仓单转订单申请回应
- message ReceiptToHoldApplyRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 RelatedOrderID = 4; // 关联ID(用于重复消息的处理,以及带回给请求方)
- }
- // 仓单转订单审核请求
- message ReceiptToHoldVerifyReq {
- optional MessageHead Header = 1;
- optional uint64 RelatedOrderID = 2; // 关联ID(用于重复消息的处理,以及带回给请求方)
- optional uint32 UserID = 3; // 用户ID
- optional uint64 AccountID = 4; // 帐户ID
- optional uint64 RequestID = 5; // 仓单转换申请表中的主键ID
- optional int32 IsPass = 6; // 审核是否通过(非0:通过;0:未通过)
- optional uint64 AuditerID = 7; // 审核人
- optional string AuditDesc = 8; // 审核描述
- }
- // 仓单转订单审核回应
- message ReceiptToHoldVerifyRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 RelatedOrderID = 4; // 关联ID(用于重复消息的处理,以及带回给请求方)
- }
- // 订单转仓单申请请求
- message HoldToReceiptApplyReq {
- optional MessageHead Header = 1;
- optional uint64 RelatedOrderID = 2; // 关联ID(用于重复消息的处理,以及带回给请求方)
- optional uint32 UserID = 3; // 用户ID
- optional uint64 AccountID = 4; // 帐户ID
- optional uint32 DeliveryGoodsId = 5; // 交割商品ID
- optional uint32 GoodsID = 6; // 交易合约ID
- optional uint32 BrandId = 7; // 品牌ID
- optional uint32 QualityID = 8; // 品质ID
- optional uint32 SpecID = 9; // 规格ID
- optional uint32 WarehouseID = 10; // 仓库ID
- optional uint32 DeliveryMonthID = 11; // 月份ID
- optional uint64 TransferQty = 12; // 申请转换的订单仓单数量
- optional uint64 RequestorID = 13; // 申请人
- optional string Remark = 14; // 备注
- }
- // 订单转仓单申请回应
- message HoldToReceiptApplyRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 RelatedOrderID = 4; // 关联ID(用于重复消息的处理,以及带回给请求方)
- }
- // 订单转仓单审核请求
- message HoldToReceiptVerifyReq {
- optional MessageHead Header = 1;
- optional uint64 RelatedOrderID = 2; // 关联ID(用于重复消息的处理,以及带回给请求方)
- optional uint32 UserID = 3; // 用户ID
- optional uint64 AccountID = 4; // 帐户ID
- optional uint64 RequestID = 5; // 仓单转换申请表中的主键ID
- optional int32 IsPass = 6; // 审核是否通过(非0:通过;0:未通过)
- optional uint64 AuditerID = 7; // 审核人
- optional string AuditDesc = 8; // 审核描述
- }
- // 订单转仓单审核回应
- message HoldToReceiptVerifyRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 RelatedOrderID = 4; // 关联ID(用于重复消息的处理,以及带回给请求方)
- }
- // 提货申请请求
- message LadingApplyReq {
- optional MessageHead Header = 1;
- optional WRCommon Common = 2; //
- optional string ReciverName = 3; // 提货人姓名
- optional int32 CardTypeID = 4; // 提货人证件类型
- optional string CardNum = 5; // 提货人证件号码
- optional string PhoneNum = 6; // 提货人联系方式
- optional string Address = 7; // 提货人详细地址
- optional int32 TakeMode = 8; // 提货方式
- optional string TakeRemark = 9; // 提货备注
- repeated NonStandardLading NonStandard = 10; // 非标仓单提货
- repeated LocationOperateInfo LocationOpInfo = 11; // 标准库位ID,如果是标准拆分模式,还需要数量
- optional int32 WRTradeType = 12; // 仓单库位关系表中的成交类型(提货该值为6)
- optional TakeDeliveryDistributeInfo DistributeInfo = 13; // 提货配送表信息
- optional uint64 AccountID = 14; // 账户ID
- }
- // 提货申请回应
- message LadingApplyRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional WRCommon Common = 4; //
- optional uint64 TakeOrderID = 5; // 新生成的提货ID,数据库表主键ID
- }
- // 提货审核请求
- message LadingVerifyReq {
- optional MessageHead Header = 1;
- optional WRCommon Common = 2; //
- repeated uint64 WRID = 3; // 新生成的仓单ID
- optional uint64 TakeOrderID = 4; // 新生成的提货ID,数据库表主键ID
- optional int32 IsPass = 5; // 是否通过
- optional uint64 Auditer = 6; // 审核人
- optional string DateTime = 7; // 审核时间(YYYY-MM-DDHH:MM:SS)
- optional string CheckRemark = 8; // 审核备注
- optional uint64 DistributeOrderID = 9; // 配送单号
- optional int32 TakeMode = 10; // 提货方式
- optional uint64 AccountID = 11; // 账户ID
- }
- // 提货审核回应
- message LadingVerifyRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional WRCommon Common = 4; //
- optional uint64 TakeOrderID = 5; // 提货ID,数据库表中主键唯一ID
- }
- // 仓单转移到买方--仓单服务内部处理
- message ReceiptMoveToBuyerReq {
- optional MessageHead Header = 1;
- optional uint64 RelatedOrderID = 2; // 关联ID(用于重复消息的处理,以及带回给请求方)
- optional uint64 TradeID = 3; // 当前操作ID
- optional uint32 UserID = 4; // 买方用户ID
- optional uint64 AccountID = 5; // 买方账号
- optional uint64 WRID = 6; // 仓单ID
- optional uint64 WRPos = 7; // 仓单头寸
- optional uint32 SellerID = 8; // 卖方用户
- }
- // 合并仓单持仓请求
- message MergeWRHoldReq {
- optional MessageHead Header = 1;
- optional WRCommon Common = 2; //
- optional int32 Origin = 3; // 指定提取库位的来源,四选一(enumePickupOrigin)
- repeated uint64 WRHoldIDs = 4; // 相同要素的仓单持仓ID(由发起方校验所有仓单持仓均为相同要素,服务端将不做要素判断)
- optional uint64 SourceWRID = 5; // 仓单ID,从仓单中提取仓单持仓,指定提取头寸数量
- optional uint64 ReceiptFactorID = 6; // 仓单要素ID
- optional ReceiptFactor FactorInfo = 7; // 具体仓单要素
- optional int32 PosNum = 8; // 提取头寸数量
- optional int32 LocationStatusSource = 9; // 仓单持仓源状态
- optional int32 LocationStatusResult = 10; // 仓单持仓结果状态(更新)
- optional int32 WRTradeType = 11; // 仓单持仓关系表中的成交类型
- }
- // 合并仓单持仓回应
- message MergeWRHoldRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional WRCommon Common = 4; //
- optional uint64 WRID = 5; // 新生成的仓单ID
- }
- // 库位状态更新请求
- message Deprecated_LocationUpdateReq {
- optional MessageHead Header = 1;
- optional WRCommon Common = 2; //
- repeated uint64 LocationIDs = 3; // 操作库位ID
- optional uint64 WrID = 4; // 仓单ID,仅库位ID未指定时使用仓单ID
- optional int32 SourceStatus = 5; // 库位原状态
- optional int32 NewStatus = 6; // 新状态
- }
- // 库位状态更新回应-对应库位操作
- message Deprecated_LocationUpdateRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional WRCommon Common = 4; //
- optional int32 SourceStatus = 5; // 库位原状态
- optional int32 NewStatus = 6; // 新状态
- }
- // 仓单持仓转移请求
- message WRHoldMoveReq {
- optional MessageHead Header = 1;
- optional WRCommon Common = 2; //
- optional uint64 DestUserID = 3; // 目标用户ID(库位转移的目标用户)--来源用户填充到Common结构
- optional int32 Origin = 4; // 数据源(enumeLocationMoveOrigin)
- optional uint64 WRID = 5; // 仓单ID(按仓单ID转移,指定头寸数量若数量为0则为全部头寸)
- optional ReceiptFactor Factor = 6; // 仓单要素(按仓单要素转移,需要给出头寸数量)
- optional uint64 FactorID = 7; // 仓单要素ID----未实现
- optional uint64 PosNum = 8; // 头寸数量(指定数据源里面的头寸数量,若为0则为全部)
- optional int32 LocationStatusSource = 9; // 仓单持仓源状态(转移前的库位状态)
- optional int32 LocationStatusResult = 10; // 仓单持仓结果状态(转移后库位更新状态)
- optional int32 WRTradeType = 11; // 仓单持仓关系表中的成交类型
- }
- // 仓单持仓转移回应
- message WRHoldMoveRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional WRCommon Common = 4; //
- optional uint64 DestUserID = 5; // 库位目标用户
- optional uint64 WRID = 6; // 结果仓单ID
- }
- // 库位数据
- message WRLocationInfoEx {
- optional uint32 LocationUserID = 1; // 库位持有人
- optional string LocationCode = 2; // 库位编号
- optional double RealQty = 3; // 实际数量
- }
- // 提单数据
- message LadingBillInfoEx {
- optional string LadingBillCode = 1; // 提单编号
- optional uint32 StoreUserID = 2; // 存货人
- optional uint64 LocationCount = 3; // 库位总数
- optional uint64 RealTotalQty = 4; // 总数量(标准数量,变量名就不改了)
- optional string StorageTime = 5; // 入库时间(YYYY-MM-DDHH:MM:SS)
- optional string RelatedPolicy = 6; // 关联保险单
- optional string PolicyDueTime = 7; // 保险到期时间(YYYY-MM-DDHH:MM:SS)
- optional int32 PledgeStatus = 8; // 质押状态-1:未质押
- optional string PledgeRemark = 9; // 质押描述
- repeated WRLocationInfoEx WRLocation = 10; // 库位信息(多个)
- }
- // 仓单数据
- message WRInfoEx {
- optional uint32 WRUserID = 1; // 仓单持有人ID
- optional int32 WrType = 2; // 仓单类型-1
- optional string WRFactorTypeName = 3; // 仓单要素名
- optional uint32 DeliveryGoodsID = 4; // 交割商品ID
- optional uint32 BrandID = 5; // 品牌ID
- optional uint32 QualityID = 6; // 品质ID
- optional uint32 SpecID = 7; // 规格ID
- optional uint32 WarehouseID = 8; // 仓库ID
- optional uint32 MonthID = 9; // 月份ID
- optional uint64 RegQty = 10; // 注册数量
- repeated LadingBillInfoEx LadingBill = 11; // 提单信息(多个)
- optional uint64 WRAccountID = 12; // 仓单持有人账户ID
- }
- // 仓单注册审核已通过
- message ReceiptRegisterSuccessReq {
- optional MessageHead Header = 1;
- optional WRCommon Common = 2; //
- optional uint64 RegisterID = 3; // 仓单注册表中的主键ID
- optional WRInfoEx WR = 4; // 仓单信息
- optional int32 WRTradeType = 5; // 仓单库位关系表中的成交类型
- optional int32 AuditID = 6; // 审核人ID
- }
- // 仓单注册审核已通过
- message ReceiptRegisterSuccessRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional WRCommon Common = 4; //
- optional uint64 RegisterID = 5; // 仓单注册表中的主键ID
- }
- // 仓单要素结构
- message ReceiptFactor {
- optional uint32 DeliveryGoodsId = 1; // 交割商品ID
- optional uint32 BrandId = 2; // 品牌ID
- optional uint32 QualityID = 3; // 品质ID
- optional uint32 SpecID = 4; // 规格ID
- optional uint32 WarehouseID = 5; // 仓库ID
- optional uint32 DeliveryMonthID = 6; // 月份ID
- }
- // 非标仓单提货要素
- message NonStandardLading {
- optional ReceiptFactor factor = 1; // 仓单要素
- optional int32 pos = 2; // 数量
- }
- // 提货撤消请求
- message LadingCancelReq {
- optional MessageHead Header = 1;
- optional WRCommon Common = 2; //
- optional uint64 TakeOrderID = 3; // 新生成的提货ID,数据库表主键ID
- optional uint64 DistributeOrderID = 4; // 配送单号
- optional int32 TakeMode = 5; // 提货方式
- optional uint64 AccountID = 6; // 资金账号
- }
- // 提货撤消回应
- message LadingCancelRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional WRCommon Common = 4; //
- optional uint64 TakeOrderID = 5; // 新生成的提货ID,数据库表主键ID
- }
- // 仓单注册申请请求
- message ReceiptRegisterReq {
- optional MessageHead Header = 1;
- optional uint32 deliverygoodsid = 2; // 交割商品id
- optional uint32 brandid = 3; // 品牌id
- optional uint32 qualityid = 4; // 品质id
- optional uint32 specid = 5; // 规格id
- optional uint32 warehouseid = 6; // 仓库ID
- optional uint32 deliverymonthid = 7; // 月份ID,即期填0或者不填
- optional int32 wrtype = 8; // 仓单类型-1
- optional uint32 wruserid = 9; // 持有人id(userid)
- optional uint64 qty = 10; // 申请数量
- repeated LadingBillInfoEx LadingBill = 11; // 提单信息(多个)
- optional string requestorid = 12; // 申请人(loginid)
- optional uint64 accountid = 13; // 账户ID
- }
- // 仓单注册申请回应
- message ReceiptRegisterRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 WRRegisterID = 4; // 新生成的申请ID,数据库表主键ID
- }
- // 撤销申请请求
- message DelReceiptRegisterReq {
- optional MessageHead Header = 1;
- optional uint64 WRRegisterID = 2; // 新生成的申请ID,数据库表主键ID
- }
- // 撤销申请回应
- message DelReceiptRegisterRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- }
- // 库位操作信息
- message LocationOperateInfo {
- optional uint64 LocationID = 1; // 库位ID
- optional uint64 OperateQty = 2; // 操作数量
- }
- // 退市订单转仓单请求
- message HoldToReceiptDelistReq {
- optional MessageHead Header = 1;
- optional uint64 RelatedOrderID = 2; // 关联ID(用于重复消息的处理,以及带回给请求方)
- optional uint32 GoodsID = 3; // 交易合约ID
- optional uint64 RequestorID = 4; // 申请人
- optional string Remark = 5; // 备注
- }
- // 退市订单转仓单回应
- message HoldToReceiptDelistRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 RelatedOrderID = 4; // 关联ID(用于重复消息的处理,以及带回给请求方)
- }
- // 提货配送表信息
- message TakeDeliveryDistributeInfo {
- optional int32 LogisticsUserID = 1; // 物流机构用户ID
- optional uint64 LogisticAccountID = 2; // 物流机构资金账户
- optional uint64 TakerAccountID = 3; // 提货人资金账户
- optional string StartAddress = 4; // 出发地
- optional string EndAddress = 5; // 目的地
- optional string GoodsTypeName = 6; // 货物类别
- optional int32 TruckNum = 7; // 需车数
- optional string Contacts = 8; // 联系人
- optional string Phone = 9; // 联系电话
- optional int32 GoodsTypeCode = 10; // 货物类别ID
- optional string ShowupTime = 11; // 到场时间(YYYY-MM-DDHH:MM:SS)
- optional string Remark = 12; // 备注
- }
- // 运费拒绝请求
- message FreightRejectReq {
- optional MessageHead Header = 1;
- optional WRCommon Common = 2; //
- optional uint64 DistributeOrderID = 3; // 配送单号
- }
- // 运费拒绝响应
- message FreightRejectRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional WRCommon Common = 4; //
- optional uint64 DistributeOrderID = 5; // 配送单号
- }
- // 运费确认请求
- message FreightConfirmReq {
- optional MessageHead Header = 1;
- optional WRCommon Common = 2; //
- optional uint64 DistributeOrderID = 3; // 配送单号
- optional double Freight = 4; // 运费
- }
- // 运费确认响应
- message FreightConfirmRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional WRCommon Common = 4; //
- optional uint64 DistributeOrderID = 5; // 配送单号
- }
- // 收货确认请求
- message ReceiveConfirmReq {
- optional MessageHead Header = 1;
- optional WRCommon Common = 2; //
- optional uint64 DistributeOrderID = 3; // 配送单号
- optional int32 TakeMode = 4; // 提货方式
- optional uint64 TakeOrderID = 5; // 新生成的提货ID,数据库表主键ID
- }
- // 收货确认响应
- message ReceiveConfirmRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional WRCommon Common = 4; //
- optional uint64 DistributeOrderID = 5; // 配送单号
- optional uint64 TakeOrderID = 6; // 新生成的提货ID,数据库表主键ID
- }
- // 发货信息请求
- message DeliveryDistributeInfoReq {
- optional MessageHead Header = 1;
- optional WRCommon Common = 2; //
- optional uint64 TakeOrderID = 3; // 提货ID
- optional int32 EnterpriseID = 4; // 申请人用户ID
- optional string EnterpriseName = 5; // 申请人姓名
- optional uint64 DistributeOrderID = 6; // 配送单ID
- optional double Freight = 7; // 运费
- optional TakeDeliveryDistributeInfo DistributeInfo = 8; // 提货配送表信息
- }
- // 发货信息响应
- message DeliveryDistributeInfoRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional WRCommon Common = 4; //
- optional uint64 TakeOrderID = 5; // 提货ID
- optional uint64 DistributeOrderID = 6; // 配送单ID
- optional string OutLogisticsID = 7; // 外部物流单号
- }
- // 重新发布请求
- message RetransmitDistributeReq {
- optional MessageHead Header = 1;
- optional WRCommon Common = 2; //
- optional uint64 DistributeOrderID = 3; // 配送单号
- optional int32 TakeMode = 4; // 提货方式
- optional uint64 TakeOrderID = 5; // 新生成的提货ID,数据库表主键ID
- optional int32 IsRetransmit = 6; // 是否重新发送
- }
- // 重新发布响应
- message RetransmitDistributeRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional WRCommon Common = 4; //
- optional uint64 DistributeOrderID = 5; // 配送单号
- optional uint64 TakeOrderID = 6; // 新生成的提货ID,数据库表主键ID
- }
- // 提货计划审核通过请求
- message TakePlanReq {
- optional MessageHead Header = 1;
- optional WRCommon Common = 2; //
- optional uint64 TakePlanID = 3; // 计划ID
- optional uint64 ContractID = 4; // 关联合同ID
- optional string TradeDate = 5; // 交易日
- optional uint32 MarketID = 6; // 市场ID
- optional uint32 UserID = 7; // 买方用户ID(收货方)
- optional uint64 AccountID = 8; // 买方资金账号
- optional uint32 BuyUserID = 9; // 买方用户ID(收货方)
- optional uint64 BuyAccountID = 10; // 买方资金账号
- optional uint32 SellUserID = 11; // 卖方用户ID(供货方)
- optional uint64 WRID = 12; // 关联仓单ID
- optional uint64 WRFactorTypeID = 13; // 仓单要素类型ID
- optional uint32 TakeQty = 14; // 提货数量
- optional uint32 RealQty = 15; // 剩余数量
- optional string PlanDate = 16; // 计划日期
- optional uint32 PlanDays = 17; // 计划提货周期(天)
- optional string TakeAddress = 18; // 提货地点
- optional string SellContact = 19; // 堆场管理联系人
- optional string SellContactPhoneNumber = 20; // 堆块管理联系人电话
- optional string TrusteeName = 21; // 受托方名称
- optional string TrustPhoneNumber = 22; // 受托方联系方式
- optional string DeliveryPlace = 23; // 收货地点
- optional string BuyContact = 24; // 现场联系人
- optional string BuyContactPhoneNumber = 25; // 现货联系人电话
- optional uint32 TakePlanMode = 26; // 提货方式
- optional uint32 TakePlanStatus = 27; // 提货计划状态
- optional uint32 HandleStatus = 28; // 处理状态
- optional string ApplyUserID = 29; // 申请人
- optional string AuditUserID = 30; // 审核人
- optional string ApplyDate = 31; // 申请时间
- optional string AuditDate = 32; // 审核时间
- optional string AuditRemark = 33; // 审核备注
- }
- // 提货计划审核通过响应
- message TakePlanRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional WRCommon Common = 4; //
- optional uint64 TakePlanID = 5; // 计划ID
- optional uint64 ContractID = 6; // 关联合同ID
- }
- // 仓单贸易浮动价商品配置信息
- message WRGoodsInfo {
- optional uint32 GoodsID = 1; // 配置商品ID
- optional string GoodsCode = 2; // 配置商品代码
- optional double PriceFactor = 3; // 商品价格系数
- optional double PriceMove = 4; // 商品升贴水值
- optional double WeightRatio = 5; // 商品重量系数
- }
- // 仓单贸易挂牌委托请求
- message WRListingOrderReq {
- optional MessageHead Header = 1;
- optional uint32 UserID = 2; // 用户ID
- optional uint64 AccountID = 3; // 资金账号
- optional uint32 IsSpecified = 4; // 是否指定对手
- repeated uint32 MatchUserIDs = 5; // 仓单贸易对手用户ID集合(指定对手时填写)
- optional uint64 OrderQty = 6; // 委托数量
- optional uint32 DeliveryGoodsID = 7; // 交割商品商品ID
- optional uint32 BrandID = 8; // 品牌ID
- optional uint32 QualityID = 9; // 品质ID
- optional uint32 SpecID = 10; // 规格ID
- optional uint32 WarehouseID = 11; // 仓库ID
- optional uint32 DeliveryMonthID = 12; // 月份ID
- optional uint32 WRPriceType = 13; // 价格方式
- optional double FixedPrice = 14; // 固定价格
- repeated WRGoodsInfo WRTradeGoods = 15; // 仓单贸易商品配置集合(浮动价时填写)
- optional double PriceFactor = 16; // 价格系数(浮动价时填写)-[挂牌]
- optional double PriceMove = 17; // 升贴水(浮动价时填写)
- optional uint32 TimevalidType = 18; // 时间有效类型
- optional string ValidTime = 19; // 有效期限
- optional double FirstRatio = 20; // 首付比例
- optional int64 PerformanceTemplateID = 21; // 履约计划模板ID
- optional uint32 OrderSrc = 22; // 委托来源
- optional string ClientSerialNo = 23; // 客户端流水号
- optional string ClientOrderTime = 24; // 客户端委托时间
- optional uint32 ClientType = 25; // 终端类型
- optional uint64 OperatorID = 26; // 操作员账号ID
- optional uint32 BuyOrSell = 27; // 买卖方向
- optional uint32 PriceDisplayMode = 28; // 浮动价显示方式
- optional uint32 CanBargain = 29; // 挂牌是否可议价0:不可1:可-摘牌是否议价
- optional string Attachment1 = 30; // 附件1
- optional string Attachment2 = 31; // 附件2
- optional string Remark = 32; // 备注
- optional uint64 ApplyID = 33; // 申请ID
- }
- // 仓单贸易挂牌委托响应
- message WRListingOrderRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint32 UserID = 4; // 用户ID
- optional uint64 AccountID = 5; // 资金账号
- optional uint64 WRTradeOrderID = 6; // 仓单贸易委托单ID
- optional uint64 FreezeQty = 7; // 冻结数量
- optional string OrderTime = 8; // 接收委托交易的时间
- optional string ClientSerialNo = 9; // 客户端流水号
- }
- // 挂牌撤单请求
- message WRListingCancelOrderReq {
- optional MessageHead Header = 1;
- optional uint32 UserID = 2; // 用户ID
- optional uint64 AccountID = 3; // 资金账号
- optional uint64 OldWRTradeOrderID = 4; // 目标仓单贸易委托单ID
- optional uint32 OrderSrc = 5; // 委托来源
- optional string ClientSerialNo = 6; // 客户端流水号
- optional string ClientOrderTime = 7; // 客户端委托时间
- optional uint32 ClientType = 8; // 终端类型
- optional uint64 OperatorID = 9; // 操作员账号ID
- optional uint32 BuyOrSell = 10; // 买卖方向
- }
- // 挂牌撤单应答
- message WRListingCancelOrderRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 WRTradeCancelID = 4; // 仓单贸易撤单号
- optional uint64 OldWRTradeOrderID = 5; // 目标仓单贸易委托单ID
- optional uint32 UserID = 6; // 用户ID
- optional uint64 AccountID = 7; // 资金账号
- optional uint64 CancelQty = 8; // 撤单数量
- optional string OrderTime = 9; // 接受撤单的时间
- optional string ClientSerialNo = 10; // 客户端流水号
- }
- // 摘牌委托请求
- message WRDelistingOrderReq {
- optional MessageHead Header = 1;
- optional uint32 UserID = 2; // 用户ID
- optional uint64 AccountID = 3; // 资金账号
- optional uint64 RelatedWRTradeOrderID = 4; // 关联委托单号(摘牌委托关联挂牌委托单ID)
- optional uint32 WRTransferUserID = 5; // 仓单受让用户
- optional uint64 OrderQty = 6; // 委托数量
- optional uint32 OrderSrc = 7; // 委托来源
- optional string ClientSerialNo = 8; // 客户端流水号
- optional string ClientOrderTime = 9; // 客户端委托时间
- optional uint32 ClientType = 10; // 终端类型
- optional uint64 OperatorID = 11; // 操作员账号ID
- optional uint32 BuyOrSell = 12; // 买卖方向
- optional uint64 ApplyID = 13; // 申请ID
- }
- // 摘牌委托应答
- message WRDelistingOrderRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint32 UserID = 4; // 用户ID
- optional uint64 AccountID = 5; // 资金账号
- optional uint64 WRTradeOrderID = 6; // 仓单贸易委托单ID
- optional uint64 RelatedWRTradeOrderID = 7; // 关联委托单号(摘牌委托关联挂牌委托单ID)
- optional double FreezeAmount = 8; // 冻结货款
- optional string OrderTime = 9; // 接收委托交易的时间
- optional string ClientSerialNo = 10; // 客户端流水号
- }
- // 指定对手变更请求
- message WRChangeListingMatchDetailReq {
- optional MessageHead Header = 1;
- optional uint32 UserID = 2; // 用户ID
- optional uint64 RelatedWRTradeOrderID = 3; // 关联委托单号
- repeated uint32 MatchUserIDs = 4; // 仓单贸易对手用户ID集合
- }
- // 管理端议价委托请求
- message WRManageProtoOrderReq {
- optional MessageHead Header = 1;
- optional uint32 UserID = 2; // 用户ID
- optional uint64 WRBargainID = 3; // 议价申请ID
- optional uint64 AccountID = 4; // 资金账号
- optional string ApplyPrice = 5; // 协议价格
- optional uint64 RelatedOrderID = 6; // 议价关联挂牌委托单号
- optional uint32 WRTransferUserID = 7; // 仓单受让用户
- optional uint64 ApplyQty = 8; // 议价数量
- optional uint32 OrderSrc = 9; // 委托来源
- optional string ClientSerialNo = 10; // 客户端流水号
- optional string ClientOrderTime = 11; // 客户端委托时间
- optional uint32 ClientType = 12; // 终端类型
- optional uint64 OperatorID = 13; // 操作员账号ID
- optional uint32 BuyOrSell = 14; // 买卖方向:关联挂牌委托单相反方向
- }
- // 管理端议价委托应答
- message WRManageProtoOrderRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint32 UserID = 4; // 用户ID
- optional uint64 AccountID = 5; // 资金账号
- optional uint64 WRTradeOrderID = 6; // 摘牌委托单ID
- optional string OrderTime = 7; // 接收委托交易的时间
- optional string ClientSerialNo = 8; // 客户端流水号
- }
- // 卖方挂牌上架请求
- message ListingStockSaleReq {
- optional MessageHead Header = 1;
- optional uint32 UserID = 2; // 用户ID
- optional uint64 AccountID = 3; // 资金账号
- optional uint32 DeliveryGoodsID = 4; // 交割商品商品ID
- optional uint32 OrderSrc = 5; // 委托来源
- optional string ClientSerialNo = 6; // 客户端流水号
- optional string ClientOrderTime = 7; // 客户端委托时间
- optional uint32 ClientType = 8; // 终端类型
- optional uint64 OperatorID = 9; // 操作员账号ID
- }
- // 卖方挂牌上架应答
- message ListingStockSaleRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint32 UserID = 4; // 用户ID
- optional uint64 AccountID = 5; // 资金账号
- optional string OrderTime = 6; // 接收委托交易的时间
- optional string ClientSerialNo = 7; // 客户端流水号
- }
- // 现货挂牌提货请求
- message ListingStockTakeReq {
- optional MessageHead Header = 1;
- optional uint32 UserID = 2; // 用户ID
- optional uint64 AccountID = 3; // 资金账号
- optional uint32 DeliveryGoodsID = 4; // 交割商品商品ID
- optional uint32 OrderSrc = 5; // 委托来源
- optional string ClientSerialNo = 6; // 客户端流水号
- optional string ClientOrderTime = 7; // 客户端委托时间
- optional uint32 ClientType = 8; // 终端类型
- }
- // 现货挂牌提货应答
- message ListingStockTakeRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint32 UserID = 4; // 用户ID
- optional uint64 AccountID = 5; // 资金账号
- optional string OrderTime = 6; // 接收委托交易的时间
- optional string ClientSerialNo = 7; // 客户端流水号
- }
- // 合同激活请求
- message ContractActivationReq {
- optional MessageHead Header = 1;
- optional uint64 ExtBusinessID = 2; // 外部业务流水号
- optional uint64 SCFContractID = 3; // SCF合同ID
- optional int32 SCFContractType = 4; // 合同类型
- optional uint64 LenderAccountID = 5; // 贷款方资金账号
- repeated uint64 wrholdids = 6; // 仓单持仓ID集合
- optional uint64 WRFactorTypeID = 7; // 仓单要素类型ID
- optional uint64 DeliveryGoodsID = 8; // 交割商品ID
- optional uint64 BrandID = 9; // 品牌ID
- optional uint64 QualityID = 10; // 品质ID
- optional uint64 SpecID = 11; // 规格ID
- optional uint64 WarehouseID = 12; // 仓库ID
- optional uint64 DeliveryMonthID = 13; // 月份ID
- optional double WRCurAmount = 14; // 仓单持有估值
- repeated ContractEstimateConfig estimate_config = 15; // 估值配置
- optional double price_move = 16; // 估值升贴水
- }
- // 合同激活应答
- message ContractActivationRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 SCFContractID = 4; // SCF合同ID
- optional uint64 SCFTicketID = 5; // 供应链金融流水ID
- optional uint64 ExtBusinessID = 6; // 外部业务流水号
- optional int32 Status = 7; // 状态
- }
- // 合同确认请求
- message ContractConfirmReq {
- optional MessageHead Header = 1;
- optional uint64 ExtBusinessID = 2; // 外部业务流水号
- optional uint64 SCFContractID = 3; // SCF合同ID
- optional uint64 BorrowerAccountID = 4; // 借款方资金账号
- optional uint64 WRFactorTypeID = 5; // 仓单要素类型ID
- optional uint64 WRPositionQty = 6; // 仓单头寸数量
- repeated ContractEstimateConfig estimate_config = 7; // 估值配置
- optional double price_move = 8; // 估值升贴水
- }
- // 合同确认应答
- message ContractConfirmRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 SCFContractID = 4; // SCF合同ID
- optional uint64 SCFTicketID = 5; // 供应链金融流水ID
- optional uint64 ExtBusinessID = 6; // 外部业务流水号
- optional int32 Status = 7; // 状态
- }
- // 手动结息请求
- message ManualInterestSettlementReq {
- optional MessageHead Header = 1;
- optional uint64 ExtBusinessID = 2; // 外部业务流水号
- optional uint64 SCFContractID = 3; // SCF合同ID
- optional int32 SCFContractType = 4; // 合同类型
- }
- // 手动结息应答
- message ManualInterestSettlementRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 SCFContractID = 4; // SCF合同ID
- optional uint64 SCFTicketID = 5; // 供应链金融流水ID
- optional uint64 ExtBusinessID = 6; // 外部业务流水号
- optional int32 Status = 7; // 状态
- }
- // 仓单回购请求
- message WarehouseRepurchaseReq {
- optional MessageHead Header = 1;
- optional uint64 ExtBusinessID = 2; // 外部业务流水号
- optional uint64 SCFContractID = 3; // SCF合同ID
- optional int32 SCFContractType = 4; // 合同类型
- optional uint64 WRPositionQty = 5; // 仓单头寸数量
- }
- // 仓单回购应答
- message WarehouseRepurchaseRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 SCFContractID = 4; // SCF合同ID
- optional uint64 SCFTicketID = 5; // 供应链金融流水ID
- optional uint64 ExtBusinessID = 6; // 外部业务流水号
- optional int32 Status = 7; // 状态
- }
- // 支付欠款请求
- message PaymentArrearsReq {
- optional MessageHead Header = 1;
- optional uint64 ExtBusinessID = 2; // 外部业务流水号
- optional uint64 SCFContractID = 3; // SCF合同ID
- optional int32 SCFContractType = 4; // 合同类型
- }
- // 支付欠款应答
- message PaymentArrearsRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 SCFContractID = 4; // SCF合同ID
- optional uint64 SCFTicketID = 5; // 供应链金融流水ID
- optional uint64 ExtBusinessID = 6; // 外部业务流水号
- optional int32 Status = 7; // 状态
- }
- // 违约确认请求
- message SCFBreachConfirmReq {
- optional MessageHead Header = 1;
- optional uint64 ExtBusinessID = 2; // 外部业务流水号
- optional uint64 SCFContractID = 3; // SCF合同ID
- optional int32 SCFContractType = 4; // 合同类型
- }
- // 违约确认应答
- message SCFBreachConfirmRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 SCFContractID = 4; // SCF合同ID
- optional uint64 SCFTicketID = 5; // 供应链金融流水ID
- optional uint64 ExtBusinessID = 6; // 外部业务流水号
- optional int32 BreachStatus = 7; // 违约状态
- optional int32 Status = 8; // 状态
- }
- // 违约处理请求
- message SCFBreachHandleReq {
- optional MessageHead Header = 1;
- optional uint64 ExtBusinessID = 2; // 外部业务流水号
- optional uint64 SCFContractID = 3; // SCF合同ID
- optional int32 SCFContractType = 4; // 合同类型
- optional double BreachAmount = 5; // 违约金额
- }
- // 违约处理应答
- message SCFBreachHandleRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 SCFContractID = 4; // SCF合同ID
- optional uint64 SCFTicketID = 5; // 供应链金融流水ID
- optional uint64 ExtBusinessID = 6; // 外部业务流水号
- optional int32 BreachStatus = 7; // 违约状态
- optional int32 Status = 8; // 状态
- }
- // 关闭合同请求
- message CloseContractReq {
- optional MessageHead Header = 1;
- optional uint64 ExtBusinessID = 2; // 外部业务流水号
- optional uint64 SCFContractID = 3; // SCF合同ID
- optional int32 SCFContractType = 4; // 合同类型
- }
- // 关闭合同应答
- message CloseContractRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 SCFContractID = 4; // SCF合同ID
- optional uint64 SCFTicketID = 5; // 供应链金融流水ID
- optional uint64 ExtBusinessID = 6; // 外部业务流水号
- optional int32 Status = 7; // 状态
- }
- // 增加合作方资金请求
- message AddPartnerFundReq {
- optional MessageHead Header = 1;
- optional uint64 ExtBusinessID = 2; // 外部业务流水号
- optional uint64 SCFContractID = 3; // SCF合同ID
- optional int32 SCFContractType = 4; // 合同类型
- optional double AddAmount = 5; // 增加金额
- }
- // 增加合作方资金应答
- message AddPartnerfundRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 SCFContractID = 4; // SCF合同ID
- optional uint64 SCFTicketID = 5; // 供应链金融流水ID
- optional uint64 ExtBusinessID = 6; // 外部业务流水号
- optional int32 Status = 7; // 状态
- }
- // 手动还款请求
- message ManualRepayReq {
- optional MessageHead Header = 1;
- optional uint64 ExtBusinessID = 2; // 外部业务流水号
- optional uint64 SCFContractID = 3; // SCF合同ID
- optional int32 SCFContractType = 4; // 合同类型
- optional double RepayAmount = 5; // 还款金额
- }
- // 手动还款应答
- message ManualRepayRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 SCFContractID = 4; // SCF合同ID
- optional uint64 SCFTicketID = 5; // 供应链金融流水ID
- optional uint64 ExtBusinessID = 6; // 外部业务流水号
- optional int32 Status = 7; // 状态
- }
- // 支付保证金请求
- message PaymentMarginReq {
- optional MessageHead Header = 1;
- optional uint64 ExtBusinessID = 2; // 外部业务流水号
- optional uint64 SCFContractID = 3; // SCF合同ID
- optional int32 SCFContractType = 4; // 合同类型
- }
- // 支付保证金应答
- message PaymentMarginRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 SCFContractID = 4; // SCF合同ID
- optional uint64 SCFTicketID = 5; // 供应链金融流水ID
- optional uint64 ExtBusinessID = 6; // 外部业务流水号
- optional int32 Status = 7; // 状态
- }
- // 确认放款请求
- message ConfirmLoanReq {
- optional MessageHead Header = 1;
- optional uint64 ExtBusinessID = 2; // 外部业务流水号
- optional uint64 SCFContractID = 3; // SCF合同ID
- optional int32 SCFContractType = 4; // 合同类型
- }
- // 确认放款应答
- message ConfirmLoanRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 SCFContractID = 4; // SCF合同ID
- optional uint64 SCFTicketID = 5; // 供应链金融流水ID
- optional uint64 ExtBusinessID = 6; // 外部业务流水号
- optional int32 Status = 7; // 状态
- }
- // 合同注销请求
- message ContractLoginoutReq {
- optional MessageHead Header = 1;
- optional uint64 ExtBusinessID = 2; // 外部业务流水号
- optional uint64 SCFContractID = 3; // SCF合同ID
- optional int32 SCFContractType = 4; // 合同类型
- }
- // 合同注销应答
- message ContractLoginountRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 SCFContractID = 4; // SCF合同ID
- optional uint64 SCFTicketID = 5; // 供应链金融流水ID
- optional uint64 ExtBusinessID = 6; // 外部业务流水号
- optional int32 Status = 7; // 状态
- }
- // 合同状态修改请求
- message ContractStatusModifyReq {
- optional MessageHead Header = 1;
- optional uint64 ExtBusinessID = 2; // 外部业务流水号
- optional uint64 SCFContractID = 3; // SCF合同ID
- optional int32 SCFContractType = 4; // 合同类型
- optional int32 ContractBeforeStatus = 5; // 合同原来状态(不能为激活之后状态)
- optional int32 ScfContractStatus = 6; // 合同原来状态(不能为激活之后状态)
- }
- // 合同状态修改应答
- message ContractStatusModifyRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 SCFContractID = 4; // SCF合同ID
- optional uint64 SCFTicketID = 5; // 供应链金融流水ID
- optional uint64 ExtBusinessID = 6; // 外部业务流水号
- optional int32 Status = 7; // 状态
- }
- // 合同估值配置
- message ContractEstimateConfig {
- optional uint64 scfcontractid = 1; // SCF合同ID(310+Unix秒时间戳(10位)+xxxxxx)
- optional uint64 scfgoodsid = 2; // SCF商品ID
- optional double scfgoodsratio = 3; // 商品系数
- optional double pricemove = 4; // 商品升贴水值
- optional double weightratio = 5; // 重量系数
- optional string updatetime = 6; // 更新时间
- }
- // 渠道账户信息
- message ChannelAccountInfo {
- optional string BrokerID = 1; // 经纪公司代码
- optional string AccountID = 2; // 投资者帐号
- optional string AccountPwd = 3; // 账号密码
- }
- // 账户资金信息
- message ChannelAccountMoneyInfo {
- optional string BrokerID = 1; // 经纪公司代码
- optional string InvestorID = 2; // 投资者帐号
- optional double PreBalance = 3; // 上次结算准备金
- optional double PreMargin = 4; // 上次占用的保证金
- optional double InterestBase = 5; // 利息基数
- optional double Interest = 6; // 利息收入
- optional double Deposit = 7; // 入金金额
- optional double Withdraw = 8; // 出金金额
- optional double FrozenMargin = 9; // 冻结的保证金
- optional double FrozenCash = 10; // 冻结的资金
- optional double FrozenCommission = 11; // 冻结的手续费
- optional double CurrMargin = 12; // 当前保证金总额
- optional double CashIn = 13; // 资金差额
- optional double Commission = 14; // 手续费
- optional double CloseProfit = 15; // 平仓盈亏
- optional double PositionProfit = 16; // 持仓盈亏
- optional double Balance = 17; // 期货结算准备金
- optional double Available = 18; // 可用资金
- optional double WithdrawQuota = 19; // 可取资金
- optional double Reserve = 20; // 基本准备金
- optional string TradingDay = 21; // 交易日
- optional int32 SettlementID = 22; // 结算编号
- optional double ExchangeMargin = 23; // 交易所保证金
- optional double DeliveryMargin = 24; // 投资者交割保证金
- optional double ExchangeDeliveryMargin = 25; // 交易所交割保证金
- }
- // 持仓头寸
- message ChannelPositionInfo {
- optional string InstrumentID = 1; // 合约代码
- optional string BrokerID = 2; // 经纪公司代码
- optional string InvestorID = 3; // 投资者代码
- optional uint32 PosiDirection = 4; // 持仓多空方向PositionDirection
- optional uint32 HedgeFlag = 5; // 投机套保标志HedgeFlagType
- optional uint32 PositionDate = 6; // 持仓日期PositionDateType
- optional int32 YdPosition = 7; // 上日持仓
- optional int32 Position = 8; // 持仓
- optional int32 LongFrozen = 9; // 多头冻结
- optional int32 ShortFrozen = 10; // 空头冻结
- optional int32 OpenVolume = 11; // 开仓量
- optional int32 CloseVolume = 12; // 平仓量
- optional double OpenAmount = 13; // 开仓金额
- optional double CloseAmount = 14; // 平仓金额
- optional double PositionCost = 15; // 持仓成本
- optional double UseMargin = 16; // 占用的保证金
- optional double FrozenMargin = 17; // 冻结的保证金
- optional double FrozenCash = 18; // 冻结的资金
- optional double FrozenCommission = 19; // 冻结的手续费
- optional double CashIn = 20; // 资金差额
- optional double Commission = 21; // 手续费
- optional double CloseProfit = 22; // 平仓盈亏
- optional double PositionProfit = 23; // 持仓盈亏
- optional double PreSettlementPrice = 24; // 上次结算价
- optional double SettlementPrice = 25; // 本次结算价
- optional string TradingDay = 26; // 交易日
- optional double OpenCost = 27; // 开仓成本
- optional double ExchangeMargin = 28; // 交易所保证金
- optional double CloseProfitByDate = 29; // 逐日盯市平仓盈亏
- optional double CloseProfitByTrade = 30; // 逐笔对冲平仓盈亏
- optional int32 TodayPosition = 31; // 今日持仓
- }
- // 持仓明细
- message ChannelPositionDetailInfo {
- optional string InstrumentID = 1; // 合约代码
- optional string BrokerID = 2; // 经纪公司代码
- optional string InvestorID = 3; // 投资者代码
- optional uint32 HedgeFlag = 4; // 投机套保标志HedgeFlagType
- optional uint32 Direction = 5; // 买卖方向
- optional string OpenDate = 6; // 开仓日期
- optional string TradeID = 7; // 成交编号
- optional int32 Volume = 8; // 数量
- optional double OpenPrice = 9; // 开仓价
- optional string TradingDay = 10; // 交易日
- optional int32 SettlementID = 11; // 结算编号
- optional string ExchangeID = 12; // 交易所代码
- optional double CloseProfitByDate = 13; // 逐日盯市平仓盈亏
- optional double CloseProfitByTrade = 14; // 逐笔对冲平仓盈亏
- optional double PositionProfitByDate = 15; // 逐日盯市持仓盈亏
- optional double PositionProfitByTrade = 16; // 逐笔对冲持仓盈亏
- optional double Margin = 17; // 投资者保证金
- optional double ExchMargin = 18; // 交易所保证金
- optional double LastSettlementPrice = 19; // 昨结算价
- optional double SettlementPrice = 20; // 结算价
- optional int32 CloseVolume = 21; // 平仓量
- optional double CloseAmount = 22; // 平仓金额
- }
- // 报单信息
- message ChannelOrderInfo {
- required string InstrumentID = 1; // 合约代码
- optional uint32 OrderPriceType = 2; // 报单价格条件OrderPriceType
- optional uint32 Direction = 3; // 买卖方向
- optional uint32 OffsetFlag = 4; // 开平标志OffsetFlag
- optional double LimitPrice = 5; // 价格
- optional int32 VolumeTotalOriginal = 6; // 数量
- optional uint32 TimeCondition = 7; // 有效期类型TimeConditionType
- optional uint32 HedgeFlag = 8; // 投机套保标志HedgeFlagType
- optional string ExchangeID = 9; // 交易所代码
- optional int32 ClientOrderID = 10; // 客户端报单单号
- optional int32 MhpOrderID = 11; // 接口平台报单单号
- optional string ChannelOrderSysID = 12; // 渠道系统单号
- optional int32 VolumeTraded = 13; // 今成交数量
- optional int32 VolumeTotal = 14; // 剩余数量
- optional string InsertDate = 15; // 报单日期
- optional string InsertTime = 16; // 委托时间
- optional string CancelTime = 17; // 撤销时间
- optional uint32 OrderStatus = 18; // 报单状态MhpOrderStatusType
- optional bytes StatusMsg = 19; // 状态信息
- required string InvestorID = 20; // 投资者代码
- optional string TradingDay = 21; // 交易日
- }
- // 成交信息
- message ChannelTradeInfo {
- optional string InvestorID = 1; // 投资者代码
- optional string InstrumentID = 2; // 合约代码
- optional string ExchangeID = 3; // 交易所代码
- optional uint32 HedgeFlag = 4; // 投机套保标志HedgeFlagType
- optional uint32 Direction = 5; // 买卖方向
- optional uint32 OffsetFlag = 6; // 开平标志OffsetFlag
- optional double Price = 7; // 价格
- optional int32 Volume = 8; // 数量
- optional string TradeDate = 9; // 成交时期
- optional string TradeTime = 10; // 成交时间
- optional string TradingDay = 11; // 交易日
- optional string ChannelTradeID = 12; // 渠道成交编号
- optional string ChannelOrderSysID = 13; // 渠道系统单号
- optional int32 MhpOrderID = 14; // 接口平台报单单号
- optional int32 ClientOrderID = 15; // 客户端报单单号
- }
- // 合约信息
- message ChannelInstrumentInfo {
- optional string InstrumentID = 1; // 合约代码
- optional string ProductID = 2; // 产品代码
- optional string ExchangeID = 3; // 交易所代码
- optional int32 ChannelID = 4; // 交易所代码
- }
- // 通用请求
- message ChannelRequestInfo {
- optional int32 RequestID = 1; // 请求编号
- optional uint32 InterfaceID = 2; // 通道编号ChannelIDType
- optional string RequestDate = 3; // 请求日期(YYYYMMDD)
- optional string RequestTime = 4; // 请求时间(HH:MM:SS)
- optional string LoginID = 5; // 平台登录账号
- }
- // 通用应答
- message ChannelResponseInfo {
- required int32 RspCode = 1; // 返回码
- optional bytes RspText = 2; // 返回信息
- optional int32 RequestID = 3; // 请求编号
- optional uint32 IsLast = 4; // 是否为本次请求的最后一条应答
- }
- // 登录请求
- message ChannelReqLogin {
- optional ChannelRequestInfo ReqInfo = 1; //
- required string LoginID = 2; // 平台登录帐号
- required string LoginPwd = 3; // 平台登录密码
- required ChannelAccountInfo Account = 4; // 渠道账户信息
- }
- // 登录应答
- message ChannelRspLogin {
- required ChannelResponseInfo RspInfo = 1; //
- }
- // 登出请求
- message ChannelReqLogout {
- optional ChannelRequestInfo ReqInfo = 1; //
- required string LoginID = 2; // 登录帐号
- }
- // 登出应答
- message ChannelRspLogout {
- required ChannelResponseInfo RspInfo = 1; //
- }
- // 订阅行情请求
- message ChannelReqSubscribeQuote {
- optional ChannelRequestInfo ReqInfo = 1; //
- repeated string InstrumentCodes = 2; //
- }
- // 订阅行情应答
- message ChannelRspSubscribeQuote {
- required ChannelResponseInfo RspInfo = 1; //
- repeated ChannelRealQuotation LastQuotes = 2; //
- }
- // 实时行情数据包结构
- message ChannelRealQuotation {
- optional string strName = 1; // 商品名称
- optional string strWare = 2; // 商品代码(内码)
- optional string strSettlementGroupID = 3; // 结算组编号
- optional string strSettlementID = 4; // 结算编号
- optional string strLast = 5; // 最新价
- optional string strLastVolume = 6; // 最新量
- optional string strLastTurnover = 7; // 最新成交金额
- optional string strLastLot = 8; // 最新成交笔数
- optional string strTotalVolume = 9; // 总成交量
- optional string strTotalTurnover = 10; // 总成交金额
- optional string strTotalLot = 11; // 总成交手数
- optional string strPreClose = 12; // 昨收
- optional string strOpen = 13; // 开盘价
- optional string strHigh = 14; // 最高价
- optional string strLow = 15; // 最低价
- optional string strClose = 16; // 今收
- optional string strLifeHigh = 17; // 历史最高
- optional string strLifeLow = 18; // 历史最低
- optional string strPreSettle = 19; // 昨结算
- optional string strSettle = 20; // 今结算
- optional string strAverage = 21; // 均价
- optional string strHighLimit = 22; // 涨停价
- optional string strLowLimit = 23; // 跌停价
- optional string strPriceEarningsRatio1 = 24; // 市盈率1
- optional string strPriceEarningsRatio2 = 25; // 市盈率2
- optional string strChange = 26; // 涨跌幅,与上一口价比较
- optional string strChangeSinceOpen = 27; // 涨跌幅,与开盘时的价格比较
- optional string strPctChange = 28; // 涨跌百分比
- optional string strPreOpenInterest = 29; // 昨日持仓量
- optional string strOpenInterest = 30; // 持仓量
- optional string strPreDelta = 31; // 昨日虚实度
- optional string strDelta = 32; // 虚实度
- optional string strDate = 33; // 日期
- optional string strTime = 34; // 时间
- optional string strBid = 35; // 买一
- optional string strBid2 = 36; // 买二
- optional string strBid3 = 37; // 买三
- optional string strBid4 = 38; // 买四
- optional string strBid5 = 39; // 买五
- optional string strBidVolume = 40; // 买一
- optional string strBidVolume2 = 41; // 买二
- optional string strBidVolume3 = 42; // 买三
- optional string strBidVolume4 = 43; // 买四
- optional string strBidVolume5 = 44; // 买五
- optional string strAsk = 45; // 卖一
- optional string strAsk2 = 46; // 卖二
- optional string strAsk3 = 47; // 卖三
- optional string strAsk4 = 48; // 卖四
- optional string strAsk5 = 49; // 卖五
- optional string strAskVolume = 50; // 卖一
- optional string strAskVolume2 = 51; // 卖二
- optional string strAskVolume3 = 52; // 卖三
- optional string strAskVolume4 = 53; // 卖四
- optional string strAskVolume5 = 54; // 卖五
- optional int32 lCount = 55; // 价格计数器
- optional int32 iOrderID = 56; // 在商品列表中,按输入次序得到的编号
- optional int32 lRadix = 57; // 小数的位数
- optional string strRemark = 58; // 价格备注
- optional string strAskHigh = 59; // 最高卖出价
- optional string strAskLow = 60; // 最低卖出价
- optional string strAskPreClose = 61; // 昨收卖出价
- optional string strAskOpen = 62; // 开盘卖出价
- optional int32 iBitNumbers = 63; // 价格所占字节长度
- optional int32 nSourceID = 64; // 行情源编号
- optional int32 nWareGroupID = 65; // 商品组代码
- optional int32 nExchangeID = 66; // 交易所代码
- optional int32 nSourceStepPrice = 67; // 在行情处理逻辑中的位置
- optional int32 lLastTime = 68; // 更新时间
- optional string strBidQueueInfo = 69; // 买-订单信息(大力士)
- optional string strAskQueueInfo = 70; // 卖-订单信息(大力士)
- optional string strTotalOpenInterest = 71; // 总持仓量
- optional string strStrike = 72; // 行使价
- optional string strCalculatedOpen = 73; // 拟定开盘价CalculatedOpen
- optional string strBidOpen = 74; // 开盘买入价
- optional string strBidClose = 75; // 收盘买入价
- optional string strPreTotalTurnover = 76; // 昨日总金额
- optional string strTradeDelete = 77; // 成交撤销价
- optional string strTradeDeleteVolume = 78; // 成交撤销量
- optional string strEAS = 79; // 预计平均结算价estimatedaverage
- optional string strAskClose = 80; // 收盘卖出价
- optional string strPublicTradeType = 81; // 公开的交易类型
- optional string strIEP = 82; // IndicativeEquilibriumPrice,
- optional string strIEV = 83; // IndicativeEquilibriumVolume,
- optional string strGreyMarketPrice = 84; // greymarketprice
- optional string strBidOrder = 85; // 买一的订单数量
- optional string strBidOrder2 = 86; // 买二的订单数量
- optional string strBidOrder3 = 87; // 买三的订单数量
- optional string strBidOrder4 = 88; // 买四的订单数量
- optional string strBidOrder5 = 89; // 买五的订单数量
- optional string strAskOrder = 90; // 卖一的订单数量
- optional string strAskOrder2 = 91; // 卖二的订单数量
- optional string strAskOrder3 = 92; // 卖三的订单数量
- optional string strAskOrder4 = 93; // 卖四的订单数量
- optional string strAskOrder5 = 94; // 卖五的订单数量
- optional int32 nID = 95; // 数据报文编号
- }
- // 报单录入
- message ChannelReqInputOrder {
- optional ChannelRequestInfo ReqInfo = 1; //
- optional string BrokerID = 2; // 经纪公司代码
- optional string InvestorID = 3; // 投资者代码
- optional string InstrumentID = 4; // 合约代码
- optional uint32 OrderPriceType = 5; // 报单价格条件OrderPriceType
- optional uint32 Direction = 6; // 买卖方向
- optional uint32 OffsetFlag = 7; // 开平标志OffsetFlag
- optional double LimitPrice = 8; // 价格
- optional int32 VolumeTotalOriginal = 9; // 数量
- optional uint32 TimeCondition = 10; // 有效期类型TimeConditionType
- optional uint32 HedgeFlag = 11; // 投机套保标志HedgeFlagType
- required int32 ClientOrderID = 12; // 客户端报单编号
- }
- // 报单录入应答
- message ChannelRspInputOrder {
- required ChannelResponseInfo RspInfo = 1; //
- required int32 ClientOrderID = 2; // 客户端报单编号
- optional int32 MhpOrderID = 3; // 接口平台单号
- }
- // 修改报单
- message ChannelReqOrderAction {
- optional ChannelRequestInfo ReqInfo = 1; //
- optional string BrokerID = 2; // 经纪公司代码
- optional string InvestorID = 3; // 投资者代码
- optional string InstrumentID = 4; // 合约代码
- optional int32 ClientOrderID = 5; // 客户端报单编号
- optional int32 MhpOrderID = 6; // 接口平台单号
- optional string ActionFlag = 7; // 操作标志
- optional double LimitPrice = 8; // 价格
- optional int32 VolumeChange = 9; // 数量变化
- optional string ExchangeID = 10; // 交易所代码
- }
- // 修改报单应答
- message ChannelRspOrderAction {
- required ChannelResponseInfo RspInfo = 1; //
- optional int32 ClientOrderID = 2; // 客户端报单编号
- }
- // 查询资金账户请求
- message ChannelReqQryTradingAccount {
- optional ChannelRequestInfo ReqInfo = 1; //
- required string InvestorID = 2; // 帐号
- optional string BrokerID = 3; // 经纪公司代码
- }
- // 查询资金账户应答
- message ChannelRspQryTradingAccount {
- required ChannelResponseInfo RspInfo = 1; //
- optional ChannelAccountMoneyInfo MoneyInfo = 2; //
- }
- // 查询持仓请求
- message ChannelReqQryPosition {
- optional ChannelRequestInfo ReqInfo = 1; //
- required string InvestorID = 2; // 帐号
- optional string BrokerID = 3; // 经纪公司代码
- optional string InstrumentID = 4; // 合约代码
- }
- // 查询持仓应答
- message ChannelRspQryPosition {
- required ChannelResponseInfo RspInfo = 1; //
- repeated ChannelPositionInfo Position = 2; //
- }
- // 查询持仓明细请求
- message ChannelReqQryPositionDetail {
- optional ChannelRequestInfo ReqInfo = 1; //
- required string InvestorID = 2; // 帐号
- optional string BrokerID = 3; // 经纪公司代码
- optional string InstrumentID = 4; // 合约代码
- }
- // 查询持仓明细应答
- message ChannelRspQryPositionDetail {
- required ChannelResponseInfo RspInfo = 1; //
- repeated ChannelPositionDetailInfo PositionDetail = 2; //
- }
- // 查询报单请求
- message ChannelReqQryOrder {
- optional ChannelRequestInfo ReqInfo = 1; //
- required string InvestorID = 2; // 帐号
- optional string BrokerID = 3; // 经纪公司代码
- optional string InstrumentID = 4; // 合约代码
- optional int32 ClientOrderID = 5; // 客户端单号
- optional int32 MhpOrderID = 6; // 平台单号
- optional string ChannelOrderSysID = 7; // 渠道系统单号
- }
- // 查询报单应答
- message ChannelRspQryOrder {
- required ChannelResponseInfo RspInfo = 1; //
- repeated ChannelOrderInfo Order = 2; //
- }
- // 查询成交请求
- message ChannelReqQryTrade {
- optional ChannelRequestInfo ReqInfo = 1; //
- required string InvestorID = 2; // 帐号
- optional string BrokerID = 3; // 经纪公司代码
- optional string InstrumentID = 4; // 合约代码
- }
- // 查询成交应答
- message ChannelRspQryTrade {
- required ChannelResponseInfo RspInfo = 1; //
- repeated ChannelTradeInfo Trade = 2; //
- }
- // 查询合约请求
- message ChannelReqQryInstrument {
- optional ChannelRequestInfo ReqInfo = 1; //
- required string LoginID = 2; // 平台登录帐号
- }
- // 查询合约应答
- message ChannelRspQryInstrument {
- required ChannelResponseInfo RspInfo = 1; //
- repeated ChannelInstrumentInfo Instruments = 2; //
- }
- // 委托单状态变更通知
- message ChannelNoticeOrder {
- required ChannelOrderInfo order = 1; //
- }
- // 单据成交通知
- message ChannelNOticeTrade {
- required ChannelTradeInfo trade = 1; //
- }
- // 短信发送请求
- message ShortMsgSendReq {
- optional MessageHead Header = 1;
- optional int32 MsgType = 2; // 消息类型(1短信2邮件)
- required int32 TemplateID = 3; // 短信模版Id(1:网上开户验证模版1,2:网上开户验证模版2,3:网上开户审核通过模版1,4:网上开户审核通过模版2,5:网上开户审核失败模版,6:提示风险模板,7:追加风险模,8:斩仓风险模板
- required int32 Priority = 4; // 短信优先级(1预约,2正常,3紧急)
- optional string ScheduledTime = 5; // 预约时间,立即发送时为空
- repeated string RecvPhone = 6; // 一或多个接收手机号
- repeated string ParamValues = 7; // 有序文本参数值集合
- optional string AreaCode = 8; // 机构代码
- optional string Email = 9; // 邮件地址
- repeated string FilePaths = 10; // 邮件附件地址
- }
- // 短信发送应答
- message ShortMsgSendRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- repeated string FailedPhone = 4; // 失败手机号列表
- }
- // 营销策略暂停请求
- message MsStrategyPauseReq {
- optional MessageHead Header = 1;
- optional uint64 MarketingStrategyID = 2; // 营销策略ID
- optional int32 IsStop = 3; // 临时停用状态
- }
- // 营销策略暂停应答
- message MsStrategyPauseRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 MarketingStrategyID = 4; // 营销策略ID
- }
- // 发货申请
- message MsInvoiceOrderReq {
- optional MessageHead Header = 1;
- optional uint64 InvoiceOrderID = 2; // 发货单号
- optional uint64 ReceiverUserID = 3; // 收货人ID
- optional uint64 ReceiverAccountID = 4; // 收货人资金账号
- optional uint64 ShipperUserID = 5; // 发货人ID
- optional uint64 ShipperAccountID = 6; // 发货人资金账号
- optional int32 ApplyType = 7; // 申请类型
- optional uint32 PickupMode = 8; // 提货模式
- repeated MsInvoiceOrderDetail DeliverGoodsInfo = 9; // 发货明细
- optional uint64 ShipQty = 10; // 发货总数量
- optional string ReceiverAddress = 11; // 发货地址
- optional string ExpressInfo = 12; // 快递信息
- optional int32 ReceiptStatus = 13; // 发票状态
- optional int32 ReceiptType = 14; // 发票类型
- optional string UserName = 15; // 户名
- optional string TaxpayerID = 16; // 纳税人识别号
- optional string ContactInfo = 17; // 联系方式
- optional string Remark = 18; // 备注
- optional uint64 SpecUserID = 19; // 特许经销商ID
- optional int32 VersionFlag = 20; // 版本标记.新版本填1,旧版本填0或者不填.
- optional string receiptcode = 21; // 发票代码
- optional string receiptamount = 22; // 发票金额
- optional string receiptdate = 23; // 开票日期
- optional string receiptbank = 24; // 发票开户行[发票类型:企业]
- optional string receiptaccount = 25; // 发票帐号[发票类型:企业]
- optional string address = 26; // 地址[发票类型:企业]
- optional string idnum = 27; // 身份证号码[发票类型:个人]
- }
- // 发货单明细
- message MsInvoiceOrderDetail {
- optional uint32 ShipGoodsID = 1; // 发货商品ID
- optional int64 ShipQty = 2; // 发货数量
- }
- // 发货申请应答
- message MsInvoiceOrderRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 AccountId = 4; // 账号
- }
- // 发货确认请求
- message MsInvoiceConfirmReq {
- optional MessageHead Header = 1;
- optional uint64 InvoiceOrderID = 2; // 发货单号
- optional uint32 Status = 3; // 状态(1审核通过,2审核拒绝)
- optional string Remark = 4; // 备注
- }
- // 发货确认应答
- message MsInvoiceConfirmRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 InvoiceOrderID = 4; // 发货单号
- }
- // 中远发货配置信息
- message ZYShipperConfigInfo {
- optional int32 ApplyType = 1; // 申请类型
- optional uint32 PickupMode = 2; // 提货模式
- optional string ReceiverAddress = 3; // 发货地址
- optional string ExpressInfo = 4; // 快递信息
- optional uint32 ReceiptStatus = 5; // 发票状态
- optional uint32 ReceiptType = 6; // 发票类型
- optional string UserName = 7; // 户名
- optional string TaxpayerID = 8; // 纳税人识别号
- optional string ContactInfo = 9; // 联系方式
- repeated MsInvoiceOrderDetail DeliverGoodsInfo = 10; // 发货明细
- optional string receiptcode = 11; // 发票代码
- optional string receiptamount = 12; // 发票金额
- optional string receiptdate = 13; // 开票日期
- optional string receiptbank = 14; // 发票开户行[发票类型:企业]
- optional string receiptaccount = 15; // 发票帐号[发票类型:企业]
- optional string address = 16; // 地址[发票类型:企业]
- optional string idnum = 17; // 身份证号码[发票类型:个人]
- }
- // 订单行权请求
- message MsOrderExerciseReq {
- optional MessageHead Header = 1;
- optional uint64 ReceiverUserID = 2; // 收货人ID
- optional uint64 ReceiverAccountID = 3; // 收货人资金账号
- optional uint64 ShipperUserID = 4; // 发货人ID
- optional uint64 ShipperAccountID = 5; // 发货人资金账号
- optional double Premium = 6; // 权利金
- optional double ExercisePrice = 7; // 行权价
- optional int32 HolderQty = 8; // 持仓数量
- optional double AgreeUnit = 9; // 持仓商品合约单位
- optional uint64 RelatedID = 10; // 关联单号
- optional int32 ShipperConfigType = 11; // 发货配置类型
- optional bytes ShipperConfigInfo = 12; // 发货配置信息
- optional int32 VersionFlag = 13; // 版本标记(1,新版本;0或无值,旧版本)
- optional uint64 RelatedTradeID = 14; // 关联持仓单号
- optional uint32 OptionType = 15; // 期权类型(1:认购2:认沽)
- optional double MarketPrice = 16; // 市场价
- }
- // 订单行权应答
- message MsOrderExerciseRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 AccountId = 4; // 账号
- optional uint64 RelatedID = 5; // 关联单号
- }
- // 提货申请
- message MsLadingOrderReq {
- optional MessageHead Header = 1;
- optional uint64 LadingUserID = 2; // 提货人用户ID
- optional uint64 LadingAccountID = 3; // 提货人资金账号
- optional uint64 ShipperUserID = 4; // 发货人ID
- optional uint64 ShipperAccountID = 5; // 发货人资金账号
- optional int32 ApplyType = 6; // 申请类型
- repeated MsInvoiceOrderDetail DeliverGoodsInfo = 7; // 发货明细
- optional uint64 ShipQty = 8; // 发货总数量
- optional string ReceiverAddress = 9; // 发货地址
- optional string ExpressInfo = 10; // 快递信息
- optional uint32 ReceiptStatus = 11; // 发票状态
- optional int32 ReceiptType = 12; // 发票类型
- optional string UserName = 13; // 户名
- optional string TaxpayerID = 14; // 纳税人识别号
- optional string ContactInfo = 15; // 联系方式
- optional string Remark = 16; // 备注
- optional int32 PickupMode = 17; // 提货模式-1:券提货
- optional uint64 SpecUserID = 18; // 特许经销商ID
- optional int32 VersionFlag = 19; // 版本标记.新版本填1,旧版本填0或者不填.
- optional string receiptcode = 20; // 发票代码
- optional string receiptamount = 21; // 发票金额
- optional string receiptdate = 22; // 开票日期
- optional string receiptbank = 23; // 发票开户行[发票类型:企业]
- optional string receiptaccount = 24; // 发票帐号[发票类型:企业]
- optional string address = 25; // 地址[发票类型:企业]
- optional string idnum = 26; // 身份证号码[发票类型:个人]
- }
- // 提货申请应答
- message MsLadingOrderRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 AccountId = 4; // 账号
- }
- // 发票请求
- message MarkingReciptReq {
- optional MessageHead Header = 1;
- optional uint64 ReqTicket = 2; // 请求流水号:可选,有则会在应答报文带回
- required uint64 InvoiceOrderID = 3; // 发票关联的发货单ID:必填
- required string TradeDate = 4; // 发票关联的交易日:必填
- required int32 ReceiptStatus = 5; // 发票状态:必填(2:申请;3:审核通过;4:审核拒绝)
- required int32 ReceiptType = 6; // 关联的发票类型:必填(1:个人2:企业)
- optional string UserName = 7; // 户名:申请时必填
- optional string TaxpayerID = 8; // 纳税人识别号:申请时,若是企业必填
- optional string ContactInfo = 9; // 联系方式:申请时建议填写
- optional string Remark = 10; // 备注:可选
- optional string Address = 11; // 地址
- optional string IDNum = 12; // 身份证号码
- optional string receiptbank = 13; // 发票开户行[发票类型:企业]
- optional string receiptaccount = 14; // 发票帐号[发票类型:企业]
- }
- // 发票应答
- message MarkingReciptRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ReqTicket = 4; // 请求流水号(请求报文中的流水)
- required uint64 InvoiceOrderID = 5; // 发票关联的发货单ID:必填
- required int32 Status = 6; // 处理状态(0:成功;其他为失败,参考营销服务错误码)
- optional string Remark = 7; // 备注
- }
- // 卷转积分请求
- message MsCoupon2ScoreReq {
- optional MessageHead Header = 1;
- optional uint64 RelatedID = 2; // 请求流水号
- optional uint32 UserID = 3; // 用户ID
- optional int32 IsTurnScore = 4; // 是否转积分
- optional string Remark = 5; // 备注:可选
- }
- // 卷转积分应答
- message MsCoupon2ScoreRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 RelatedID = 4; // 请求流水号
- optional uint32 UserID = 5; // 用户ID
- optional string Remark = 6; // 备注
- }
- // 赠送红包应答
- message GiveScoreRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 Exchticket = 4; // 流水号ID
- }
- // 确认行权审核请求
- message MsOrderExerciseAuditReq {
- optional MessageHead Header = 1;
- optional uint64 InvoiceOrderID = 2; // 行权单号
- optional uint32 Status = 3; // 状态(1审核通过,2审核拒绝)
- optional string Remark = 4; // 备注
- }
- // 确认行权审核应答
- message MsOrderExerciseAuditRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 InvoiceOrderID = 4; // 行权单号
- }
- // 获取积分请求
- message FetchScoreReq {
- optional MessageHead Header = 1;
- optional uint64 ClientSerialID = 2; // 客户端唯一ID
- optional uint32 UserID = 3; // 获取积分用户ID
- optional uint32 FromUserID = 4; // 积分源用户ID
- optional uint32 ScoreType = 5; // 积分类型
- optional uint32 ScoreNum = 6; // 积分数量
- optional string ResponseTopic = 7; // 积分回应主题
- optional uint32 ValidType = 8; // 积分时间有效类型
- optional string ExpireDate = 9; // 积分到期时间
- optional uint32 RelatedOrderType = 10; // 积分关联单类型
- optional uint64 RelationOrderID = 11; // 积分关联单号
- optional uint32 MarketingStrategyID = 12; // 积分营销策略ID
- optional uint32 BusinessCode = 13; // 积分获取类型
- }
- // 获取积分应答
- message FetchScoreRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ClientSerialID = 4; // 客户端唯一ID
- }
- // 积分消费请求
- message ConsumeScoreReq {
- optional MessageHead Header = 1;
- optional uint64 ClientSerialID = 2; // 客户端唯一ID
- optional uint32 UserID = 3; // 消费积分用户ID
- optional uint32 ToUserID = 4; // 积分目的用户ID
- optional uint32 ScoreType = 5; // 积分类型
- optional uint32 ScoreNum = 6; // 积分数量
- optional uint64 RelationOrderID = 7; // 积分关联单号
- optional string ResponseTopic = 8; // 积分回应主题
- optional uint32 OperatorType = 9; // 操作类型(1、增加;2、减少)
- }
- // 积分消费应答
- message ConsumeScoreRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ClientSerialID = 4; // 客户端唯一ID
- }
- // 积分合消审核
- message CloseDownScoreReq {
- optional MessageHead Header = 1;
- optional uint64 ClientSerialID = 2; // 客户端唯一ID
- optional uint64 BuyBackReqId = 3; // 回购申请ID
- optional uint32 UserID = 4; // 回购积分用户ID
- optional uint32 FromUserID = 5; // 积分源用户ID
- optional uint32 Auditer = 6; // 审核人
- optional string AuditRemark = 7; // 审核备注
- optional uint32 ScoreType = 8; // 积分类型
- optional uint32 ScoreNum = 9; // 积分数量
- optional uint64 RelationOrderID = 10; // 积分关联单号
- optional string ResponseTopic = 11; // 积分回应主题
- }
- // 积分合消审核回应
- message CloseDownScoreRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ClientSerialID = 4; // 客户端唯一ID
- }
- // 积分合消申请
- message AppCloseDownScoreReq {
- optional MessageHead Header = 1;
- optional uint64 ClientSerialID = 2; // 客户端唯一ID
- optional uint64 BuyBackReqId = 3; // 回购申请ID
- optional uint32 ReqUserId = 4; // 申请用户ID
- optional uint64 ReqAccountId = 5; // 申请用户资金账户
- optional uint32 ProviderUserId = 6; // 积分服务商用户ID
- optional uint64 ProviderAccountId = 7; // 积分服务商资金账户
- optional uint32 ScoreTypeID = 8; // 积分类型ID
- optional int32 Score = 9; // 积分数量
- optional double Amount = 10; // 金额
- optional int32 ReqStatus = 11; // 申请状态
- optional string ResponseTopic = 12; // 积分回应主题
- }
- // 积分合消申请回应
- message AppCloseDownScoreRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ClientSerialID = 4; // 客户端唯一ID
- }
- // 积分撤销
- message CancelScoreReq {
- optional MessageHead Header = 1;
- optional uint64 ClientSerialID = 2; // 客户端唯一ID
- optional uint64 BuyBackReqId = 3; // 回购申请ID
- optional uint32 UserID = 4; // 撤销回购积分用户ID
- optional uint32 FromUserID = 5; // 积分源用户ID
- optional uint32 ScoreType = 6; // 积分类型
- optional uint32 ScoreNum = 7; // 积分数量
- optional string ResponseTopic = 8; // 积分回应主题
- }
- // 积分撤销回应
- message CancelScoreRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ClientSerialID = 4; // 客户端唯一ID
- }
- // 积分清理请求
- message ClearScoreReq {
- optional MessageHead Header = 1;
- optional uint64 ClientSerialID = 2; // 客户端唯一ID
- optional uint32 UserID = 3; // 积分用户ID
- optional uint32 ScoreType = 4; // 积分类型
- optional uint32 ScoreNum = 5; // 积分数量
- optional string ResponseTopic = 6; // 积分回应主题
- }
- // 积分清理应答
- message ClearScoreRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ClientSerialID = 4; // 客户端唯一ID
- optional uint32 UserID = 5; // 积分用户ID
- }
- // 积分获取通知
- message GetScoreRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint32 UserID = 4; // 获取积分用户ID
- optional uint32 ScoreType = 5; // 积分类型
- optional uint32 ScoreNum = 6; // 积分数量
- optional uint32 ValidType = 7; // 积分时间有效类型
- optional string ExpireDate = 8; // 积分到期时间
- optional uint64 TradeID = 9; // 积分明细流水号
- }
- // 积分减少请求
- message ReduceScoreReq {
- optional MessageHead Header = 1;
- optional uint64 ClientSerialID = 2; // 客户端唯一ID
- optional uint32 UserID = 3; // 积分减少用户ID
- optional uint32 ToUserID = 4; // 积分增加用户ID
- optional uint32 ScoreType = 5; // 积分类型
- optional uint32 ScoreNum = 6; // 积分数量
- optional uint64 RelationOrderID = 7; // 积分关联单号
- optional string ResponseTopic = 8; // 积分回应主题
- }
- // 积分减少应答
- message ReduceScoreRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ClientSerialID = 4; // 客户端唯一ID
- }
- // 新增修改收货地址请求
- message UserReceiveInfoReq {
- optional MessageHead Header = 1;
- optional uint64 ClientSerialID = 2; // 客户端唯一ID
- optional uint32 UserID = 3; // 用户ID
- optional string ReceiverName = 4; // 提货人姓名
- optional uint32 CardTypeID = 5; // 证件类型
- optional string CardNum = 6; // 证件号码
- optional string PhoneNum = 7; // 提货人联系方式
- optional uint32 CountryID = 8; // 国家
- optional uint32 ProvinceID = 9; // 省
- optional uint32 CityID = 10; // 市
- optional uint32 DistrictID = 11; // 地区
- optional string Address = 12; // 提货人详细地址
- optional string TakeRemark = 13; // 提货备注
- optional uint64 ReceiveInfoId = 14; // 修改时填收货地址id
- }
- // 新增修改收货地址请求响应
- message UserReceiveInfoRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ReceiveInfoId = 4; // 响应返回autoid
- }
- // 删除收货地址请求
- message DelUserReceiveInfoReq {
- optional MessageHead Header = 1;
- optional uint64 ReceiveInfoId = 2; // 收货地址id
- }
- // 删除收货地址请求响应
- message DelUserReceiveInfoRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- }
- // 新增修改用户发票信息请求
- message UserReceiptInfoReq {
- optional MessageHead Header = 1;
- optional uint64 ClientSerialID = 2; // 客户端唯一ID
- optional uint32 UserID = 3; // 用户ID
- optional string UserName = 4; // 发票抬头姓名
- optional uint32 ReceiptType = 5; // 发票类型
- optional string TaxpayerID = 6; // 纳税人识别号
- optional string ContactInfo = 7; // 联系方式
- optional uint64 ReceiptInfoId = 8; // 修改时填用户发票信息id
- optional string ReceiptBank = 9; // 发票开户行[发票类型:企业]
- optional string ReceiptAccount = 10; // 发票帐号[发票类型:企业]
- optional string Address = 11; // 地址[发票类型:企业]
- optional string IDNum = 12; // 身份证号码[发票类型:个人]
- }
- // 新增修改用户发票信息请求响应
- message UserReceiptInfoRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ReceiptInfoId = 4; // 响应返回发票信息id
- }
- // 删除用户发票信息请求
- message DelUserReceiptInfoReq {
- optional MessageHead Header = 1;
- optional uint64 ReceiptInfoId = 2; // 删除发票信息id
- }
- // 删除用户发票信息请求响应
- message DelUserReceiptInfoRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- }
- // 投资者销户申请请求
- message InvestorDelReq {
- optional MessageHead Header = 1;
- optional uint64 UserID = 2; // 用户ID
- optional string ImageUrl = 3; // 图片地址
- }
- // 投资者销户申请请求响应
- message InvestorDelRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- }
- // 交收服务商签约请求
- message ProviderUserSignReq {
- optional MessageHead Header = 1;
- optional uint64 ProviderUserID = 2; // 交收服务商ID
- optional uint64 InvestorUserID = 3; // 用户ID
- }
- // 交收服务商签约响应
- message ProviderUserSignRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string ContractName = 4; // 协议文件名
- }
- // 预售集采申请档位价格
- message PreSaleApplyPrice {
- optional uint32 Stepindex = 1; // 档位序号
- optional uint32 Qty = 2; // 档位数量
- optional double Price = 3; // 档位价格
- }
- // 预售集采申请请求
- message PreSaleApplyReq {
- optional MessageHead Header = 1;
- optional uint64 Selleruserid = 2; // 申请人
- optional uint64 Selleraccountid = 3; // 申请资金账户
- optional uint64 MarketId = 4; // 市场ID
- optional string GoodsName = 5; // 商品名称
- optional string Unit = 6; // 单位
- optional uint32 Applyqty = 7; // 申请数量
- optional string Goodspicurl = 8; // 商品图片地址
- optional string Goodsdesc = 9; // 商品介绍
- optional string Startday = 10; // 开始日期(YYYYMMDD)
- optional string Endday = 11; // 结束日期(YYYYMMDD)
- optional uint32 Steppricetype = 12; // 阶梯价类型1:量增价减
- repeated PreSaleApplyPrice PriceList = 13; // 档位价格
- optional uint64 ApplyId = 14; // 申请ID,修改时填写
- optional uint32 Decimalplace = 15; // 价格小数位最多为4
- }
- // 预售集采申请应答
- message PreSaleApplyRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string ApplyID = 4; // 申请ID
- }
- // 终端竞拍申请注销请求
- message AuctionApplyCancelClientReq {
- optional MessageHead Header = 1;
- optional uint64 ApplyID = 2; // 申请ID
- optional string ClientSerialNo = 3; // 客户端流水号
- }
- // 终端竞拍申请注销应答
- message AuctionApplyCancelClientRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string ClientSerialNo = 4; // 客户端流水号
- }
- // 竞拍申请请求
- message AuctionApplyOrderReq {
- optional MessageHead Header = 1;
- optional uint64 WRUserID = 2; // 申请人用户ID
- optional uint64 WRAccountID = 3; // 资金账号ID
- optional uint32 MarketID = 4; // 市场ID
- optional string GoodsName = 5; // 拍品名称
- optional uint64 WRFactorTypeID = 6; // 仓单要素类型ID
- optional uint64 ApplyQty = 7; // 申请数量
- optional double StartPrice = 8; // 起拍价
- optional double FloorPrice = 9; // 底价
- optional string StartTime = 10; // 开始时间
- optional string EndTime = 11; // 结束时间
- optional string AuctionDesc = 12; // 拍品描述
- optional uint32 CutInterval = 13; // 延时周期-[降价式]
- optional double PriceStep = 14; // 价格幅度[降价式、竞价式]
- optional uint32 DecimalPlace = 15; // 报价小数位
- optional string Uint = 16; // 单位
- optional string GoodsPicUrl = 17; // 商品介绍图片
- optional uint32 PriceMode = 18; // 价格类型
- optional string ClientSerialNo = 19; // 客户端流水号
- optional string StartTradeDate = 20; // 起拍交易日
- optional uint32 HasWr = 21; // 是否有仓单0否1是
- optional string Appraisal = 22; // 鉴定书
- optional double Highestprice = 23; // 最高价
- optional uint64 Deliverygoodsid = 24; // 交割商品
- optional uint64 Brandid = 25; // 品牌
- optional uint64 Qualityid = 26; // 品质
- optional uint64 Specid = 27; // 升贴水
- optional uint64 Warehouseid = 28; // 仓库
- optional uint64 Deliverymonthid = 29; // 交收月
- }
- // 竞拍申请应答
- message AuctionApplyOrderRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ApplyID = 4; // 申请ID
- optional string ClientSerialNo = 5; // 客户端流水号
- }
- // 中远发货单确认收货请求
- message InvoiceOrderRevedReq {
- optional MessageHead Header = 1;
- optional uint64 InvoiceOrderID = 2; // 发货单号ID
- optional uint32 Status = 3; // 1-已收货(暂留无用)
- optional string ClientSerialNo = 4; // 客户端流水号(暂留无用)
- }
- // 中远发货单确认收货响应
- message InvoiceOrderRevedRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- }
- // 预售集采申请撤销请求
- message PreSaleApplyCancelReq {
- optional MessageHead Header = 1;
- optional uint64 ApplyID = 2; // 申请ID
- optional uint32 CancelType = 3; // 撤销类型1撤回2注销
- }
- // 预售集采申请撤销应答
- message PreSaleApplyCancelRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- }
- // 竞拍申请修改请求
- message AuctionApplyOrderEditReq {
- optional MessageHead Header = 1;
- optional uint64 ApplyID = 2; // 申请ID--荷兰式改价2时
- optional uint64 WRUserID = 3; // 申请人用户ID
- optional uint64 WRAccountID = 4; // 资金账号ID
- optional uint32 MarketID = 5; // 市场ID
- optional string GoodsName = 6; // 拍品名称
- optional uint64 WRFactorTypeID = 7; // 仓单要素类型ID
- optional uint64 ApplyQty = 8; // 申请数量
- optional double StartPrice = 9; // 起拍价
- optional double FloorPrice = 10; // 底价
- optional string StartTime = 11; // 开始时间
- optional string EndTime = 12; // 结束时间
- optional string AuctionDesc = 13; // 拍品描述
- optional uint32 CutInterval = 14; // 延时周期-[降价式]
- optional double PriceStep = 15; // 价格幅度[降价式、竞价式]
- optional uint32 DecimalPlace = 16; // 报价小数位
- optional string Uint = 17; // 单位
- optional string GoodsPicUrl = 18; // 商品介绍图片
- optional string ClientSerialNo = 19; // 客户端流水号
- optional string StartTradeDate = 20; // 起拍交易日
- optional uint32 HasWr = 21; // 是否有仓单0否1是
- optional string Appraisal = 22; // 鉴定书
- optional double Highestprice = 23; // 最高价
- optional uint64 Deliverygoodsid = 24; // 交割商品
- optional uint64 Brandid = 25; // 品牌
- optional uint64 Qualityid = 26; // 品质
- optional uint64 Specid = 27; // 升贴水
- optional uint64 Warehouseid = 28; // 仓库
- optional uint64 Deliverymonthid = 29; // 交收月
- optional uint32 PriceMode = 30; // 价格类型
- optional uint32 ChangeType = 31; // 变动类型修改鉴定书时1荷兰式改价2
- }
- // 竞拍申请修改应答
- message AuctionApplyOrderEditRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ApplyID = 4; // 申请ID
- optional string ClientSerialNo = 5; // 客户端流水号
- }
- // 设置默认收货地址请求
- message UserReceiveIsDefaultReq {
- optional MessageHead Header = 1;
- optional uint64 AutoId = 2; // 提货地址ID
- optional uint64 UserId = 3; // 用户ID
- }
- // 设置默认收货地址应答
- message UserReceiveIsDefaultRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 AutoId = 4; // 提货地址ID
- }
- // 波动率商品配置通知
- message VolatilityGoodsConfigNtf {
- optional MessageHead Header = 1; // 消息头
- optional string GoodsCode = 2; // string 代码-系统自动生成波动率设置记录代码
- optional int32 FromField = 3; // int32 行情取价方式-1:最新价
- optional string ExhqCode = 4; // string 交易所代码
- optional string GoodShqCode = 5; // string 外部商品代码
- optional double PreReckonPrice = 6; // double 昨结价
- optional string ClearTime = 7; // string 清盘时间(HHmm)--已不需要
- optional int32 IsDelete = 8; // int32 是否删除1-是2-否
- optional int32 GoodsID = 9; // int32 内部交易商品id
- }
- // 期权报价修改报价商升贴水通知
- message ModifyQuoterPriceMoveValueNtf {
- optional MessageHead Header = 1; // 消息头
- optional uint64 GoodsId = 2; // uint64 商品ID
- optional string GoodsCode = 3; // string 商品代码
- optional double PriceMoveValue = 4; // double 升贴水
- optional double HqConvertRatio = 5; // double 行情转换系数
- optional uint32 PriceMoveAlgorithm = 6; // uint32 升贴水收取方式
- optional string Exchid = 7; // string 内部交易所代码
- optional uint64 BuyPtsub = 8; // uint64 买点差
- optional uint64 SellPtsub = 9; // uint64 卖点差
- optional uint64 FilterpStub = 10; // uint64 滤价点差
- }
- // 用户收货信息表
- message ReceiverInfo {
- optional uint64 AutoID = 1; // ID
- optional uint64 UserID = 2; // 用户
- optional string ReceiverName = 3; // 收货人
- optional uint32 CardTypeID = 4; // 证件类型
- optional string CardNum = 5; // 证件号码
- optional string PhoneNum = 6; // 联系电话
- optional string Address = 7; // 地址
- optional string TakeRemark = 8; // 提货备注
- optional string AccountName = 9; // 账户名
- optional uint64 CountryID = 10; // 国家代码
- optional uint64 ProvinceID = 11; // 省级代码
- optional uint64 CityID = 12; // 城市代码
- optional uint64 DistrictID = 13; // 地区代码
- optional uint32 IsDefault = 14; // 是否默认
- optional string CountryName = 15; // 国家名称
- optional string CountryCode = 16; // 国家代码
- optional string CountryPCode = 17; //
- optional string ProvinceName = 18; // 省份名称
- optional string ProvinceCode = 19; // 省份代码
- optional string ProvincePCode = 20; //
- optional string CityName = 21; // 城市名称
- optional string CityCode = 22; // 城市代码
- optional string CityPCode = 23; //
- optional string DistrictName = 24; // 地区名称
- optional string DistrictCode = 25; // 地区代码
- optional string DistrictPCode = 26; //
- }
- // 查询用户收货信息表
- message SearchReceiverReq {
- optional MessageHead Header = 1;
- optional uint64 UserID = 2; // 用户ID
- }
- // 查询用户收货信息表
- message SearchReceiverRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 UserID = 4; // 用户ID
- repeated ReceiverInfo InfoList = 5; // 用户收货信息
- }
- // 交易协议
- message TradeTransferInfo {
- optional uint64 UserID = 1; // 用户ID
- optional uint32 IsContract = 2; // 是否已签约0否1是
- optional uint32 ContractType = 3; // 签约类型
- optional string ContractDate = 4; // 签约时间
- repeated string ContractName = 5; // 协议内容/PDF名称
- }
- // 查询交易协议请求
- message TradeTransferReq {
- optional MessageHead Header = 1;
- optional uint64 UserID = 2; // 用户ID
- }
- // 查询交易协议应答
- message TradeTransferRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 UserID = 4; // 用户ID
- repeated TradeTransferInfo ContractInfo = 5; // 协议内容
- }
- // 投资者交易协议签约请求
- message SuerTradeTransferReq {
- optional MessageHead Header = 1;
- optional uint64 UserID = 2; // 用户ID
- }
- // 投资者交易协议签约应答
- message SuerTradeTransferRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 UserID = 4; // 用户ID
- optional string PdfName = 5; // PDF名称
- }
- // 终端竞拍申请注销(7)请求
- message AuctionApplyDeleteClientReq {
- optional MessageHead Header = 1;
- optional uint64 ApplyID = 2; // 申请ID
- optional string ClientSerialNo = 3; // 客户端流水号
- }
- // 终端竞拍申请注销(7)应答
- message AuctionApplyDeleteClientRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string ClientSerialNo = 4; // 客户端流水号
- }
- // 发布通知公告请求
- message ManageNotifyInfo {
- optional uint64 Userid = 1; // 接收人
- optional string Title = 2; // 标题
- optional string Context = 3; // 通知内容
- optional uint32 NotifyDay = 4; // 有效时间(天)可以不填默认7
- }
- // 发布通知公告请求
- message ManageNotifyReq {
- optional MessageHead Header = 1;
- repeated ManageNotifyInfo NotifyInfo = 2; // 公告内容
- }
- // 发布通知公告应答
- message ManageNotifyRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- }
- // 重置密码检验
- message ResetPasswordCheckReq {
- optional MessageHead Header = 1;
- required uint32 PwdType = 2; // 账户类型(1-登录账户2-资金账户)
- required string AccountId = 3; // 账户(登录帐号或资金账号)
- optional string Mobile = 4; // 手机号
- optional string VerCode = 5; // 验证码
- }
- // 重置密码检验应答
- message ResetPasswordCheckRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint32 IsAuth = 4; // 是否已实名认证(1是)
- optional string VerCode = 5; // 验证码
- optional uint32 IsSign = 6; // 是否已签约(1是)
- }
- // 重置密码
- message ResetPasswordkReq {
- optional MessageHead Header = 1;
- required uint32 PwdType = 2; // 账户类型(1-登录账户2-资金账户)
- required string AccountId = 3; // 账户(登录帐号或资金账号)
- required string Mobile = 4; // 手机号
- required string VerCode = 5; // 验证码
- optional string BankAccountNo = 6; // 签约银行卡号
- optional string CardNum = 7; // 证件号码
- }
- // 重置密码应答
- message ResetPasswordRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string NewPwd = 4; // 重置后密码
- }
- // 招标申请请求
- message TenderApplyReq {
- optional MessageHead Header = 1;
- optional uint64 TenderUserID = 2; // 招标方用户ID
- optional string TenderNum = 3; // 招标编号
- optional string TenderTitle = 4; // 招标主题
- optional string TenderGoods = 5; // 招标标的
- optional uint32 TenderType = 6; // 招标类型1:公开招标2:指定招标
- repeated string UserName = 7; // tendertype=2时填写,审核时根据名称确认
- optional uint32 GradeType = 8; // 评分类型1:现场评分2:在线评分
- optional string TenderFile = 9; // 招标文件
- optional string OpenDate = 10; // 开标日期
- optional string TenderContact = 11; // 招标联系人
- optional string TenderTelphone = 12; // 招标联系电话
- optional uint32 MarketID = 13; // 市场ID
- optional uint32 ApplyStatus = 14; // 申请状态1:未提交10:待审核
- optional string ClientSerialNo = 15; // 客户端流水号
- optional uint64 TenderAccountID = 16; // 招标方资金账户ID,
- optional uint32 TenderApplyID = 17; // 招标申请ID,申请撤回后修改再提交一定要填写
- }
- // 招标申请请求响应
- message TenderApplyRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ApplyID = 4; // 申请ID
- }
- // 招标申请撤回请求
- message TenderApplyBackReq {
- optional MessageHead Header = 1;
- optional uint64 ApplyID = 2; // 申请ID
- }
- // 招标申请撤回请求响应
- message TenderApplyBackRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- }
- // 投标申请请求
- message BidApplyReq {
- optional MessageHead Header = 1;
- optional uint64 BidUserID = 2; // 投标方用户ID
- optional uint32 ApplyID = 3; // 招标申请ID
- optional uint32 GoodsID = 4; // 招标信息ID
- optional string Contact = 5; // 联系人
- optional string Telphone = 6; // 固定电话(加密)
- optional string Mobile = 7; // 手机(加密)
- optional string Email = 8; // 电子邮件(加密)
- optional string Address = 9; // 投标方地址
- optional string BidFile = 10; // 投标文件
- optional uint32 ApplyStatus = 11; // 申请状态-1:未提交
- optional string ClientSerialNo = 12; // 客户端流水号
- optional uint64 BidAccountID = 13; // 投标方资金账户ID
- optional uint32 BidApplyID = 14; // 投标申请ID,申请撤回后修改再提交一定要填写
- }
- // 投标申请请求
- message BidApplyRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ApplyID = 4; // 申请ID
- }
- // 投标申请撤回请求
- message BidApplyBackReq {
- optional MessageHead Header = 1;
- optional uint64 ApplyID = 2; // 申请ID
- }
- // 投标申请撤回请求响应
- message BidApplyBackRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- }
- // 议价申请请求
- message WrBargainApplyReq {
- optional MessageHead Header = 1;
- optional uint64 WRTradeOrderID = 2; // 关联委托单ID
- optional string UserID = 3; // 摘牌人用户ID
- optional string AccountID = 4; // 摘牌资金账号
- optional string BuyOrSell = 5; // 摘牌方向
- optional uint64 ApplyQty = 6; // 摘牌数量
- optional string ApplyPrice = 7; // 申请价格
- optional string ApplyRemark = 8; // 申请备注
- }
- // 议价申请响应
- message WrBargainApplyRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 WrBargainID = 4; // 申请ID
- }
- // 议价申请撤回请求
- message WrBargainBackReq {
- optional MessageHead Header = 1;
- optional uint64 WrBargainID = 2; // 申请ID
- }
- // 议价申请撤回请求响应
- message WrBargainBackRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- }
- // 议价申请拒绝请求
- message WrBargainNoAgreeReq {
- optional MessageHead Header = 1;
- optional uint64 WrBargainID = 2; // 申请ID
- optional uint64 ConfirmQty = 3; // 可接受数量(拒绝时填写)
- optional double ConfirmPrice = 4; // 可接受价格(拒绝时填写)
- optional string ConfirmRemark = 5; // 确认备注
- }
- // 议价申请拒绝响应
- message WrBargainNoAgreeRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- }
- // 修改用户是否需要发票请求
- message UserInfoNeedInvoiceReq {
- optional MessageHead Header = 1;
- optional uint64 UserID = 2; // 用户ID
- optional uint32 NeedInvoice = 3; // 是否需要发票,0:不需要,1:需要
- }
- // 修改用户是否需要发票响应
- message UserInfoNeedInvoiceRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 UserID = 4; // 用户ID
- }
- // 提货计划申请
- message TakeWRPlanReq {
- optional MessageHead Header = 1;
- optional uint64 UserID = 2; // 用户ID
- optional uint64 ContractID = 3; // 合同ID
- optional string PlanDate = 4; // 计划日期(yyyy-MM-ddHH:mm:ss)
- optional uint32 PlanDays = 5; // 计划提货周期(天)
- optional string TakeAddress = 6; // 提货地点
- optional string SellContact = 7; // 堆场管理联系人
- optional string SellContactPhoneNumber = 8; // 堆块管理联系人电话
- optional string TrusteeName = 9; // 受托方名称
- optional string TrustPhoneNumber = 10; // 受托方联系方式
- optional string DeliveryPlace = 11; // 收货地点
- optional string BuyContact = 12; // 现场联系人
- optional string BuyContactPhoneNumber = 13; // 现场联系人电话
- optional uint32 TakePlanMode = 14; // 提货方式-1:FOB(自提)
- }
- // 提货计划申请应答
- message TakeWRPlanRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 TakePlanID = 4; // 计划ID
- }
- // 提货计划撤销
- message TakeWRPlanRebackReq {
- optional MessageHead Header = 1;
- optional uint64 TakePlanID = 2; // 计划ID/提货单ID
- optional uint32 BackType = 3; // 1提货计划2
- }
- // 提货计划撤销应答
- message TakeWRPlanRebackRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 TakePlanID = 4; // 计划ID
- }
- // 提货单司机信息
- message TakeDetailDriverInfo {
- optional string DriverName = 1; // 司机名称
- optional string DriverPhoneNumber = 2; // 司机电话
- optional string DriverCardNumber = 3; // 司机身份证
- optional string DriverCarPlate = 4; // 司机车牌
- }
- // 提货单申请
- message TakeWRPlanDetailReq {
- optional MessageHead Header = 1;
- optional uint64 TakePlanD = 2; // 提货计划ID
- optional uint64 DetailQty = 3; // 提货单数量
- optional string DetailDate = 4; // 提货单日期(yyyy-MM-dd)
- optional uint32 EffectiveDays = 5; // 有效期(天)
- optional uint32 TakePlanMode = 6; // 提货方式-1:FOB(自提)
- repeated TakeDetailDriverInfo DriverInfo = 7; // 提货单司机信息
- }
- // 提货单申请应答
- message TakeWRPlanDetailRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 DetailID = 4; // 提货单ID
- }
- // 提货单确认收货
- message TakeSureReq {
- optional MessageHead Header = 1;
- optional uint64 DetailID = 2; // 提货单ID
- }
- // 提货单确认收货
- message TakeSureRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 DetailID = 4; // 提货单ID
- }
- // 现货单据录入请求
- message ErmsContractInfoReq {
- optional MessageHead Header = 1;
- optional uint64 ClientSerialID = 2; // 客户端唯一ID
- optional uint64 LoginId = 3; // 客户端登录账号
- optional uint64 ContractId = 4; // 合同ID(修改时必填,添加时不用填写)
- optional uint32 ContractType = 5; // 合同类型
- optional string ContractNo = 6; // 合同编号
- optional string CustomerName = 7; // 供应商名称
- optional string SignDate = 8; // 签订日期(YYYYMMDD)
- optional string ContractAttachment = 9; // 合同附件
- optional uint64 UserId = 10; // 组织机构ID
- optional uint64 AccountId = 11; // 资金账号ID
- optional uint64 WrFactoryId = 12; // 交割要素ID
- optional uint64 DeliveryGoodsId = 13; // 现货品种ID
- optional uint64 BrandId = 14; // 品牌ID
- optional uint64 QualityId = 15; // 品质ID
- optional uint64 SpecId = 16; // 规格ID
- optional uint64 WarehouseId = 17; // 仓库ID
- optional uint64 DeliveryMonthId = 18; // 交收月ID
- optional string ProductName = 19; // 产品名称
- optional uint64 ContractQty = 20; // 合同数量
- optional double ContractAmount = 21; // 合同总金额
- optional string Remark = 22; // 备注
- }
- // 现货单据录入应答
- message ErmsContractInfoRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ClientSerialID = 4; // 客户端唯一ID
- optional uint64 ContractId = 5; // 合同ID
- }
- // 外部单据录入请求
- message UpdatePositionApplyReq {
- optional MessageHead Header = 1;
- optional uint64 ClientSerialID = 2; // 客户端唯一ID
- optional uint64 LoginId = 3; // 客户端登录账号
- optional uint64 ApplyId = 4; // 申请ID(修改时必填,添加时不用填写)
- optional uint64 GoodsId = 5; // 合约ID
- optional uint64 AccountId = 6; // 资金账号ID
- optional uint32 BuyOrSell = 7; // 买卖方向,0:买,1:卖
- optional uint32 BuildType = 8; // 开平,1:建仓,2:平仓
- optional uint32 CloseType = 9; // 平仓方式,0:无,1:平今,2:平昨
- optional double Price = 10; // 合约价格
- optional double Qty = 11; // 合约数量
- optional uint32 ApplyStatus = 12; // 申请状态
- optional string Remark = 13; // 备注
- }
- // 外部单据录入应答
- message UpdatePositionApplyRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ClientSerialID = 4; // 客户端唯一ID
- optional uint64 ApplyId = 5; // 合同ID
- }
- // 场外期权录入请求
- message OptionHolderDetailReq {
- optional MessageHead Header = 1;
- optional uint64 ClientSerialID = 2; // 客户端唯一ID
- optional uint64 LoginId = 3; // 客户端登录账号
- optional uint64 TradeId = 4; // 成交单号
- optional uint32 BuyOrSell = 5; // 买卖方向,0:买,1:卖
- optional uint64 MarketId = 6; // 市场ID
- optional uint64 TargetGoodsId = 7; // 标的合约ID
- optional uint64 AccountId = 8; // 资金账号
- optional uint32 ExerciseType = 9; // 行权类型-1:欧式期权2:美式期权
- optional uint32 ExpireType = 10; // 行权日类型-1:滚动行权
- optional uint32 ExpireCycle = 11; // 行权周期(天)
- optional string ExpireDate = 12; // 行权日期(YYYYMMDD)
- optional uint32 OptionType = 13; // 期权类型-1:认购(看涨)
- optional double HolderQty = 14; // 已对冲数量[场外期(单向)]
- optional double OpenPrice = 15; // 行权价格
- optional double Premium = 16; // 权利金单价
- }
- // 场外期权录入应答
- message OptionHolderDetailRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ClientSerialID = 4; // 客户端唯一ID
- optional uint32 BuyOrSell = 5; // 买卖方向,0:买,1:卖
- optional uint64 TradeId = 6; // 成交单号
- }
- // 仓单回购录入估值列表
- message EstimateConfig {
- optional uint64 GoodsId = 1; // 商品ID
- optional double GoodsRatio = 2; // 商品系数
- optional double WeightRatio = 3; // 重量系数
- optional double PriceMove = 4; // 商品升贴水值
- }
- // 仓单回购录入请求
- message SCFContractEstimateReq {
- optional MessageHead Header = 1;
- optional uint64 ClientSerialID = 2; // 客户端唯一ID
- optional uint64 LoginId = 3; // 客户端登录账号
- optional uint64 ScfContractId = 4; // 合同单号(修改时必填写,添加时不用填写)
- optional uint32 ContractDirection = 5; // 合同方向类型,1:双向,2:单向(贷方),3:单向(借方)
- optional uint32 ScfContractType = 6; // 合同类型-1:仓单回购
- optional uint64 MarketId = 7; // 市场ID
- optional uint64 LenderUserId = 8; // 贷款方用户ID
- optional uint64 LenderAccountId = 9; // 贷款方资金账号
- optional uint64 BorrowerUserId = 10; // 借款用户ID
- optional uint64 BorrowerAccountId = 11; // 借款方资金账号
- optional double MarginRatio = 12; // 保证金比例
- optional double LenderAmount = 13; // 贷款金额
- optional double WRInitAmount = 14; // 货款金额
- optional uint32 IsAutoLoan = 15; // 放款方式,0:手动,1:自动
- optional string DeadLine = 16; // 回购截止日期
- optional uint32 InterestRateMode = 17; // 利率类型,1:年利率,2:日利率
- optional double InterestRate = 18; // 利率值
- optional uint32 InterestSettleMode = 19; // 结息方式,1:按日结息,2:按周结息,3:按月结息
- optional uint32 InterestSettleValue = 20; // 结息方式值(金融机构利率配置表配置值)
- optional string ScfContractTmpContent = 21; // 合同模板内容
- optional double RecoverRiskRate = 22; // 追缴风险率
- optional uint64 WRQty = 23; // 数量
- optional uint64 DeliveryGoodsId = 24; // 交收商品
- optional double PriceMove = 25; // 升贴水
- optional uint64 BrandId = 26; // 品牌编号
- optional uint64 QualityId = 27; // 品质编号
- optional uint64 SpecId = 28; // 规格编号
- optional uint64 WarehouseId = 29; // 仓库编号
- optional uint32 InterestMinLen = 30; // 最少计息时长
- optional uint32 ContractStatus = 31; // 合同状态-1:待确认
- repeated EstimateConfig EstimateConfigList = 32; // 商品估值列表
- }
- // 仓单回购录入应答
- message SCFContractEstimateRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ClientSerialID = 4; // 客户端唯一ID
- optional uint64 ScfContractId = 5; // 合同编号
- }
- // 登录账号绑定登录代码请求
- message LoginAccountUpdateCodeReq {
- optional MessageHead Header = 1;
- optional uint64 ClientSerialID = 2; // 客户端唯一ID
- optional uint64 LoginId = 3; // 客户端登录账号
- optional string LoginCode = 4; // 登录代码
- }
- // 登录账号绑定登录代码应答
- message LoginAccountUpdateCodeRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ClientSerialID = 4; // 客户端唯一ID
- optional uint64 LoginId = 5; // 客户端登录账号
- }
- // 用户支付信息请求
- message UserPayInfoReq {
- optional MessageHead Header = 1;
- optional uint64 ClientSerialID = 2; // 客户端唯一ID
- optional uint64 LoginId = 3; // 客户端登录账号
- optional uint32 PayInfoId = 4; // 自增id(修改、删除时必填)
- optional uint32 UserId = 5; // 用户id
- optional string PayModel = 6; // 支付方式
- optional string PayInfo = 7; // 支付信息
- optional string OptType = 8; // 操作类型1新增2修改3删除
- }
- // 用户支付信息应答
- message UserPayInfoRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ClientSerialID = 4; // 客户端唯一ID
- optional uint64 LoginId = 5; // 客户端登录账号
- optional uint32 PayInfoId = 6; // 自增id(新增时返回)
- optional string OptType = 7; // 操作类型1新增2修改3删除
- }
- // 单据录入撤销请求
- message RepealApplyReq {
- optional MessageHead Header = 1;
- optional uint64 ClientSerialID = 2; // 客户端唯一ID
- optional uint64 LoginId = 3; // 客户端登录账号
- optional uint32 OptId = 4; // 操作id
- optional uint32 OptStatus = 5; // 操作状态(填空字符串时由客户端默认处理)
- optional string OptType = 6; // 操作类型1现货单据录入撤销2外部单据录入撤销3场外期权录入撤销
- }
- // 单据录入撤销应答
- message RepealApplyRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ClientSerialID = 4; // 客户端唯一ID
- optional uint64 LoginId = 5; // 客户端登录账号
- optional string OptType = 6; // 操作类型1现货单据录入撤销2外部单据录入撤销3场外期权录入撤销
- }
- // 提货单确认收货请求
- message TakeConfirmReq {
- optional MessageHead Header = 1;
- optional uint64 ClientSerialID = 2; // 客户端唯一ID
- optional uint64 TakeOrderID = 3; // 提货单号
- }
- // 提货单确认收货应答
- message TakeConfirmRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ClientSerialID = 4; // 客户端唯一ID
- optional uint64 TakeOrderID = 5; // 提货单号
- }
- // 通知公告已读请求
- message MsgReceiverReadedReq {
- optional MessageHead Header = 1;
- optional uint64 ClientSerialID = 2; // 客户端唯一ID
- optional uint64 AutoID = 3; // 消息ID
- optional uint32 ManagerID = 4; // 用户ID
- optional uint32 ReceiverType = 5; // 接收用户类型-1:管理端用户
- }
- // 通知公告已读应答
- message MsgReceiverReadedRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ClientSerialID = 4; // 客户端唯一ID
- optional uint64 AutoID = 5; // 消息ID
- }
- // 交易商头像请求
- message DealerHeadReq {
- optional MessageHead Header = 1;
- optional uint64 ClientSerialID = 2; // 客户端唯一ID
- optional uint64 UserId = 3; // 用户ID
- optional string HeadUrl = 4; // 头像地址
- optional uint32 OptType = 5; // 操作类型1新增2修改3删除
- }
- // 交易商头像应答
- message DealerHeadRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ClientSerialID = 4; // 客户端唯一ID
- }
- // 用户商品收藏请求
- message UserProductReq {
- optional MessageHead Header = 1;
- optional uint64 ClientSerialID = 2; // 客户端唯一ID
- optional uint64 UserId = 3; // 用户ID
- optional uint64 GoodsID = 4; // 商品ID
- optional uint64 MarketID = 5; // 市场ID
- optional uint32 OptType = 6; // 操作类型1新增2修改3删除
- }
- // 用户商品收藏应答
- message UserProductRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ClientSerialID = 4; // 客户端唯一ID
- }
- // 订单收货信息请求
- message AuctionOrderReq {
- optional MessageHead Header = 1;
- optional uint64 ClientSerialID = 2; // 客户端唯一ID
- optional uint64 TradeID = 3; // 成交单ID
- optional string ReciverName = 4; // 收货人姓名
- optional uint32 CardTypeID = 5; // 收货人证件类型
- optional string CardNum = 6; // 收货人证件号码
- optional string PhoneNum = 7; // 收货人联系方式
- optional string Address = 8; // 收货人详细地址
- }
- // 订单收货信息应答
- message AuctionOrderRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ClientSerialID = 4; // 客户端唯一ID
- }
- // 提货单确认收货请求
- message TakeConfirmSZDZReq {
- optional MessageHead Header = 1;
- optional uint64 ClientSerialID = 2; // 客户端唯一ID
- optional uint64 TakeOrderID = 3; // 提货单号
- }
- // 提货单确认收货应答
- message TakeConfirmSZDZRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ClientSerialID = 4; // 客户端唯一ID
- optional uint64 TakeOrderID = 5; // 提货单号
- }
- // 确认提货请求
- message TakeAuctionOrderReq {
- optional MessageHead Header = 1;
- optional uint64 ClientSerialID = 2; // 客户端唯一ID
- optional uint64 TradeId = 3; // 成交单号
- }
- // 确认提货应答
- message TakeAuctionOrderRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ClientSerialID = 4; // 客户端唯一ID
- }
- // 外部开户请求
- message ExtOpenAccountReq {
- optional MessageHead Header = 1;
- optional string ExchTransID = 2; // 交易ID
- optional string FUserID = 3; // 用户代码
- optional double InMoney = 4; // 入金金额
- optional uint32 ExtFIsTrustee = 5; // 是否是投顾0客户,1投顾
- optional string UserName = 6; // 用户名称
- }
- // 外部开户应答
- message ExtOpenAccountRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string ExchTransID = 4; // 交易ID
- optional string FUserID = 5; // 用户代码
- optional string TradeAccountNo = 6; // 交易系统的登录账号
- optional string TradePwd = 7; // 登录密码
- }
- // 外部托管请求
- message ExtTrusteeReq {
- optional MessageHead Header = 1;
- optional string ExchTransID = 2; // 交易ID
- optional string FUserID = 3; // 用户代码
- optional uint32 IsTrusteeship = 4; // 0-否1-是
- }
- // 外部托管响应
- message ExtTrusteeRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string ExchTransID = 4; // 交易ID
- optional string FUserID = 5; // 用户代码
- optional uint32 IsTrusteeship = 6; // 0-否1-是
- }
- // 外部注销请求
- message ExtLogoutReq {
- optional MessageHead Header = 1;
- optional string ExchTransID = 2; // 交易ID
- optional string FUserID = 3; // 用户代码
- }
- // 外部注销响应
- message ExtLogoutRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string ExchTransID = 4; // 交易ID
- optional string FUserID = 5; // 用户代码
- }
- // 外部投顾与客户关系请求
- message ExtTrusteeRelationShipReq {
- optional MessageHead Header = 1;
- optional string ExchTransID = 2; // 交易ID
- optional string FUserID = 3; // 用户代码
- repeated ArrayFTouGuClientInfo FTouGuClientInfo = 4; // 投顾与客户关系
- optional uint32 IdRelation = 5; // 0关联1
- }
- // 外部投顾与客户关系响应
- message ExtTrusteeRelationShipRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string ExchTransID = 4; // 交易ID
- optional string FUserID = 5; // 用户代码
- }
- // 投顾与客户关系
- message ArrayFTouGuClientInfo {
- optional string FUserID = 1; // 用户代码
- }
- // 外部冻结解冻请求
- message ExtFreezeUserReq {
- optional MessageHead Header = 1;
- optional string ExchTransID = 2; // 交易ID
- optional string FUserID = 3; // 用户代码
- optional uint32 Isfrozen = 4; // 0解冻1冻结
- }
- // 外部冻结解冻响应
- message ExtFreezeUserRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string ExchTransID = 4; // 交易ID
- optional string FUserID = 5; // 用户代码
- }
- // 参与竞拍请求
- message PartakeAuctionOrderReq {
- optional MessageHead Header = 1;
- optional uint64 ApplyID = 2; // 申请ID
- optional uint64 GoodsID = 3; // 拍品ID
- optional uint32 DeliveryGoodsID = 4; // 交割商品商品ID
- optional uint64 AccountID = 5; // 资金账号
- optional uint32 BuyOrSell = 6; // 买卖方向
- optional uint32 OrderSrc = 7; // 委托来源
- optional string ClientSerialNo = 8; // 终端流水号
- optional string ClientOrderTime = 9; // 终端委托时间
- optional uint32 ClientType = 10; // 终端类型
- }
- // 参与竞拍应答
- message PartakeAuctionOrderRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 OrderID = 4; // 委托单ID
- optional uint64 ApplyID = 5; // 申请ID
- optional uint64 GoodsID = 6; // 拍品ID
- optional double FreezeMargin = 7; // 冻结保证金
- optional string ClientSerialNo = 8; // 客户端流水号
- }
- // 竞拍报价请求
- message AuctionQuoteOrderReq {
- optional MessageHead Header = 1;
- optional uint64 RelatedOrderID = 2; // 关联参与竞拍委托ID
- optional uint64 ApplyID = 3; // 申请ID
- optional uint64 GoodsID = 4; // 拍品ID
- optional uint64 AccountID = 5; // 资金账号
- optional uint32 BuyOrSell = 6; // 买卖方向
- optional uint32 OrderQty = 7; // 委托数量
- optional double CurPrice = 8; // 当前价格
- optional double PriceStep = 9; // 价格幅度(降价式、竞价式)
- optional uint32 StepRatio = 10; // 价格幅度系数
- optional double OrderPrice = 11; // 报价价格
- optional uint32 OrderSrc = 12; // 委托来源
- optional string ClientSerialNo = 13; // 终端流水号
- optional string ClientOrderTime = 14; // 终端委托时间
- optional uint32 GroupID = 15; // 场次ID
- }
- // 竞拍报价应答
- message AuctionQuoteOrderRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 RelatedOrderID = 4; // 关联参与竞拍委托ID
- optional uint64 ApplyID = 5; // 申请ID
- optional uint64 GoodsID = 6; // 拍品ID
- optional string ClientSerialNo = 7; // 客户端流水号
- }
- // 竞拍违约处理请求
- message AuctionBreachReq {
- optional MessageHead Header = 1;
- optional uint64 TradeID = 2; // 成交ID
- optional double BuyAmount = 3; // 买方应付/应收金额
- optional double SellAmount = 4; // 卖方应付/应收金额
- optional double ExchangeAmount = 5; // 交易所方应收金额
- }
- // 竞拍违约处理应答
- message AuctionBreachRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 TradeID = 4; // 成交ID
- }
- // 竞拍审核请求
- message AuctionCheckOrderReq {
- optional MessageHead Header = 1;
- optional uint64 GoodsID = 2; // 拍品ID
- optional string GoodsCode = 3; // 拍品代码
- optional string GoodsName = 4; // 拍品名称
- optional uint64 ApplyID = 5; // 申请ID
- optional uint64 WRUserID = 6; // 申请人用户ID
- optional uint64 WRAccountID = 7; // 资金账号ID
- optional uint32 MarketID = 8; // 市场ID
- optional uint32 BuyOrSell = 9; // 方向
- optional uint64 WRFactorTypeID = 10; // 仓单要素类型ID
- optional uint32 DeliveryGoodsID = 11; // 交割商品ID
- optional uint32 BrandID = 12; // 品牌ID
- optional uint32 QualityID = 13; // 品质ID
- optional uint32 SpecID = 14; // 规格ID
- optional uint32 WarehouseID = 15; // 仓库ID
- optional uint32 DeliveryMonthID = 16; // 月份ID
- optional uint64 ApplyQty = 17; // 申请数量
- optional uint32 AcutionStatus = 18; // 竞拍状态
- optional double StartPrice = 19; // 起拍价
- optional double FloorPrice = 20; // 底价
- optional string StartTradeDate = 21; // 起拍交易日
- optional string StartTime = 22; // 开始时间
- optional string EndTime = 23; // 结束时间
- optional string AuctionDesc = 24; // 拍品描述
- optional double Margin = 25; // 买方保证金设置值
- optional uint32 CutInterval = 26; // 延时周期-[降价式]
- optional double PriceStep = 27; // 价格幅度[降价式、竞价式]
- optional double TradePrice = 28; // 成交价
- optional uint64 TradeQty = 29; // 成交数量
- optional uint64 QuoteNum = 30; // 出价次数
- optional string CreateTime = 31; // 创建时间
- optional string UpdateTime = 32; // 更新时间
- optional uint32 DecimalPlace = 33; // 报价小数位
- optional uint32 FeeAlgorithm = 34; // 买方手续费收取方式
- optional double ExchageChargeValue = 35; // 买方手续费设置值(交易所收)
- optional uint32 FeeAlgorithm2 = 36; // 卖方手续费收取方式
- optional double ExchageChargeValue2 = 37; // 卖方手续费设置值(交易所收)
- optional uint32 FeeAlgorithm3 = 38; // 流拍手续费收取方式
- optional double ExchageChargeValue3 = 39; // 流拍卖方手续费设置值(交易所收)
- optional double FailCharge = 40; // 流拍手续费
- optional string Unit = 41; // 单位
- optional string GoodsPicUrl = 42; // 商品介绍图片
- optional uint32 BuyMarginAlgorithm = 43; // 买方保证金方式
- optional uint32 SellMarginAlgorithm = 44; // 卖方保证金方式
- optional double SellMarginValue = 45; // 卖方保证金设置值
- optional uint32 PerformanceMode = 46; // 履约方式
- optional int32 PerformanceTemplateID = 47; // 履约计划模板ID
- optional uint32 BuyFirstMarginAlgorithm = 48; // 买方出价保证金方式
- optional double BuyFirstMarginValue = 49; // 买方出价保证金值
- optional string ClientSerialNo = 50; // 客户端流水号
- optional uint32 PriceMode = 51; // 价格类型
- optional uint32 HasWR = 52; // 是否有仓单
- optional double HighestPrice = 53; // 最高价
- optional double RebateRatio = 54; // 返利比率
- optional string Appraisal = 55; // 鉴定书
- optional uint32 GroupID = 56; // 竞拍场次ID
- optional double MemberChargeValue = 57; // 买方手续费设置值(会员收)
- optional double MemberChargeValue2 = 58; // 卖方手续费设置值(会员收)
- optional double MemberChargeValue3 = 59; // 流拍卖方手续费设置值(会员收)
- optional uint32 PerformanceWay = 60; // 交货模式-2:分步履约
- optional double BuyReleaseRatio = 61; // 买方释放比率[2:分步履约]
- optional double SellReleaseRatio = 62; // 卖方释放比率[2:分步履约]
- optional uint32 ExecuteMode = 63; // 执行方式[2:分步履约]-1:顺序执行
- optional uint32 ExecuteSide = 64; // 执行方[2:分步履约]-1:买方
- optional uint32 MinQty = 65; // 最小执行量[2:分步履约]
- optional uint32 HoldDays = 66; // 合同期限[2:分步履约]
- }
- // 竞拍审核应答
- message AuctionCheckOrderRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ApplyID = 4; // 申请ID
- optional uint64 GoodsID = 5; // 拍品ID
- optional double FreezeMargin = 6; // 冻结保证金
- optional string ClientSerialNo = 7; // 客户端流水号
- }
- // 竞拍申请注销请求
- message AuctionApplyCancelReq {
- optional MessageHead Header = 1;
- optional uint64 GoodsID = 2; // 拍品ID
- optional string ClientSerialNo = 3; // 客户端流水号
- }
- // 竞拍申请注销应答
- message AuctionApplyCancelRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string ClientSerialNo = 4; // 客户端流水号
- }
- // 竞拍修改审核后的拍品请求
- message AuctionModifyOrderInfoReq {
- optional MessageHead Header = 1;
- optional uint64 GoodsID = 2; // 拍品ID
- optional string StartTradeDate = 3; // 起拍交易日
- optional string StartTime = 4; // 开始时间
- optional string EndTime = 5; // 结束时间
- optional string ClientSerialNo = 6; // 客户端流水号
- optional double FloorPrice = 7; // 底价
- optional double StartPrice = 8; // 起拍价
- optional uint32 Cutinterval = 9; // 降价周期-[降价式]
- optional double PriceStep = 10; // 价格幅度[降价式、竞价式];[荷兰式]:大钟转一圈的价格,10的幂次方
- optional uint32 ModifyType = 11; // 修改类型(默认为0),改价时填1
- }
- // 竞拍修改审核后的拍品应答
- message AuctionModifyOrderInfoRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string ClientSerialNo = 4; // 客户端流水号
- }
- // 竞拍拍品流拍请求
- message AuctionNoBeatReq {
- optional MessageHead Header = 1;
- optional uint64 GoodsID = 2; // 拍品ID
- optional uint32 GroupID = 3; // 场次ID
- optional string ClientSerialNo = 4; // 客户端流水号
- }
- // 竞拍拍品流拍应答
- message AuctionNoBeatRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string ClientSerialNo = 4; // 客户端流水号
- }
- // 荷兰式按场次参与竞拍请求
- message PartakeGroupAuctionOrderReq {
- optional MessageHead Header = 1;
- optional uint64 AccountID = 2; // 资金账号
- optional uint32 GroupID = 3; // 场次ID
- optional uint32 UserID = 4; // 申请人用户ID
- optional uint32 OrderSrc = 5; // 委托来源
- optional string ClientSerialNo = 6; // 终端流水号
- optional string ClientOrderTime = 7; // 终端委托时间(预留)
- optional uint32 ClientType = 8; // 终端类型
- }
- // 荷兰式按场次参与竞拍应答
- message PartakeGroupAuctionOrderRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 OrderID = 4; // 委托单ID(预留)
- optional double FreezeMargin = 5; // 冻结保证金
- optional string ClientSerialNo = 6; // 客户端流水号
- }
- // 金点拍用户抽奖请求
- message JdpUserLotteryReq {
- optional MessageHead Header = 1;
- optional uint32 UserID = 2; // 用户ID
- optional string LotteryTime = 3; // 抽奖时间
- optional string ClientSerialNo = 4; // 客户端流水号
- }
- // 金点拍用户抽奖响应
- message JdpUserLotteryRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint32 UserID = 4; // 用户ID
- optional string ClientSerialNo = 5; // 客户端流水号
- optional uint32 IsWinner = 6; // 是否中奖-0:否
- optional uint32 PrizeRank = 7; // 奖品等级
- }
- // JD购买能量值请求
- message JdTransferManaPointReq {
- optional MessageHead Header = 1;
- optional uint32 UserID = 2; // 用户ID
- optional uint64 AccountID = 3; // 资金账户ID
- optional uint32 OutGoodsID = 4; // 转出商品ID
- optional uint32 ChangeValue = 5; // 转换JD值
- optional string ClientSerialNo = 6; // 客户端流水号
- optional string Remark = 7; // 备注
- }
- // JD购买能量值响应
- message JdTransferManaPointRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint32 UserID = 4; // 用户ID
- optional string ClientSerialNo = 5; // 客户端流水号
- }
- // PD购买体力值请求
- message PdTransferHealthPointReq {
- optional MessageHead Header = 1;
- optional uint32 UserID = 2; // 用户ID
- optional uint64 AccountID = 3; // 资金账户ID
- optional uint32 OutGoodsID = 4; // 转出商品ID
- optional uint32 ChangeValue = 5; // 转换PD值
- optional string ClientSerialNo = 6; // 客户端流水号
- optional string Remark = 7; // 备注
- }
- // PD购买体力值响应
- message PdTransferHealthPointRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint32 UserID = 4; // 用户ID
- optional string ClientSerialNo = 5; // 客户端流水号
- }
- // JD转换PD请求
- message JdTransferPdReq {
- optional MessageHead Header = 1;
- optional uint32 UserID = 2; // 用户ID
- optional uint64 AccountID = 3; // 资金账户ID
- optional uint32 OutGoodsID = 4; // 转出商品ID
- optional uint32 InGoodsID = 5; // 转入商品ID
- optional uint32 ChangeValue = 6; // 转换JD值
- optional string ClientSerialNo = 7; // 客户端流水号
- optional string Remark = 8; // 备注
- optional string Password = 9; // 资金密码
- }
- // JD转换PD响应
- message JdTransferPdRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint32 UserID = 4; // 用户ID
- optional string ClientSerialNo = 5; // 客户端流水号
- }
- // 金点拍拍得者获取抽奖号码请求
- message JdpPdzGetJoinNumReq {
- optional MessageHead Header = 1;
- optional uint64 AccountID = 2; // 账户ID
- optional uint32 UserID = 3; // 用户ID
- optional uint32 PdGoodsID = 4; // 拍点商品ID
- optional string ClientSerialNo = 5; // 客户端流水号
- }
- // 金点拍拍得者获取抽奖号码响应
- message JdpPdzGetJoinNumRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 AccountID = 4; // 账户ID
- optional uint32 UserID = 5; // 用户ID
- optional uint32 PdGoodsID = 6; // 拍点商品ID
- repeated string JoinNum = 7; // 抽奖号码
- optional string ClientSerialNo = 8; // 客户端流水号
- }
- // PD转换PD请求
- message PdTransferPdReq {
- optional MessageHead Header = 1;
- optional uint32 UserID = 2; // 转出方用户ID
- optional uint64 AccountID = 3; // 转出方资金账户ID
- optional uint32 OutGoodsID = 4; // 转出商品ID
- optional uint32 UserID2 = 5; // 转入方用户ID
- optional uint64 AccountID2 = 6; // 转入方资金账户ID
- optional uint32 ChangeValue = 7; // 转换PD值
- optional string ClientSerialNo = 8; // 客户端流水号
- optional string Remark = 9; // 备注
- optional string Password = 10; // 资金密码
- }
- // PD转换PD响应
- message PdTransferPdRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint32 UserID = 4; // 用户ID
- optional string ClientSerialNo = 5; // 客户端流水号
- }
- // PD导入信息
- message PdTransferIn {
- optional uint32 UserID = 1; // 用户ID
- optional uint64 AccountID = 2; // 资金账户ID
- optional uint32 PdGoodsID = 3; // PD商品ID
- optional uint32 ChangeValue = 4; // 导入PD值
- optional string Mobile = 5; // 手机号码
- optional string Remark = 6; // 备注
- optional string UserName = 7; // 用户名称
- }
- // PD批量导入请求
- message PdMultiTransferInReq {
- optional MessageHead Header = 1;
- repeated PdTransferIn PdTransferInInfos = 2; // 导入客户信息
- optional string Remark = 3; // 备注
- }
- // PD批量导入响应
- message PdMultiTransferInRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint32 ProcQty = 4; // 处理数量
- }
- // 用户VIP升级请求
- message UserVipUpgradeReq {
- optional MessageHead Header = 1;
- optional uint32 UserID = 2; // 用户ID
- optional uint64 AccountID = 3; // 资金账户ID
- optional uint32 PdGoodsID = 4; // PD商品ID
- optional string ClientSerialNo = 5; // 客户端流水号
- }
- // 用户VIP升级响应
- message UserVipUpgradeRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint32 UserID = 4; // 用户ID
- optional uint64 AccountID = 5; // 资金账户ID
- optional uint32 PdGoodsID = 6; // PD商品ID
- optional string ClientSerialNo = 7; // 客户端流水号
- }
- // 竞拍审核请求
- message AuctionCheckExOrderReq {
- optional MessageHead Header = 1;
- optional string GoodsName = 2; // 拍品名称
- optional uint64 ApplyID = 3; // 申请ID
- optional uint64 WRUserID = 4; // 申请人用户ID
- optional uint64 WRAccountID = 5; // 资金账号ID
- optional uint32 MarketID = 6; // 市场ID
- optional uint32 BuyOrSell = 7; // 方向
- optional uint64 ApplyQty = 8; // 申请数量
- optional double StartPrice = 9; // 起拍价
- optional double FloorPrice = 10; // 底价
- optional string StartTradeDate = 11; // 起拍交易日
- optional string StartTime = 12; // 开始时间
- optional string EndTime = 13; // 结束时间
- optional double PriceStep = 14; // 价格幅度[降价式、竞价式]
- optional uint32 PriceMode = 15; // 价格类型
- optional double HighestPrice = 16; // 最高价
- optional uint32 DecimalPlace = 17; // 报价小数位
- optional uint32 FeeAlgorithm = 18; // 买方手续费收取方式
- optional double ExchageChargeValue = 19; // 买方手续费设置值(交易所收)
- optional double MemberChargeValue = 20; // 买方手续费设置值(会员收)
- optional uint32 FeeAlgorithm2 = 21; // 卖方手续费收取方式
- optional double ExchageChargeValue2 = 22; // 卖方手续费设置值(交易所收)
- optional double MemberChargeValue2 = 23; // 卖方手续费设置值(会员收)
- optional uint32 FeeAlgorithm3 = 24; // 流拍手续费收取方式
- optional double ExchageChargeValue3 = 25; // 流拍卖方手续费设置值(交易所收)
- optional double MemberChargeValue3 = 26; // 流拍卖方手续费设置值(会员收)
- optional uint32 BuyMarginAlgorithm = 27; // 买方保证金方式
- optional double BuyMarginValue = 28; // 买方保证金设置值
- optional uint32 SellMarginAlgorithm = 29; // 卖方保证金方式
- optional double SellMarginValue = 30; // 卖方保证金设置值
- optional uint32 BuyFirstMarginAlgorithm = 31; // 买方出价保证金方式
- optional double BuyFirstMarginValue = 32; // 买方出价保证金值
- optional string ClientSerialNo = 33; // 客户端流水号
- optional string Unit = 34; // 单位
- optional string GoodsPicUrl = 35; // 商品介绍图片
- optional string AuctionDesc = 36; // 拍品描述
- optional string Appraisal = 37; // 鉴定书
- optional uint32 ScoreGoodsID = 38; // 积分消费商品ID
- optional double MarketPrice = 39; // 市场参考价
- optional uint32 CategoryID = 40; // 分类ID
- optional uint64 ShopID = 41; // 店铺ID
- }
- // 竞拍审核应答
- message AuctionCheckExOrderRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ApplyID = 4; // 申请ID
- optional uint64 GoodsID = 5; // 拍品ID
- optional double FreezeMargin = 6; // 冻结保证金
- optional string ClientSerialNo = 7; // 客户端流水号
- }
- // 批量调整信息
- message BatchChange {
- optional string Mobile = 1; // 手机号码
- optional string UserName = 2; // 用户名称
- optional uint32 UserID = 3; // 用户ID
- optional uint32 UserRank = 4; // 用户变更等级,空或其他不调整
- optional int32 MPValue = 5; // 变更能量值-正加负减,减少到0
- optional int32 HPValue = 6; // 变更体力值-正加负减,减少到0
- }
- // 用户批量调整请求
- message UserBatchChangeReq {
- optional MessageHead Header = 1;
- repeated BatchChange BatchChanges = 2; // 调整用户信息集合
- optional uint32 CreatorID = 3; // 创建人
- }
- // 用户批量调整响应
- message UserBatchChangeRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint32 CreatorID = 4; // 创建人
- }
- // 外部JD转入请求
- message ExtenalJdTransferInReq {
- optional MessageHead Header = 1;
- optional string Mobile = 2; // 手机号码
- optional string JDCode = 3; // JD代码
- optional uint32 JDValue = 4; // JD转入数量
- optional string ClientSerialNo = 5; // 客户端流水号
- }
- // 外部JD转入响应
- message ExtenalJdTransferInRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional string ClientSerialNo = 4; // 客户端流水号
- }
- // 自动报价请求
- message AutoQuoteReq {
- optional MessageHead Header = 1;
- optional uint32 QuoterID = 2; // 报价商ID
- optional uint32 GoodsID = 3; // 商品ID
- optional uint32 BuyOrSell = 4; // 买卖方向
- optional uint64 Price = 5; // 价格
- optional int64 TotalQty = 6; // 总量
- optional int64 PerQty = 7; // 释放量
- optional uint64 TryInterval = 8; // 失败重发间隔(分)
- optional string ExpiredDate = 9; // 报价有效日期(yyyymmdd)
- optional uint64 QuoteEffectiveSecond = 10; // 委托有效时间(秒)
- optional uint64 LimitPrice = 11; // 最高买价/最低卖价
- optional int32 PriceMove = 12; // 买点差/卖点差
- }
- // 自动报价请求回应
- message AutoQuoteRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint32 QuoterID = 4; // 报价商ID
- optional uint32 GoodsID = 5; // 商品ID
- optional uint32 BuyOrSell = 6; // 买卖方向
- }
- // 报价请求
- message QuoteReq {
- optional MessageHead Header = 1;
- optional uint32 GoodsID = 2; // 商品代码
- optional uint32 QuoterID = 3; // 报价商ID
- optional uint64 Bid = 4; // 买价
- optional int64 BidVolume = 5; // 买量
- optional uint64 Ask = 6; // 卖价
- optional int64 AskVolume = 7; // 卖量
- optional string DateTime = 8; // 报价时间
- optional uint64 VaildTime = 9; // 行情有效时间(秒)
- optional uint32 QuoteMinValue = 10; // 报价随机量下限
- optional uint32 QuoteMaxValue = 11; // 报价随机量上限
- optional uint64 Last = 12; // 最新价
- optional uint64 TopBid = 13; // 最高买价
- optional uint64 BottomAsk = 14; // 最低卖价
- optional int64 BidMove = 15; // 买点差
- optional int64 AskMove = 16; // 卖点差
- optional uint32 QuoteSource = 17; // 报价来源
- optional uint64 QuoteID = 18; // 报价单ID
- }
- // 报价请求
- message QuoteRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 QuoteID = 4; // 报价单ID
- optional int64 BidVolume = 5; // 买量
- optional int64 AskVolume = 6; // 卖量
- }
- // 报价请求
- message NewQuoteReq {
- optional MessageHead Header = 1;
- optional uint32 QuoterID = 2; // 报价商ID
- optional uint32 GoodsID = 3; // 商品代码
- optional uint32 BuyOrSell = 4; // 买卖方向
- optional string DateTime = 5; // 报价时间
- optional uint32 OpType = 6; // 操作类型(1报价,2
- optional uint64 QuoteID = 7; // 报价单ID
- optional uint64 Price = 8; // 价格
- optional uint64 Qty = 9; // 数量
- optional int32 Move = 10; // 点差
- optional uint64 LimitPrice = 11; // 最高买价/最低卖价
- optional uint64 QuoteEffectiveSecond = 12; // 行情有效时间(秒)
- optional uint32 QuoteMinValue = 13; // 报价随机量下限
- optional uint32 QuoteMaxValue = 14; // 报价随机量上限
- optional uint32 QuoteSource = 15; // 报价来源
- optional uint32 PriceType = 16; // 报价类型
- optional uint32 QtyType = 17; // 报量类型
- }
- // 报价请求
- message NewQuoteRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint32 QuoterID = 4; // 报价商ID
- optional uint32 GoodsID = 5; // 商品代码
- optional uint32 BuyOrSell = 6; // 买卖方向
- optional uint64 QuoteID = 7; // 报价单ID
- }
- // 账户斩仓请求
- message CutAccountReq {
- optional MessageHead Header = 1;
- optional uint64 ApplyID = 2; // 申请ID
- optional uint64 AccountID = 3; // 资金账号
- }
- // 账户斩仓应答
- message CutAccountRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ApplyID = 4; // 申请ID
- optional uint64 AccountID = 5; // 资金账号
- }
- // 强平查询请求
- message ForceCloseQueryReq {
- optional MessageHead Header = 1;
- optional uint64 AccountID = 2; // 买方账户Id
- optional uint32 GoodsID = 3; // 商品Id(所有权)
- optional uint32 BuyOrSell = 4; // 买卖方向
- optional double OrderPrice = 5; // 强平价格
- optional string ClientSerialNo = 6; // 流水号
- }
- // 强平查询响应
- message ForceCloseQueryRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 AccountID = 4; // 买方账户Id
- optional uint32 GoodsID = 5; // 商品Id(所有权)
- optional uint32 BuyOrSell = 6; // 买卖方向
- optional string ClientSerialNo = 7; // 流水号
- optional double OrderPrice = 8; // 强平价格
- optional uint64 OrderQty = 9; // 强平数量
- }
- // 招标审核请求
- message TenderAuditReq {
- optional MessageHead Header = 1;
- optional uint64 ApplyID = 2; // 招标申请ID
- optional uint32 AuditStatus = 3; // 审核结果(eTender_AuditStatus)
- optional uint32 TenderUserID = 4; // 招标用户ID
- optional string TenderNum = 5; // 招标编号
- optional string TenderTital = 6; // 招标主题
- optional string OpenDate = 7; // 开标日期
- optional string TenderContact = 8; // 招标联系人
- optional string TenderTelphone = 9; // 招标联系电话
- optional string TenderGoods = 10; // 招标标的
- optional uint32 TenderType = 11; // 招标类型
- optional uint32 GradeType = 12; // 评分类型
- optional string TenderFile = 13; // 招标文件
- optional string GoodsCode = 14; // 商品代码
- optional double TenderMargin = 15; // 招标方保证金
- optional double BidMargin = 16; // 投标方保证金
- optional uint64 TenderAccountID = 17; // 招标方资金账户ID
- optional string ClientSerialNo = 18; // 客户端流水号
- optional double TenderCharge = 19; // 招标手续费
- }
- // 招标审核应答
- message TenderAuditRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 ApplyID = 4; // 招标申请ID
- optional uint32 AuditStatus = 5; // 审核结果(eTender_AuditStatus)
- optional uint64 GoodsID = 6; // 招标信息ID
- optional uint32 TenderStatus = 7; // 招标状态(eTenderStatus)
- optional string ClientSerialNo = 8; // 客户端流水号
- }
- // 招标确认请求
- message TenderConfirmReq {
- optional MessageHead Header = 1;
- optional uint64 GoodsID = 2; // 招标信息ID
- optional uint32 ConfirmStatus = 3; // 确认状态(eTender_ConfirmStatus)
- optional uint32 ConfirmID = 4; // 确认人
- optional string ConfirmRemark = 5; // 确认备注
- optional string ClientSerialNo = 6; // 客户端流水号
- }
- // 招标确认应答
- message TenderConfirmRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 GoodsID = 4; // 招标信息ID
- optional uint32 TenderStatus = 5; // 招标状态(eTenderStatus)
- optional string ClientSerialNo = 6; // 客户端流水号
- }
- // 招标终止请求
- message TenderStopReq {
- optional MessageHead Header = 1;
- optional uint64 GoodsID = 2; // 招标信息ID
- optional string ClientSerialNo = 3; // 客户端流水号
- optional uint32 CloserID = 4; // 终止人
- optional string CloseTime = 5; // 终止时间
- optional string CloseRemark = 6; // 终止备注
- }
- // 招标终止响应
- message TenderStopRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 GoodsID = 4; // 招标信息ID
- optional uint32 TenderStatus = 5; // 招标状态(eTenderStatus)
- optional string ClientSerialNo = 6; // 客户端流水号
- }
- // 投标审核请求
- message BidAuditReq {
- optional MessageHead Header = 1;
- optional uint64 GoodsID = 2; // 招标信息ID
- optional uint32 AuditStatus = 3; // 审核结果(eTender_AuditStatus)
- optional uint32 BidUserID = 4; // 投标用户ID
- optional string Contact = 5; // 联系人
- optional string Telphone = 6; // 联系电话
- optional string Email = 7; // 电子邮件
- optional string Address = 8; // 投标方地址
- optional string BidFile = 9; // 投标文件
- optional string Mobile = 10; // 手机
- optional uint64 BidAccountID = 11; // 投标方资金账户ID
- optional string ClientSerialNo = 12; // 客户端流水号
- }
- // 投标审核应答
- message BidAuditRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 GoodsID = 4; // 招标信息ID
- optional uint32 AuditStatus = 5; // 审核结果(eTender_AuditStatus)
- optional uint32 BidUserID = 6; // 投标用户ID
- optional uint32 BidStatus = 7; // 投标状态(eBidStatus)
- optional string ClientSerialNo = 8; // 客户端流水号
- }
- // 投标评分请求
- message BidGradeReq {
- optional MessageHead Header = 1;
- optional uint64 GoodsID = 2; // 招标信息ID
- optional uint32 BidUserID = 3; // 投标用户ID
- optional uint32 BidGrade = 4; // 评分分值
- optional string GradeRemark = 5; // 评分备注
- }
- // 投标评分应答
- message BidGradeRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 GoodsID = 4; // 招标信息ID
- optional uint32 BidUserID = 5; // 投标用户ID
- optional uint32 BidStatus = 6; // 投标状态(eBidStatus)
- }
- // 中标确认请求
- message AcceptConfimReq {
- optional MessageHead Header = 1;
- optional uint64 GoodsID = 2; // 招标信息ID
- optional uint32 WinnerUserID = 3; // 中标用户ID
- optional uint32 CreatorUserID = 4; // 确认用户ID
- optional uint32 IsPublicity = 5; // 是否公示(eIsPublicity)
- optional string EndDate = 6; // 公示截止时间
- optional double WinPrice = 7; // 中标价
- optional string PerformanceRemark = 8; // 履约备注
- optional string WinRemark = 9; // 中标备注
- }
- // 中标确认应答
- message AcceptConfimRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 WinID = 4; // 中标信息ID
- optional uint64 GoodsID = 5; // 招标信息ID
- optional uint32 WinnerUserID = 6; // 中标用户ID
- optional uint32 TenderStatus = 7; // 招标状态(eTenderStatus)
- optional uint32 BidStatus = 8; // 投标状态(eBidStatus)
- }
- // 中标审核请求
- message AcceptAuditReq {
- optional MessageHead Header = 1;
- optional uint64 WinID = 2; // 中标信息ID
- optional uint64 GoodsID = 3; // 招标信息ID
- optional uint32 AuditStatus = 4; // 审核结果(eTender_AuditStatus)
- optional uint32 AuditID = 5; // 审核人ID
- optional string AuditRemark = 6; // 审核描述
- }
- // 中标审核应答
- message AcceptAuditRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 WinID = 4; // 中标信息ID
- optional uint64 GoodsID = 5; // 招标信息ID
- optional uint32 AuditStatus = 6; // 审核结果(eTender_AuditStatus)
- optional uint32 TenderStatus = 7; // 招标状态(eTenderStatus)
- optional uint32 WinnerUserID = 8; // 中标用户ID
- optional uint32 WinnerBidStatus = 9; // 中标投标状态(eBidStatus)
- optional uint32 OtherBidStatus = 10; // 其他投标状态(eBidStatus)
- }
- // 中标作废请求
- message AcceptDisableReq {
- optional MessageHead Header = 1;
- optional uint64 WinID = 2; // 中标信息ID
- optional uint64 GoodsID = 3; // 招标信息ID
- optional uint32 AuditID = 4; // 审核人ID
- optional string AuditRemark = 5; // 审核描述
- }
- // 中标作废应答
- message AcceptDisableRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 WinID = 4; // 中标信息ID
- optional uint64 GoodsID = 5; // 招标信息ID
- optional uint32 TenderStatus = 6; // 招标状态(eTenderStatus)
- optional uint32 BidStatus = 7; // 投标状态(eBidStatus)
- }
- // 市场状态变更通知请求
- message MarketStatusChangeReq {
- optional MessageHead Header = 1;
- optional uint32 Status = 2; // 状态
- optional uint32 StepType = 3; // 阶段
- required string TradeDay = 4; // 交易日
- optional string NotifyTime = 5; // 通知发送时间
- optional uint32 SectionId = 6; // 开休市计划里面的SectionId,若此字段有数值,返回应答要一起返回
- }
- // 市场状态变更通知应答
- message MarketStatusChangeRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint32 Status = 4; // 状态
- optional uint32 StepType = 5; // 阶段
- required string TradeDay = 6; // 交易日
- optional string NotifyTime = 7; // 通知发送时间
- optional uint32 SectionId = 8; // 请求报文中的SectionId字段数值,请求中有这个字段,应答要返回这个
- }
- // 市场状态给行情服务通知请求
- message CSMarketStatusToQuoteReq {
- optional MessageHead Header = 1;
- required string TradeDate = 2; // 交易日
- required uint32 Status = 3; // 状态,默认填0
- optional string NotifyTime = 4; // 通知发送时间
- }
- // 市场状态给行情服务通知应答
- message CSMarketStatusToQuoteRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- required string TradeDate = 4; // 交易日
- required uint32 Status = 5; // 状态,默认填0
- optional string NotifyTime = 6; // 通知发送时间
- }
- // 控制服务市场结算结果通知
- message CSMarketReckonResultNtf {
- optional MessageHead Header = 1; // 消息头
- optional string TradeDate = 2; // string 交易日
- optional uint32 OperateType = 3; // uint32 结算操作类型;1:市场结算结果更新;2:开始清算
- optional uint32 MarketReckonType = 4; // uint32 市场结算结果类型;1:结算成功;2:市场结算记录删除;3:手动操作(管理端信号)
- }
- // 控制服务市场清算结果通知
- message CSSettleResultNtf {
- optional MessageHead Header = 1; // 消息头
- optional string TradeDate = 2; // string 交易日
- optional uint32 Result = 3; // uint32 清算结果:1:开始清算;
- }
- // 下单请求
- message ExternOrderReq {
- optional MessageHead Header = 1;
- optional uint32 OrderType = 2; // 订单类型
- optional uint32 UserID = 3; // 唯一识别用户
- optional uint32 MdOptionID = 4; // 行情代码ID
- optional double Strike = 5; // 标的价格
- optional double UdstartPrice = 6; // 行情数据中的价格字段
- optional uint32 Buy = 7; // 买:1,卖:0
- optional uint32 Open = 8; // 开:1
- optional double OrderPrice = 9; // 价格
- optional uint32 Qty = 10; // 数量
- optional uint64 CustomBizID = 11; // 为前端预留,前端可以用来存储一些标志。比如前端系统的内部订单号
- optional string CustomBizSubID = 12; // 为前端预留,前端可以用来存储一些标志。最大长度64
- optional uint32 UserSelectExpDate = 13; // 用户选择的到期日期YYYYMMDD。默认填0
- optional uint32 UserOdds = 14; // 默认为0
- }
- // 批量下单请求
- message MultiExternOrdersReq {
- optional MessageHead Header = 1;
- optional uint32 ReqID = 2; // 请求ID,唯一,由请求端来维护
- repeated ExternOrderReq Orders = 3; // 订单集合
- }
- // 下单应答
- message ExOptionOrderRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint32 OrderType = 4; // 订单类型
- optional uint32 UserID = 5; // 唯一识别用户
- optional uint32 MdOptionID = 6; // 行情代码ID
- optional double Strike = 7; // 标的价格
- optional uint32 Status = 8; // 行权状态
- optional uint64 OrderID = 9; // 订单号,成功的订单才有订单号,失败的为0
- optional uint64 CustomBizID = 10; // 为前端预留,前端可以用来存储一些标志。比如前端系统的内部订单号
- optional string CustomBizSubID = 11; // 为前端预留,前端可以用来存储一些标志。最大长度64
- }
- // 批量下单应答
- message MultiExOptionOrderRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint32 ReqID = 4; // 请求ID,唯一,由请求端来维护
- repeated ExOptionOrderRsp Orders = 5; // 订单集合
- }
- // 撤单请求
- message ExOptionOrderCancelReq {
- optional MessageHead Header = 1;
- optional uint32 UserID = 2; // 唯一识别用户
- optional uint32 MdOptionID = 3; // 行情代码ID
- optional uint64 OrderID = 4; // 订单号,成功的订单才有订单号,失败的为0
- optional uint64 CustombizID = 5; // 为前端预留,前端可以用来存储一些标志。比如前端系统的内部订单号
- optional string CustombizsubID = 6; // 为前端预留,前端可以用来存储一些标志。最大长度64
- }
- // 批量撤单请求
- message MultiExOptionOrderCancelReq {
- optional MessageHead Header = 1;
- optional uint32 ReqID = 2; // 请求ID,唯一,由请求端来维护
- repeated ExOptionOrderCancelReq Orders = 3; // 订单集合
- }
- // 撤单应答
- message ExOptionOrderCancelRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint32 UserID = 4; // 唯一识别用户
- optional uint64 OrderID = 5; // 订单号,成功的订单才有订单号,失败的为0
- optional uint64 CustomBizID = 6; // 为前端预留,前端可以用来存储一些标志。比如前端系统的内部订单号
- optional string CustomBizSubID = 7; // 为前端预留,前端可以用来存储一些标志。最大长度64
- }
- // 批量撤单应答
- message MultiExOptionOrderCancelRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint32 ReqID = 4; // 请求ID,唯一,由请求端来维护
- repeated ExOptionOrderCancelRsp Orders = 5; // 订单集合
- }
- // 行权请求
- message ExOptionExeciseReq {
- optional MessageHead Header = 1;
- optional double ExecLimitPrice = 2; // 指定的行权挂单价格
- optional uint32 UserID = 3; // 唯一识别用户
- optional uint64 OrderID = 4; // 订单号,成功的订单才有订单号,失败的为0
- optional uint32 QtyExecise = 5; // 数量。支持部分数量行权。该值不得大于可行权数量(参考查询持仓接口中的字段。可行权数量=
- optional uint64 CustomBizID = 6; // 为前端预留,前端可以用来存储一些标志。比如前端系统的内部订单号
- optional string CustomBizSubID = 7; // 为前端预留,前端可以用来存储一些标志。最大长度64
- }
- // 批量行权请求
- message MultiExOptionExeciseReq {
- optional MessageHead Header = 1;
- optional uint32 ReqID = 2; // 请求ID,唯一,由请求端来维护
- repeated ExOptionExeciseReq Orders = 3; // 订单集合
- }
- // 行权应答
- message ExOptionExeciseRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint32 UserID = 4; // 唯一识别用户
- optional uint32 MdOptionID = 5; // 行情代码ID
- optional uint32 Status = 6; // 行权状态
- optional uint64 OrderID = 7; // 订单号,成功的订单才有订单号,失败的为0
- optional uint64 OmsOrderID = 8; // 该持仓对应的下单的订单号
- optional uint64 CustomBizID = 9; // 为前端预留,前端可以用来存储一些标志。比如前端系统的内部订单号
- optional string CustomBizSubID = 10; // 为前端预留,前端可以用来存储一些标志。最大长度64
- optional double SettlePrice = 11; // 结算价格
- optional double Pl = 12; // 浮动盈亏
- }
- // 批量行权应答
- message MultiExOptionExeciseRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint32 ReqID = 4; // 请求ID,唯一,由请求端来维护
- repeated ExOptionExeciseRsp Orders = 5; // 订单集合
- }
- // 行权撤销请求
- message ExOptionExeciseCancelReq {
- optional MessageHead Header = 1;
- optional uint32 UserID = 2; // 唯一识别用户
- optional uint64 OrderID = 3; // 订单号,成功的订单才有订单号,失败的为0
- optional uint64 CustomBizID = 4; // 为前端预留,前端可以用来存储一些标志。比如前端系统的内部订单号
- optional string CustomBizSubID = 5; // 为前端预留,前端可以用来存储一些标志。最大长度64
- }
- // 批量行权撤销请求
- message MultiExOptionExeciseCancelReq {
- optional MessageHead Header = 1;
- optional uint32 ReqID = 2; // 请求ID,唯一,由请求端来维护
- repeated ExOptionExeciseCancelReq Orders = 3; // 订单集合
- }
- // 行权撤销应答
- message ExeciseCancelRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint32 UserID = 4; // 唯一识别用户
- optional uint32 MdOptionID = 5; // 行情代码ID
- optional uint32 Status = 6; // 行权状态
- optional uint64 OrderID = 7; // 订单号,成功的订单才有订单号,失败的为0
- optional uint64 OmsOrderID = 8; // 该持仓对应的下单的订单号
- optional uint64 CustomBizID = 9; // 为前端预留,前端可以用来存储一些标志。比如前端系统的内部订单号
- optional string CustomBizSubID = 10; // 为前端预留,前端可以用来存储一些标志。最大长度64
- optional int32 ErrorCode = 11; // 错误编码,订单正常时为0
- optional string RspInfo = 12; // 正常订单为空字符串。异常订单有提示信息
- }
- // 批量行权撤销应答
- message MultiExeciseCancelRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint32 ReqID = 4; // 请求ID,唯一,由请求端来维护
- repeated ExeciseCancelRsp Orders = 5; // 订单集合
- }
- // 行权回调
- message ExeciseNotify {
- optional uint32 ReqID = 1; // 请求ID,唯一,由请求端来维护
- optional uint32 UserID = 2; // 唯一识别用户
- optional uint32 ExeciseTime = 3; // 时间,格式HHMMSSxxx精确到ms
- optional uint32 ExeciseDate = 4; // 行权日期YYYYMMDD
- optional uint64 OrderID = 5; // 订单号,成功的订单才有订单号,失败的为0
- optional uint32 QtyExecise = 6; // 数量。支持部分数量行权。该值不得大于可行权数量(参考查询持仓接口中的字段。可行权数量=qty-qtyExecise)
- optional double SettlePrice = 7; // 结算价格
- optional double Pl = 8; // 浮动盈亏
- optional uint32 Execise_status = 9; // 行权状态
- optional uint64 CustomBizID = 10; // 为前端预留,前端可以用来存储一些标志。比如前端系统的内部订单号
- optional string CustomBizSubID = 11; // 为前端预留,前端可以用来存储一些标志。最大长度64
- optional uint32 ManualFlag = 12; // 手动行权结算标志。1:手动行权结算。0:自动行权结算。
- }
- // 批量行权回调
- message MultiExeciseNtf {
- optional MessageHead Header = 1; // 消息头
- optional uint32 Timestamp = 2; // uint32 整数型(int)的时间(HHMMSSxxx)精确到毫秒,采用服务器机器
- repeated ExeciseNotify Execises = 3; // ExeciseNotify 行权回调集合
- }
- // 成交回调
- message TradeNotify {
- optional uint32 UserID = 1; // 唯一识别用户
- optional uint64 OrderID = 2; // 订单号,成功的订单才有订单号,失败的为0
- optional uint32 MdOptionID = 3; // 行情代码ID
- optional double Strike = 4; // 标的价格
- optional uint32 Qty = 5; // 数量
- optional uint32 QtyFilled = 6; // 成交数量(累计)
- optional uint64 CustomBizID = 7; // 为前端预留,前端可以用来存储一些标志。比如前端系统的内部订单号
- optional string CustomBizSubID = 8; // 为前端预留,前端可以用来存储一些标志。最大长度64byte
- optional uint32 OrderDate = 9; // 下单日期,格式YYYYMMDD
- optional uint32 ExpDate = 10; // 到期日期,格式YYYYMMDD
- optional uint32 OrderType = 11; // 订单类型
- optional double Multiplier = 12; // 合约乘数
- optional double Price_filled = 13; // 成交价格
- optional double Turnover = 14; // 金额
- optional double UpperBoundary = 15; //
- optional double LowerBoundary = 16; //
- optional string ExecStartTime = 17; // 行权开始时间
- optional string ExecEndTime = 18; // 行权结束时间
- }
- // 批量成交回调
- message MultiTradeNtf {
- optional MessageHead Header = 1; // 消息头
- optional uint32 Timestamp = 2; // uint32 整数型(int)的时间(HHMMSSxxx)精确到毫秒,采用服务器机器
- repeated TradeNotify Trades = 3; // TradeNotify 成交回调集合
- }
- // 撤单回调
- message CancelNotify {
- optional uint32 UserID = 1; // 唯一识别用户
- optional uint64 OrderID = 2; // 订单号,成功的订单才有订单号,失败的为0
- optional uint32 MdOptionID = 3; // 行情代码ID
- optional uint64 CustomBizID = 4; // 为前端预留,前端可以用来存储一些标志。比如前端系统的内部订单号
- optional string CustomBizSubID = 5; // 为前端预留,前端可以用来存储一些标志。最大长度64
- optional uint32 OrderType = 6; // 订单类型
- }
- // 批量撤单回调
- message MultiCancelNtf {
- optional MessageHead Header = 1; // 消息头
- optional uint32 Timestamp = 2; // uint32 整数型(int)的时间(HHMMSSxxx)精确到毫秒,采用服务器机器
- repeated CancelNotify Cancels = 3; // CancelNotify 撤单回调集合
- }
- // 行权撤单回调
- message ExeciseCancelNotify {
- optional uint32 UserID = 1; // 唯一识别用户
- optional uint64 OrderID = 2; // 订单号,成功的订单才有订单号,失败的为0
- optional uint64 CustomBizID = 3; // 为前端预留,前端可以用来存储一些标志。比如前端系统的内部订单号
- optional string CustomBizSubID = 4; // 为前端预留,前端可以用来存储一些标志。最大长度64byte
- optional double ExecLimitPrice = 5; // 指定的行权挂单价格
- }
- // 批量行权撤单回调
- message MultiExeciseCancelNtf {
- optional MessageHead Header = 1; // 消息头
- optional uint32 Timestamp = 2; // uint32 整数型(int)的时间(HHMMSSxxx)精确到毫秒,采用服务器机器
- repeated ExeciseCancelNotify ExeciseCancels = 3; // ExeciseCancelNotify 撤单回调集合
- }
- // 查询委托请求
- message QryExOptionOrderReq {
- optional MessageHead Header = 1;
- optional uint32 ReqID = 2; // 请求ID,唯一,由请求端来维护
- optional uint32 Size = 3; // 返回长度
- optional uint64 OrderID = 4; // 委托单ID
- }
- // 委托信息
- message OrderInfo {
- optional uint32 UserID = 1; // 唯一识别用户
- optional uint64 OrderID = 2; // 该持仓对应的下单的订单号
- optional uint32 MdOptionID = 3; // 行情代码ID
- optional double OrderPrice = 4; // 委托价
- optional uint32 Buy = 5; // 买卖方向
- optional uint32 Open = 6; // 建/平
- optional uint32 Qty = 7; // 委托数量
- optional uint32 QtyFilled = 8; // 成交数量
- optional uint64 CustomBizID = 9; // 前端预留字段
- optional string CustomSubBizID = 10; // 前端预留字段
- optional double Strike = 11; // 标的价格
- optional double UdStartPrice = 12; //
- optional string ExpDate = 13; //
- optional uint32 Status = 14; //
- optional uint32 OrderType = 15; // 委托类型
- optional string OrderTime = 16; // 委托时间
- optional double TurnOver = 17; //
- optional uint64 RecvID = 18; //
- }
- // 查询委托返回
- message QryExOptionOrderRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint32 ReqID = 4; // 请求ID,唯一,由请求端来维护
- repeated OrderInfo OrderDetail = 5; // 委托明细
- }
- // 查询行权委托请求
- message QryExOptionExeciseOrderReq {
- optional MessageHead Header = 1;
- optional uint32 ReqID = 2; // 请求ID,唯一,由请求端来维护
- optional uint32 Size = 3; // 返回长度
- optional uint64 ExeciseOrderID = 4; // 行权委托单ID
- }
- // 行权委托
- message ExeciseOrderInfo {
- optional uint32 UserID = 1; // 唯一识别用户
- optional uint64 OmsOrderID = 2; // 该持仓对应的下单的订单号
- optional double SettlePrice = 3; //
- optional uint32 WithdrawFlag = 4; //
- optional double ExecLimitPrice = 5; //
- optional uint32 ExecStatusID = 6; //
- optional uint64 ExecOrderID = 7; //
- optional uint32 ExecType = 8; //
- optional string ExecOrderTime = 9; //
- optional uint64 RecvID = 10; // 通信接收的id
- optional uint64 CustomBizID = 11; // 为前端预留,前端可以用来存储一些标志。比如前端系统的内部订单号
- optional string CustomBizSubID = 12; //
- optional uint32 ManualFlag = 13; //
- optional double PL = 14; //
- }
- // 查询行权委托返回
- message QryExOptionExeciseOrderRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint32 ReqID = 4; // 请求ID,唯一,由请求端来维护
- repeated ExeciseOrderInfo ExeciseOrderDetail = 5; // 行权委托明细
- }
- // 持仓信息
- message HolderInfo {
- optional uint32 UserID = 1; // 唯一识别用户
- optional uint32 MdOptionID = 2; // 行情代码ID
- optional double OrderPrice = 3; // 委托价
- optional uint32 Qty = 4; // 委托数量
- optional uint32 QtyExecise = 5; // 行权数量
- optional uint64 CustomBizID = 6; // 前端预留字段
- optional string CustomSubBizID = 7; // 前端预留字段
- optional uint32 ReqID = 8; // 请求ID
- optional double Strike = 9; // 标的价格
- optional uint32 OptionID = 10; //
- optional uint64 OrderID = 11; //
- optional uint32 Buy = 12; //
- optional double FilledPrice = 13; // 成交价格
- optional string OrderTime = 14; // 委托时间
- optional string OrderDate = 15; // 委托日期
- optional string ExpDate = 16; //
- optional string ExpTime = 17; //
- optional double PL = 18; //
- optional uint32 UserOdds = 19; //
- optional double TurnOver = 20; //
- optional string InstrumentCode = 21; //
- }
- // 查询持仓请求
- message QryExOptionHolderReq {
- optional MessageHead Header = 1;
- optional uint32 ReqID = 2; // 请求ID,唯一,由请求端来维护
- optional uint32 Size = 3; // 返回长度
- optional uint32 UserID = 4; // 唯一识别用户
- optional uint64 OrderID = 5; // 委托单ID
- }
- // 查询持仓返回
- message QryExOptionHolderRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint32 ReqID = 4; // 请求ID,唯一,由请求端来维护
- optional uint32 UserID = 5; // 唯一识别用户
- repeated HolderInfo HolderDetail = 6; // 持仓明细
- }
- // 查询行权结果请求
- message QryExOptionExeciseReq {
- optional MessageHead Header = 1;
- optional uint32 ReqID = 2; // 请求ID,唯一,由请求端来维护
- optional uint32 UserID = 3; // 用户ID
- optional string ExeciseDataOne = 4; // 行权日期
- optional string ExeciseDataTwo = 5; // 行权日期
- }
- // 行权结果
- message ExeciseInfo {
- optional uint32 ReqID = 1; // 请求ID
- optional uint32 UserID = 2; // 唯一识别用户
- optional string ExeciseTime = 3; // 行权时间
- optional string ExeciseDate = 4; // 行权日期
- optional uint64 ExeciseOrderID = 5; //
- optional uint64 OrderID = 6; //
- optional uint32 QtyExecise = 7; // 行权数量
- optional double SettlePrice = 8; // 结算价格
- optional double PL = 9; //
- optional uint32 ExeciseStatus = 10; //
- optional uint64 CustomBizID = 11; // 前端预留字段
- optional string CustomSubBizID = 12; // 前端预留字段
- optional uint32 ManualFlag = 13; //
- }
- // 查询行权结果请求
- message QryExOptionExeciseRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint32 ReqID = 4; // 请求ID,唯一,由请求端来维护
- optional uint32 UserID = 5; // 用户ID
- repeated ExeciseInfo ExeciseDetail = 6; // 行权明细
- }
- // 查询委托扩展请求
- message QryExOptionOrderExReq {
- optional MessageHead Header = 1;
- optional uint32 ReqID = 2; // 请求ID,唯一,由请求端来维护
- optional uint64 CustomBizID = 3; // 自定义委托单ID
- }
- // 查询委托扩展返回
- message QryExOptionOrderExRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint32 ReqID = 4; // 请求ID,唯一,由请求端来维护
- optional uint64 CustomBizID = 5; // 自定义委托单ID
- repeated OrderInfo OrderDetail = 6; // 委托明细
- }
- // 查询行权委托扩展请求
- message QryExOptionExeciseOrderExReq {
- optional MessageHead Header = 1;
- optional uint32 ReqID = 2; // 请求ID,唯一,由请求端来维护
- optional uint64 CustomBizID = 3; // 自定义行权委托单ID
- }
- // 查询行权委托扩展返回
- message QryExOptionExeciseOrderExRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint32 ReqID = 4; // 请求ID,唯一,由请求端来维护
- optional uint64 CustomBizID = 5; // 自定义行权委托单ID
- repeated ExeciseOrderInfo ExeciseOrderDetail = 6; // 行权委托明细
- }
- // 单向建仓请求
- message OptionOneWayOpenReq {
- optional MessageHead Header = 1;
- optional uint64 AccountID = 2; // 资金账户
- optional uint64 TargetGoodsID = 3; // 标的物商品ID
- optional uint32 BuyOrSell = 4; // 方向:买0,卖1
- optional uint32 OptionType = 5; // 期权类型1:认购(看涨)2:认沽(看跌)
- optional uint32 ExerciseType = 6; // 行权类型1:欧式期权2:美式期权型[场外期(单向)]
- optional uint32 ExpireType = 7; // 行权日类型-1:滚动行权
- optional uint32 ExpireCycle = 8; // 行权周期(天)1:滚动行权时填写型[场外期(单向)]
- optional string ExpireDate = 9; // 行权日
- optional double ExercisePrice = 10; // 行权价
- optional double Premium = 11; // 权利金
- optional uint32 Qty = 12; // 数量
- optional uint32 MarketID = 13; // 市场ID
- }
- // 单向建仓应答
- message OptionOneWayOpenRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 TradeID = 4; // 成交单号
- optional uint64 AccountID = 5; // 资金账户
- optional uint64 TargetGoodsID = 6; // 标的物商品ID
- }
- // 场外期权单向行权请求
- message OptionOneWayExeciseReq {
- optional MessageHead Header = 1;
- optional uint64 AccountID = 2; // 资金账户
- optional uint64 TradeID = 3; // 持仓单成交单号
- optional uint32 BuyOrSell = 4; // 方向:买0,卖1
- optional double ExercisePrice = 5; // 行权价
- optional uint32 MarketID = 6; // 市场ID
- optional uint32 ExeciseQty = 7; // 数量,不支持部分数量行权。
- }
- // 场外期权单向行权应答
- message OptionOneWayExeciseRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 TradeID = 4; // 成交单号
- optional uint64 AccountID = 5; // 资金账户
- optional uint64 TargetGoodsID = 6; // 标的物商品ID
- }
- // 场外期权单向对冲请求
- message OptionOneWayHedgeReq {
- optional MessageHead Header = 1;
- optional uint64 AccountID = 2; // 资金账户
- optional uint64 TradeID = 3; // 持仓单成交单号
- optional uint64 HedgeTradeID = 4; // 外部成交单号
- optional uint64 TargetGoodsID = 5; // 标的物商品ID
- optional uint32 BuyOrSell = 6; // 期权成交单方向:买0,卖1
- optional uint32 HedgeBuyOrSell = 7; // 外部对冲成交单方向
- optional uint32 MarketID = 8; // 市场ID
- optional uint32 HedgeQty = 9; // 对冲数量
- }
- // 场外期权单向对冲应答
- message OptionOneWayHedgeRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 AccountID = 4; // 资金账户
- optional uint64 TradeID = 5; // 持仓单成交单号
- }
- // 仓单录入服务公共协议结构
- message WRInputCommon {
- optional uint32 UserID = 1; // 用户ID
- optional uint64 RelatedOrderID = 2; // 关联ID
- optional uint32 BusinessID = 3; // 业务ID
- optional uint64 TradeID = 4; // 成交ID
- optional uint64 AccountID = 5; // 账号ID
- }
- // 合同生效请求
- message ContractForceReq {
- optional MessageHead Header = 1;
- optional WRInputCommon Common = 2; //
- optional uint64 ContractID = 3; // 关联合同ID
- }
- // 合同生效响应
- message ContractForceRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional WRInputCommon Common = 4; //
- optional uint64 ContractID = 5; // 关联合同ID
- }
- // 上架审核通过请求
- message SpotQuoteStockAuditReq {
- optional MessageHead Header = 1;
- optional uint64 QuoteApplyID = 2; // 报价申请ID
- optional uint32 MarketID = 3; // 市场ID
- optional double AnnualReturn = 4; // 年化收益率
- optional uint32 QuoteDays = 5; // 认购期限(天)
- optional uint32 ListingDays = 6; // 挂牌期限(天)
- optional uint32 FCUserID = 7; // 基金公司用户ID
- }
- // 上架审核通过应答
- message SpotQuoteStockAuditRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 DeliveryGoodsID = 4; // 交割商品ID
- }
- // 上架销售请求
- message SpotQuoteStockSaleReq {
- optional MessageHead Header = 1;
- optional uint64 QuoteApplyID = 2; // 报价申请ID
- optional uint64 DeliveryGoodsID = 3; // 交割商品ID
- optional uint32 MarketID = 4; // 市场ID
- }
- // 上架销售应答
- message SpotQuoteStockSaleRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 DeliveryGoodsID = 4; // 交割商品ID
- }
- // 修改申请请求
- message SpotQuoteUpdateApplyReq {
- optional MessageHead Header = 1;
- optional uint64 QuoteApplyID = 2; // 报价申请ID
- optional uint64 DeliveryGoodsID = 3; // 交割商品ID
- optional uint32 MarketID = 4; // 市场ID
- }
- // 修改申请应答
- message SpotQuoteUpdateApplyRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 DeliveryGoodsID = 4; // 交割商品ID
- }
- // 撤销修改申请请求
- message SpotQuoteCancelUpdateReq {
- optional MessageHead Header = 1;
- optional uint64 QuoteApplyID = 2; // 报价申请ID
- optional uint64 DeliveryGoodsID = 3; // 交割商品ID
- optional uint32 MarketID = 4; // 市场ID
- }
- // 撤销修改申请应答
- message SpotQuoteCancelUpdateRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 DeliveryGoodsID = 4; // 交割商品ID
- }
- // 修改审核通过请求
- message SpotQuoteUpdateAuditReq {
- optional MessageHead Header = 1;
- optional uint64 QuoteApplyID = 2; // 报价申请ID
- optional uint32 AuditStatus = 3; // 审核状态
- optional uint64 DeliveryGoodsID = 4; // 交割商品ID
- optional double AnnualReturn = 5; // 年化收益率
- optional uint32 MarketID = 6; // 市场ID
- optional uint32 QuoteDays = 7; // 认购期限(天)
- optional uint32 ListingDays = 8; // 挂牌期限(天)
- optional uint32 FCUserID = 9; // 基金公司用户ID
- }
- // 修改审核通过应答
- message SpotQuoteUpdateAuditRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 DeliveryGoodsID = 4; // 交割商品ID
- }
- // 购买请求
- message SpotQuotePurchaseReq {
- optional MessageHead Header = 1;
- optional uint64 DeliveryGoodsID = 2; // 交割商品ID
- optional uint64 AccountID = 3; // 资金账号ID
- optional uint32 OrderSrc = 4; // 委托来源
- optional string Clientserialno = 5; // 客户端流水号
- optional string clientordertime = 6; // 客户端时间
- optional uint32 clienttype = 7; // 客户端类型
- optional uint32 MarketID = 8; // 市场ID
- }
- // 购买应答
- message SpotQuotePurchaseRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 DeliveryGoodsID = 4; // 交割商品ID
- }
- // 下架请求
- message SpotQuoteStockOffReq {
- optional MessageHead Header = 1;
- optional uint64 DeliveryGoodsID = 2; // 交割商品ID
- optional uint32 MarketID = 3; // 市场ID
- }
- // 下架应答
- message SpotQuoteStockOffRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 DeliveryGoodsID = 4; // 交割商品ID
- }
- // 商品审核请求
- message SpotShopGoodsAuditReq {
- optional MessageHead Header = 1;
- optional uint64 GoodsApplyID = 2; // 申请ID(SEQ_WHZG2_GOODSAPPLY)
- optional uint32 ApplyType = 3; // 申请类型-1:商品上架
- optional uint32 MinDays = 4; // 限售期限(天)
- optional uint32 ProfitDays = 5; // 收益周期(天)
- optional double ProfitRate = 6; // 每周期收益率
- optional uint32 MaxTimes = 7; // 有效期(最长计息次数)
- optional uint32 BuyerUserID = 8; // 回购商
- }
- // 商品审核应答
- message SpotShopGoodsAuditRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 GoodsID = 4; // 商品ID
- }
- // 商品购买请求
- message SpotShopPurchaseReq {
- optional MessageHead Header = 1;
- optional uint64 GoodsID = 2; // 商品ID
- optional double OrderPrice = 3; // 委托价格
- optional uint32 OrderQty = 4; // 委托数量
- optional uint64 AccountID = 5; // 资金账号ID
- optional uint32 OrderSrc = 6; // 委托来源
- optional string Clientserialno = 7; // 客户端流水号
- optional string clientordertime = 8; // 客户端时间
- optional uint32 clienttype = 9; // 客户端类型
- optional uint32 MarketID = 10; // 市场ID
- }
- // 商品购买应答
- message SpotShopPurchaseRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 GoodsID = 4; // 商品ID
- optional string Clientserialno = 5; // 客户端流水号
- }
- // 商品回购请求
- message SpotShopBuyBackReq {
- optional MessageHead Header = 1;
- optional uint64 AccountID = 2; // 资金账号ID
- optional uint64 GoodsID = 3; // 商品ID
- optional string GoodsTradeDate = 4; // 商品成交交易日
- optional uint64 GoodsTradePriceInt = 5; // 商品成交价格(整型)
- optional uint32 Qty = 6; // 回购数量
- optional uint32 OrderSrc = 7; // 委托来源
- optional string Clientserialno = 8; // 客户端流水号
- optional string clientordertime = 9; // 客户端时间
- optional uint32 clienttype = 10; // 客户端类型
- optional uint32 MarketID = 11; // 市场ID
- }
- // 商品回购应答
- message SpotShopBuyBackRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 GoodsID = 4; // 商品ID
- optional string Clientserialno = 5; // 客户端流水号
- }
- // 提货申请请求
- message SpotShopTakeGoodsReq {
- optional MessageHead Header = 1;
- optional uint64 AccountID = 2; // 资金账号ID
- optional uint64 GoodsID = 3; // 商品ID
- optional string GoodsTradeDate = 4; // 商品成交交易日
- optional uint64 TradePriceInt = 5; // 成交价格(整型)
- optional double GoodsTradePrice = 6; // 商品成交价格
- optional uint32 Qty = 7; // 提货数量
- optional string ReciverName = 8; // 提货人姓名
- optional string PhoneNum = 9; // 提货人联系方式
- optional string Address = 10; // 提货人详细地址
- optional uint32 TakeMode = 11; // 提货方式-2:自提
- optional string TakeRemark = 12; // 提货备注
- optional string Clientserialno = 13; // 客户端流水号
- }
- // 提货申请应答
- message SpotShopTakeGoodsRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 GoodsID = 4; // 商品ID
- optional string Clientserialno = 5; // 客户端流水号
- }
- // 撤销提货申请请求
- message SpotShopCancelTakeGoodsReq {
- optional MessageHead Header = 1;
- optional uint64 TakeGoodsApplyID = 2; // 提货申请ID
- optional uint64 AccountID = 3; // 资金账号ID
- optional uint64 GoodsID = 4; // 商品ID
- optional string Clientserialno = 5; // 客户端流水号
- }
- // 撤销提货申请应答
- message SpotShopCancelTakeGoodsRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 TakeGoodsApplyID = 4; // 提货申请ID
- optional string Clientserialno = 5; // 客户端流水号
- }
- // 提货审核请求
- message SpotShopTakeGoodsAuditReq {
- optional MessageHead Header = 1;
- optional uint64 TakeGoodsApplyID = 2; // 提货申请ID
- optional uint64 AccountID = 3; // 资金账号ID
- optional uint64 GoodsID = 4; // 商品ID
- optional string Clientserialno = 5; // 客户端流水号
- optional uint32 AuditStatus = 6; // 审核状态(2:审核通过3:审核拒绝)
- optional uint32 Auditer = 7; // 审核人-管理员ID
- optional string CheckRemark = 8; // 审核备注
- }
- // 提货审核应答
- message SpotShopTakeGoodsAuditRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 TakeGoodsApplyID = 4; // 提货申请ID
- optional string Clientserialno = 5; // 客户端流水号
- }
- // 商品下架请求
- message SpotShopGoodsOffReq {
- optional MessageHead Header = 1;
- optional uint64 GoodsID = 2; // 商品ID
- }
- // 商品下架应答
- message SpotShopGoodsOffRsp {
- optional MessageHead Header = 1; // 消息头
- optional int32 RetCode = 2; // 返回码
- optional string RetDesc = 3; // 描述信息
- optional uint64 GoodsID = 4; // 商品ID
- }
- // 上传交割商品请求
- message UploadDeliveryGoodsReq {
- optional MessageHead Header = 1;
- optional uint64 ID = 2; // 申请ID
- optional uint64 DeliveryGoodsID = 3; // 交割商品ID
- optional string DeliveryGoodsName = 4; // 交割商品名称
- optional string GoodsUnit = 5; // 交割商品单位
- optional uint32 ChangeType = 6; // 变更类型
- optional string ExtendInfo = 7; // 扩展字段
- }
- // 上传用户信息请求
- message UploadUserInfoReq {
- optional MessageHead Header = 1;
- optional uint64 ID = 2; // 申请ID
- optional uint64 UserID = 3; // 用户ID
- optional string UserInfoType = 4; // 用户信息类型
- optional string CustomerName = 5; // 客户名称
- optional string UserStatus = 6; // 用户状态
- optional string UserType = 7; // 账户类型
- optional string OpenMode = 8; // 开户方式
- optional string CardType = 9; // 证件类型
- optional string CardNum = 10; // 证件号码
- optional string LegalPersonName = 11; // 法人姓名
- optional string ContactName = 12; // 联系人
- optional string Sex = 13; // 性别
- optional string Telphone = 14; // 联系电话
- optional string Mobile = 15; // 手机号码
- optional string Company = 16; // 公司
- optional string Address = 17; // 地址
- optional string PostalCode = 18; // 邮政编码
- optional uint32 ChangeType = 19; // 变更类型
- optional string ExtendInfo = 20; // 扩展字段
- }
- // 上传现货成交通知请求
- message UploadSpotGoodsNoticeReq {
- optional MessageHead Header = 1;
- optional uint64 WRTradeDetailID = 2; // 成交单ID
- optional string TradeDate = 3; // 交易日
- optional uint64 MarketID = 4; // 市场ID
- optional uint64 DeliveryGoodsID = 5; // 交割商品ID
- optional string WRFactorType = 6; // 仓单要素类型
- optional uint64 SellAccountID = 7; // 卖方资金账号
- optional uint64 BuyAccountID = 8; // 买方资金账号
- optional string TradeTime = 9; // 成交时间
- optional uint64 TradePrice = 10; // 成交价格
- optional uint64 TradeQty = 11; // 成交数量
- optional uint64 TradeAmount = 12; // 成交金额
- optional uint64 SellUserID = 13; // 卖方用户ID
- optional uint64 BuyUserID = 14; // 买方用户ID
- optional string ExtendInfo = 15; // 扩展字段
- }
|