mtp.proto 366 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237
  1. // 消息头
  2. message MessageHead {
  3. optional uint32 FunCode = 1; // 功能号
  4. optional uint32 RequestID = 2; // 客户端的流水ID
  5. optional uint64 AccountID = 3; // 账号ID
  6. optional uint32 AccessID = 4; //二级分配给客户端的接入ID
  7. optional int64 ClientTime = 5; //消息发起时间
  8. optional uint32 GoodsID = 6; //商品ID
  9. optional string UUID = 7; // 消息唯一ID
  10. optional uint32 MarketID = 8; // 所属市场ID
  11. optional uint32 UserID = 9; // 用户ID
  12. optional string ResponseTopic = 10; // 应答消息所属主题
  13. optional uint64 AccountID2 = 11; // 账号ID-币币交易使用
  14. }
  15. // 查询请求分页信息
  16. message QueryReqPageInfo {
  17. optional int32 PageNumber = 1; // 查询第几页,1为第一页
  18. optional int32 RecordPerPage = 2; // 每页多少条记录(服务端应该有个最大允许数量,该字段值不允许超过服务端的)
  19. optional int32 QueryMark = 3; // 客户自定义查询标记
  20. optional string SortField = 4; // 按哪个字段排序
  21. optional int32 SortOrder = 5; // 排序方式,0降序 1升序页
  22. optional int32 NeedTotalCount = 6; // 是否需要返回TotalCount值
  23. }
  24. // 查询结果分页信息
  25. message QueryRspPageInfo {
  26. optional int32 PageNumber = 1; // 查询第几页,1为第一页
  27. optional int32 RecordPerPage = 2; // 每页多少条记录(服务端应该有个最大允许数量,该字段值不允许超过服务端的)
  28. optional int32 QueryMark = 3; // 客户自定义查询标记
  29. optional string SortField = 4; // 按哪个字段排序
  30. optional int32 SortOrder = 5; // 排序方式,0降序 1升序页
  31. optional int32 RecordCount = 6; // 服务端返回,本次查询结果返回了多少条记录
  32. optional int32 TotalCount = 7; // 服务端返回,满足查询条件的共多少条记录
  33. }
  34. message CommonPackage {
  35. required MessageHead Header = 1; // 消息头
  36. }
  37. // 公共通知消息头
  38. message NotifyHead {
  39. optional int32 NtfMode = 1; // 消息通知模式(单播、组播、广播)
  40. repeated uint32 ExcludeAcctIDs = 2; // 排除账号集合(首先过滤此集合帐号)
  41. repeated uint32 ExchIDs = 3; // 目标交易所集合(若匹配所属交易所,推送)
  42. repeated uint32 MemberIDs = 4; // 目标会员集合(若匹配所属会员,推送)
  43. repeated uint64 AccountIDs = 5; // 目标账号集合(以上均不匹配时,最后检查此集合)
  44. }
  45. // 公共通知消息
  46. message CommonNtf {
  47. optional MessageHead Header = 1; // 消息头
  48. optional NotifyHead NtfHeader = 2; // NotifyHead 公共通知消息(生成后包含MessageHead,引用上面消息即可)
  49. }
  50. // 用户登录请求
  51. message LoginReq {
  52. optional MessageHead Header = 1;
  53. optional uint64 LoginID = 2; // 登录ID
  54. optional string LoginPWD = 3; // 登录密码
  55. optional uint32 LoginType = 4; // 登陆类型
  56. optional uint32 ClientType = 5; // 终端软件类型
  57. optional string Version = 6; // 终端软件版本号
  58. optional string MobilePhone = 7; // 移动电话
  59. optional string GUID = 8; // 唯一标识码
  60. optional string LoginIp = 9; // 登录IP地址
  61. optional uint32 LoginPort = 10; // 登陆通信端口
  62. optional string DeviceID = 11; // 设备标识
  63. optional string EnvironmentInfo = 12; // 软件环境信息
  64. optional string LoginCode = 13; // 登陆码
  65. optional bytes ClientSystemInfo = 14; // 终端系统信息
  66. optional string ClientAppID = 15; // 终端AppID
  67. }
  68. // 用户登录应答
  69. message LoginRsp {
  70. optional MessageHead Header = 1; // 消息头
  71. optional int32 RetCode = 2; // 返回码
  72. optional string RetDesc = 3; // 描述信息
  73. optional uint64 LoginID = 4; // 登录ID
  74. optional uint32 LoginUserType = 5; // 登陆用户类型
  75. optional uint32 AccountStatus = 6; // 用户状态
  76. optional uint32 UserID = 7; // 用户ID
  77. optional uint32 MemberUserID = 8; // 用户所属会员用户ID
  78. repeated uint64 AccountIDs = 9; // 账户ID列表(有权限的)
  79. optional string Token = 10; // 用户令牌
  80. optional uint64 SystemTime = 11; // 系统时间
  81. optional uint32 HasUpdatedPwd = 12; // 是否已更改密码
  82. optional uint32 PwdWrongCnt = 13; // 当前密码输入错误次数
  83. optional uint32 PwdWrongLockCnt = 14; // 登陆账号锁定密码输入错误次数
  84. optional uint32 LoginLockHourNum = 15; // 登陆账号锁定时长(小时)
  85. optional string LoginCode = 16; // 登陆码
  86. optional bytes ClientSystemInfo = 17; // 终端系统信息
  87. optional uint64 ClientID = 18; // 终端ID(登陆服务分配,用于通道交易关联链路)
  88. }
  89. // 用户登出请求
  90. message LogoutReq {
  91. optional MessageHead Header = 1;
  92. optional uint64 LoginID = 2; // 登录ID
  93. optional string Token = 3; // 登录时返回的用户令牌
  94. optional string LoginIp = 4; // 登出IP地址
  95. optional uint32 LoginPort = 5; // 登出通信端口
  96. }
  97. // 用户登出应答
  98. message LogoutRsp {
  99. optional MessageHead Header = 1; // 消息头
  100. optional int32 RetCode = 2; // 返回码
  101. optional string RetDesc = 3; // 描述信息
  102. }
  103. // 用户令牌校验请求
  104. message TokenCheckReq {
  105. optional MessageHead Header = 1;
  106. optional uint64 LoginID = 2; // 登陆账户ID
  107. optional string Token = 3; // 用户令牌
  108. optional uint64 SystemTime = 4; // 校验时的系统时间
  109. optional uint32 CheckType = 5; // 校验类型
  110. }
  111. // 用户令牌校验应答
  112. message TokenCheckRsp {
  113. optional MessageHead Header = 1; // 消息头
  114. optional int32 RetCode = 2; // 返回码
  115. optional string RetDesc = 3; // 描述信息
  116. optional uint64 LoginID = 4; // 登陆账户ID
  117. optional uint32 TokenStatus = 5; // 令牌状态
  118. optional uint32 LoginUserType = 6; // 登陆用户类型
  119. optional uint32 UserID = 7; // 用户ID
  120. optional uint32 MemberUserID = 8; // 用户所属会员用户ID
  121. repeated uint64 AccountIDs = 9; // 账户ID列表(有权限的)
  122. optional uint64 SystemTime = 10; // 返回服务器最新时间
  123. }
  124. // 修改账户密码请求
  125. message ModifyPwdReq {
  126. optional MessageHead Header = 1;
  127. optional uint32 ModifyPwdType = 2; // 修改密码类型1:登陆密码2:资金账户密码
  128. optional uint64 ModifyPwdID = 3; // 被修改的ID(ModifyType=1:LoginIDModifyType=2:AccountID)
  129. optional string OldPwd = 4; // 旧资金密码
  130. optional string NewPwd = 5; // 新资金密码
  131. }
  132. // 修改账户密码应答
  133. message ModifyPwdRsp {
  134. optional MessageHead Header = 1; // 消息头
  135. optional int32 RetCode = 2; // 返回码
  136. optional string RetDesc = 3; // 描述信息
  137. }
  138. // 登陆账户状态操作请求
  139. message LoginStatusOperReq {
  140. optional MessageHead Header = 1;
  141. optional uint64 LoginID = 2; // 登录ID
  142. optional uint32 LoginStatus = 3; // 操作状态1.正常2.冻结
  143. optional uint32 OperatorID = 4; // 操作人ID
  144. }
  145. // 登陆账户状态操作请求
  146. message LoginStatusOperRsp {
  147. optional MessageHead Header = 1; // 消息头
  148. optional int32 RetCode = 2; // 返回码
  149. optional string RetDesc = 3; // 描述信息
  150. optional uint64 LoginID = 4; // 登录ID
  151. optional uint32 LoginStatus = 5; // 操作状态1.正常2.冻结
  152. optional uint32 OperatorID = 6; // 操作人ID
  153. }
  154. // 三方登陆请求
  155. message AuthLoginReq {
  156. optional MessageHead Header = 1;
  157. optional string AuthID = 2; // 三方认证ID
  158. optional uint32 AuthType = 3; // 三方认证类型
  159. optional uint32 ClientType = 4; // 终端软件类型
  160. optional string Version = 5; // 终端软件版本号
  161. optional string GUID = 6; // 唯一标识码
  162. optional string LoginIp = 7; // 登录IP地址
  163. optional uint32 LoginPort = 8; // 登陆通信端口
  164. optional string DeviceID = 9; // 设备标识
  165. optional string EnvironmentInfo = 10; // 软件环境信息
  166. }
  167. // 三方登录应答
  168. message AuthLoginRsp {
  169. optional MessageHead Header = 1; // 消息头
  170. optional int32 RetCode = 2; // 返回码
  171. optional string RetDesc = 3; // 描述信息
  172. optional string AuthID = 4; // 三方认证ID
  173. optional uint64 LoginID = 5; // 登录ID
  174. optional uint32 LoginUserType = 6; // 登陆用户类型
  175. optional uint32 AccountStatus = 7; // 用户状态
  176. optional uint32 UserID = 8; // 用户ID
  177. optional uint32 MemberUserID = 9; // 用户所属会员用户ID
  178. repeated uint64 AccountIDs = 10; // 账户ID列表(有权限的)
  179. optional string Token = 11; // 用户令牌
  180. optional uint64 SystemTime = 12; // 系统时间
  181. optional uint32 HasUpdatedPwd = 13; // 是否已更改密码
  182. }
  183. // 管理端踢人请求
  184. message ManageKickoffReq {
  185. optional MessageHead Header = 1;
  186. repeated uint64 LoginIDs = 2; // 登录ID数组
  187. }
  188. // 管理端踢人应答
  189. message ManageKickoffRsp {
  190. optional MessageHead Header = 1; // 消息头
  191. optional int32 RetCode = 2; // 返回码
  192. optional string RetDesc = 3; // 描述信息
  193. }
  194. // 通用错误通知
  195. message ErrorNtf {
  196. optional MessageHead Header = 1; // 消息头
  197. optional string RetDesc = 2; // string 描述信息
  198. }
  199. // 客户离线通知
  200. message CustOfflineNtf {
  201. optional MessageHead Header = 1; // 消息头
  202. repeated uint32 SessionID = 2; // uint32 用户的sessionid(由接入服务分配的),是一数组。该接口是系统内部服务使用的接口
  203. repeated uint64 LoginID = 3; // uint64 用户登陆的loginid,是一数组。该接口是系统内部服务使用的接口
  204. }
  205. // 头寸变化通知
  206. message PosChangedNtf {
  207. optional MessageHead Header = 1; // 消息头
  208. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  209. optional uint64 AccountID = 3; // uint64 交易账号
  210. optional uint32 GoodsID = 4; // uint32 商品
  211. }
  212. // 资金变化通知
  213. message MoneyChangedNtf {
  214. optional MessageHead Header = 1; // 消息头
  215. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  216. optional uint64 AccountID = 3; // uint64 交易账号
  217. }
  218. // 持仓变化通知
  219. message HoldsChangedNtf {
  220. optional MessageHead Header = 1; // 消息头
  221. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  222. optional uint64 OrderID = 3; // uint64 一级生成的订单号
  223. optional string ClientSerialNo = 4; // string 客户端流水号
  224. optional uint64 AccountID = 5; // uint64 交易账号
  225. optional uint32 GoodsID = 6; // uint32 商品
  226. optional uint32 BuyOrSell = 7; // uint32 买卖方向
  227. optional uint64 Qty = 8; // uint64 持仓数量
  228. optional double TradePrice = 9; // double 成交金额
  229. optional double HolderPrice = 10; // double 持仓金额
  230. }
  231. // 公告消息推送
  232. message BltMsgNtf {
  233. optional MessageHead Header = 1; // 消息头
  234. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  235. optional int32 MsgID = 3; // int32 消息号
  236. optional uint32 MsgType = 4; // uint32 消息类别
  237. optional string PublishDate = 5; // string 消息发布时间
  238. optional string Pubber = 6; // string 发布者
  239. optional int32 TopFlag = 7; // int32 置顶标志
  240. optional string ValidDateEnd = 8; // string 消息结束日期
  241. optional string Title = 9; // string 标题
  242. optional string Content = 10; // string 内容
  243. }
  244. // 平仓单平仓明细
  245. message ArrayCloseInfo {
  246. optional uint64 ClosedOrderID = 1; // 被平持仓单ID
  247. optional uint64 ClosedQty = 2; // 被平仓数量
  248. optional double ClosePL = 3; // 平仓盈亏
  249. optional double RlsUsedMargin = 4; // 释放的占用保证金
  250. optional double TradeCharge = 5; // 平仓手续费
  251. optional double WareHouseCharge = 6; // 仓单服务费
  252. optional double TradeAmount = 7; // 成交金额
  253. optional string OpenTime = 8; // 开仓时间(对冲接口用)
  254. optional double OpenPrice = 9; // 开仓价格(对冲接口用)
  255. optional uint64 MatchAccountID = 10; // 对手方资金账号代码
  256. optional double RealClosePL = 11; // 实际盈亏
  257. }
  258. // 报单通知
  259. message DeclareOrderNtf {
  260. optional MessageHead Header = 1; // 消息头
  261. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  262. optional uint64 OrderID = 3; // uint64 一级生成的订单号
  263. optional string ClientSerialNo = 4; // string 客户端流水号
  264. optional uint32 GoodsID = 5; // uint32 原始委托商品代码
  265. optional uint32 BuyOrSell = 6; // uint32 买卖方向
  266. optional uint64 OrderQty = 7; // uint64 委托数量
  267. optional uint64 TradeQty = 8; // uint64 成交数量
  268. optional uint64 CancelQty = 9; // uint64 撤单数量
  269. optional uint32 OrderStatus = 10; // uint32 单据状态
  270. optional string ActiveTime = 11; // string 激活时间
  271. optional string CancelTime = 12; // string 撤销时间
  272. optional string UpdateTime = 13; // string 最后修改时间
  273. }
  274. // 委托单成交通知
  275. message OrderDealedNtf {
  276. optional MessageHead Header = 1; // 消息头
  277. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  278. optional uint64 OrderID = 3; // uint64 一级生成的订单号
  279. optional string ClientSerialNo = 4; // string 客户端流水号
  280. optional uint32 GoodsID = 5; // uint32 原始委托商品代码
  281. optional uint64 TradeQty = 6; // uint64 成交数量
  282. optional double Amount = 7; // double 成交金额
  283. optional uint64 ActiveQty = 8; // uint64 激活数量,即剩余数量
  284. optional uint32 OrderStatus = 9; // uint32 单据状态
  285. optional uint64 TradeID = 10; // uint64 成交ID
  286. optional uint64 AccountID = 11; // uint64 资金账号代码
  287. optional double TradePrice = 12; // double 成交价格
  288. optional uint32 BuyOrSell = 13; // uint32 买卖方向
  289. optional uint64 OrderQty = 14; // uint64 委托数量
  290. optional uint32 OrderType = 15; // uint32 订单类型
  291. optional string TradeTime = 16; // string 成交时间
  292. repeated ArrayCloseInfo CloseInfos = 17; // ArrayCloseInfo 平仓信息
  293. optional uint32 SpecialAccount = 18; // uint32 特别会员账号
  294. optional double TradeCharge = 19; // double 成交手续费
  295. optional double WareHouseCharge = 20; // double 仓单服务费
  296. optional double UsedMargin = 21; // double 占用保证金
  297. optional uint32 OperatorID = 22; // uint32 操作员账号ID
  298. optional uint32 MemberID = 23; // uint32 会员账号,会员系统平仓使用
  299. optional uint64 MatchAccountID = 24; // uint64 对手方资金账号代码
  300. optional uint32 BuildType = 25; // uint32 下单类型
  301. optional uint32 CloseType = 26; // uint32 平仓类型
  302. }
  303. // 委托单失效通知
  304. message OrderFailedNtf {
  305. optional MessageHead Header = 1; // 消息头
  306. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  307. optional uint64 OrderID = 3; // uint64 一级生成的订单号
  308. optional string ClientSerialNo = 4; // string 客户端流水号
  309. optional uint32 GoodsID = 5; // uint32 原始委托商品代码
  310. optional int32 Reason = 6; // int32 失效代码
  311. }
  312. // 委托单被平通知
  313. message OrderClosedNtf {
  314. optional MessageHead Header = 1; // 消息头
  315. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  316. optional uint64 OrderID = 3; // uint64 一级生成的订单号
  317. optional string ClientSerialNo = 4; // string 客户端流水号
  318. optional uint32 GoodsID = 5; // uint32 原始委托商品代码
  319. optional uint64 TradeQty = 6; // uint64 被平数量
  320. optional double Amount = 7; // double 成交金额
  321. optional uint64 ActiveQty = 8; // uint64 激活数量,即剩余数量
  322. optional uint32 OrderStatus = 9; // uint32 单据状态
  323. }
  324. // 委托单撤单通知
  325. message OrderCanceledNtf {
  326. optional MessageHead Header = 1; // 消息头
  327. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  328. optional uint64 OrderID = 3; // uint64 一级生成的订单号
  329. optional string ClientSerialNo = 4; // string 客户端流水号
  330. optional uint32 GoodsID = 5; // uint32 商品
  331. optional uint64 CancelQty = 6; // uint64 撤销数量
  332. optional uint32 OrderStatus = 7; // uint32 单据状态
  333. }
  334. // 操作变更通知
  335. message OperateChangeNtf {
  336. optional MessageHead Header = 1; // 消息头
  337. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  338. optional string IP = 3; // string IP
  339. optional uint32 OperatorId = 4; // uint32 操作者
  340. optional string OperateType = 5; // string 操作类型(管理端功能菜单)
  341. optional string OperateTime = 6; // string 操作时间
  342. optional int32 ChangeType = 7; // int32 变更类型(增、删、改等)
  343. optional int32 ObjectType = 8; // int32 变更对象(1、帐号变更;2、商品变更等)
  344. optional string ObjectId = 9; // string 目标Id(帐号Id,商品Id…)
  345. optional string ObjectCode = 10; // string 目标Code(帐号code,商品code…)
  346. optional string Content = 11; // string 变更内容描述
  347. }
  348. // 风控通知
  349. message RiskControlNtf {
  350. optional MessageHead Header = 1; // 消息头
  351. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  352. optional uint64 AccountId = 3; // uint64 账号id
  353. optional int32 AccountStatus = 4; // int32 账户状态
  354. optional int32 AccountType = 5; // int32 账户类型
  355. optional string AccountCode = 6; // string 账户名称
  356. optional string AccountName = 7; // string 账户名称
  357. optional int32 RiskLevel = 8; // int32 当前风险级别:1:提示,
  358. optional string MsgContent = 9; // string 风控消息内容
  359. optional string Idate = 10; // datetime 时间
  360. optional double RiskRate = 11; // double 风险率
  361. optional double CurrentNetBalance = 12; // double 净值
  362. optional int32 RiskType = 13; // int32 风控类型:0:默认风险率监控,1:安全度风控
  363. }
  364. // 强制平仓状态通知
  365. message ForceCloseStatusNtf {
  366. optional MessageHead Header = 1; // 消息头
  367. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  368. optional uint64 OrderID = 3; // uint64 交易所订单号
  369. optional string ClientSerialNo = 4; // string 强制平仓流水号
  370. optional uint32 GoodsID = 5; // uint32 平仓商品代码
  371. optional uint32 BuyOrSell = 6; // uint32 买卖方向
  372. optional uint32 OrderStatus = 7; // uint32 单据状态
  373. }
  374. // 强制平仓成交通知
  375. message ForceCloseDealedNtf {
  376. optional MessageHead Header = 1; // 消息头
  377. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  378. optional uint64 OrderID = 3; // uint64 交易所订单号
  379. optional string ClientSerialNo = 4; // string 强制平仓流水号
  380. optional uint32 GoodsID = 5; // uint32 平仓商品代码
  381. optional uint64 TradeQty = 6; // uint64 成交数量
  382. optional double Amount = 7; // double 成交金额
  383. optional uint64 TradeID = 8; // uint64 成交ID
  384. optional double TradePrice = 9; // double 成交价格
  385. optional uint32 BuyOrSell = 10; // uint32 买卖方向
  386. optional string TradeTime = 11; // string 成交时间
  387. optional double TradeCharge = 12; // double 成交手续费
  388. }
  389. // 市场状态变更通知
  390. message MarketStatusChangeNtf {
  391. optional MessageHead Header = 1; // 消息头
  392. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  393. optional uint32 MarketID = 3; // uint32 市场ID
  394. optional uint32 Status = 4; // uint32 状态
  395. optional uint32 StepType = 5; // uint32 阶段
  396. optional string TradeDay = 6; // string 交易日
  397. optional string NotifyTime = 7; // string 通知发送时间
  398. }
  399. // 商品状态变更通知
  400. message GoodsStatusChangeNtf {
  401. optional MessageHead Header = 1; // 消息头
  402. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  403. optional uint32 MarketID = 3; // uint32 市场ID
  404. optional uint32 GoodsID = 4; // uint32 商品ID
  405. optional uint32 Status = 5; // uint32 状态
  406. optional string TradeDay = 6; // string 交易日
  407. }
  408. // 账户变更通知
  409. message AccountChangeNtf {
  410. optional MessageHead Header = 1; // 消息头
  411. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  412. optional uint64 LoginID = 3; // uint64 登陆账户ID
  413. optional int32 ChangeType = 4; // int32 变更类型(增、删、改等)
  414. }
  415. // 开休市计划通知
  416. message MarketPlanChangeNtf {
  417. optional MessageHead Header = 1; // 消息头
  418. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  419. repeated MarketPlanChange MarketPlanChange = 3; // MarketPlanChange 市场开休市消息
  420. }
  421. // 开休市计划消息
  422. message MarketPlanChange {
  423. required uint32 SignalType = 1; // 控制信号类型:1开市2休市,3市场阶段开始,4市场阶段结束
  424. optional string ControlTime = 2; // 操作时间如:2016-03-2409:00:00
  425. optional uint32 MarketTypeId = 3; // 控制信号为1、2、3、4、5休市时:市场类型ID,为6时传空
  426. repeated uint32 GoodsId = 4; // 商品id
  427. optional uint32 RunStatus = 5; // 运行状态-0:处于休市、1:处于开市、2:处于临时休市、3:处于结算
  428. optional uint32 RunStep = 6; // 所处阶段-0:空白阶段、1:集合竞价阶段、2:连续竞价阶段、3:做市开盘阶段、4:发售开盘阶段
  429. optional string NextTradeDate = 7; // 下一个交易日日期,当控制信号为5时填入,例如:2016-06-08
  430. optional string TradeDate = 8; // 当前交易日日期,例如:2016-06-08
  431. optional string OpenMarketDate = 9; // 开市时间,当控制信号为5时填入,例如:2016-06-0809:00:00
  432. optional string LastTradeDateOfWeek = 10; // 本周最后一个交易日日期,结算时填入,格式:yyyy-MM-dd
  433. optional uint32 TradeMode = 11; // 交易模式
  434. }
  435. // 商品变更通知
  436. message GoodsChangeNtf {
  437. optional MessageHead Header = 1; // 消息头
  438. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  439. optional uint32 GoodsID = 3; // uint32 商品ID
  440. optional int32 ChangeType = 4; // int32 变更类型(增、删、改等)
  441. }
  442. // 手动修改市场状态请求
  443. message ManualChangeMarketReq {
  444. optional MessageHead Header = 1;
  445. optional int32 MarketID = 2; // 市场ID
  446. optional int32 Operate = 3; // 操作(开市、手动休市等)
  447. }
  448. // 手动修改市场状态响应
  449. message ManualChangeMarketRsp {
  450. optional MessageHead Header = 1; // 消息头
  451. optional int32 RetCode = 2; // 返回码
  452. optional string RetDesc = 3; // 描述信息
  453. optional int32 MarketID = 4; // 市场ID
  454. optional int32 Status = 5; // 操作状态1成功0失败
  455. optional int32 ErrorCode = 6; // 错误码
  456. }
  457. // 结算结果通知
  458. message ReckonResultNtf {
  459. optional MessageHead Header = 1; // 消息头
  460. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  461. optional int32 MarketID = 3; // int32 市场ID(0-为系统)
  462. optional int32 Status = 4; // int32 状态
  463. optional string TradeDay = 5; // string 交易日
  464. }
  465. // 市场状态手工变化通知
  466. message MarketStatusManualChangeNtf {
  467. optional MessageHead Header = 1; // 消息头
  468. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  469. optional int32 MarketID = 3; // int32 市场ID(0-为系统)
  470. optional int32 Status = 4; // int32 状态
  471. optional int32 StepType = 5; // int32 阶段
  472. optional string TradeDay = 6; // string 交易日
  473. }
  474. // 商品状态手工变更通知
  475. message GoodsStatusManualChangeNtf {
  476. optional MessageHead Header = 1; // 消息头
  477. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  478. optional int32 MarketID = 3; // int32 市场ID
  479. optional int32 GoodsID = 4; // int32 商品ID
  480. optional int32 Status = 5; // int32 状态
  481. optional string TradeDay = 6; // string 交易日
  482. }
  483. // 商品停牌计划变更通知
  484. message GoodsClosePlanChangeNtf {
  485. optional MessageHead Header = 1; // 消息头
  486. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  487. optional uint32 MarketID = 3; // uint32 市场ID
  488. optional uint32 GoodsID = 4; // uint32 商品ID
  489. optional string CloseDate = 5; // string 停牌日期
  490. optional string StartTime = 6; // string 开始时间
  491. optional string EndTime = 7; // string 结束时间
  492. }
  493. // 用户账号数据变更
  494. message AccountDataChange {
  495. optional uint64 AccountId = 1; // 账号ID
  496. optional int32 ChangeType = 2; // 变更类型(增、删、改等)
  497. }
  498. // 用户变更通知
  499. message UserChangeNtf {
  500. optional MessageHead Header = 1; // 消息头
  501. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  502. optional uint64 UserId = 3; // uint64 用户ID
  503. optional int32 ChangeType = 4; // int32 变更类型(增、删、改等)
  504. repeated AccountDataChange AccountChange = 5; // AccountDataChange 账户变更
  505. }
  506. // 登录账户数据变更
  507. message LoginAccChange {
  508. optional uint64 LoginId = 1; // 账号ID
  509. optional int32 ChangeType = 2; // 变更类型(增、删、改,资金权限等)
  510. }
  511. // 登录账户变更通知
  512. message LoginAccChangeNtf {
  513. optional MessageHead Header = 1; // 消息头
  514. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  515. repeated LoginAccChange LoginAccChange = 3; // LoginAccChange 变更登录账户数组
  516. }
  517. // 供应链金融业务状态通知
  518. message SCFBusinessStatusNtf {
  519. optional MessageHead Header = 1; // 消息头
  520. optional NotifyHead NtfHeader = 2; // NotifyHead 公共通知消息
  521. optional uint64 ExtBusinessID = 3; // uint64 外部业务流水号
  522. optional uint64 SCFContractID = 4; // uint64 SCF合同ID
  523. optional int32 SCFContractType = 5; // int32 合同类型
  524. optional int32 BusinessType = 6; // int32 业务类型
  525. optional int32 Status = 7; // int32 状态
  526. optional string RetMsg = 8; // string 返回描述
  527. optional int32 ReturnCode = 9; // int32 返回错误码
  528. }
  529. // 仓单贸易成交通知
  530. message WRTradeDealedNtf {
  531. optional MessageHead Header = 1; // 消息头
  532. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  533. optional uint64 ListingOrderID = 3; // uint64 挂牌委托单号
  534. optional uint64 DelistingOrderID = 4; // uint64 摘牌委托单号
  535. optional uint64 TradeQty = 5; // uint64 挂牌成交数量
  536. optional uint64 ActiveQty = 6; // uint64 挂牌剩余数量
  537. optional uint64 RealTradeQty = 7; // uint64 摘牌实际成交数量
  538. optional uint64 TradeID = 8; // uint64 成交单ID
  539. optional uint64 BuyAccountID = 9; // uint64 买资金账号
  540. optional uint64 SellAccountID = 10; // uint64 卖资金账号
  541. optional double TradePrice = 11; // double 成交价
  542. optional string TradeTime = 12; // string 成交时间
  543. optional uint64 WRFactorTypeID = 13; // uint64 仓单要素ID
  544. optional uint32 WRTransferUserID = 14; // uint32 仓单受让账户
  545. optional double FreezeFirstAmount = 15; // double 冻结首付金额
  546. optional double UnFreezeFirstAmount = 16; // double 解冻首付金额
  547. optional double RealTradeAmount = 17; // double 实际成交金额
  548. optional double PerformanceAmount = 18; // double 履约金额
  549. optional uint64 PerformancePlanID = 19; // uint64 履约计划ID
  550. optional int64 PerformanceTemplateID = 20; // int64 履约计划模板ID
  551. }
  552. // 履约计划步骤处理完成通知
  553. message PerformancePlanStepProcessedNtf {
  554. optional MessageHead Header = 1; // 消息头
  555. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  556. optional uint64 PerformancePlanID = 3; // uint64 履约计划ID
  557. optional uint64 PerformancePlanStepID = 4; // uint64 履约计划步骤ID
  558. optional string RetDesc = 5; // string 描述信息
  559. }
  560. // 市场状态给行情服务通知
  561. message MarketStatusToQuoteNtf {
  562. optional MessageHead Header = 1; // 消息头
  563. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  564. optional uint32 MarketID = 3; // uint32 市场ID
  565. optional string TradeDate = 4; // string 交易日
  566. optional uint32 Status = 5; // uint32 状态,默认填0
  567. optional string NotifyTime = 6; // string 通知发送时间
  568. }
  569. // 合作套保帐户风控通知
  570. message ScfAccountRiskNtf {
  571. optional MessageHead Header = 1; // 消息头
  572. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  573. optional uint64 AccountID = 3; // uint64 帐户ID
  574. optional int32 ScfRiskLv = 4; // int32 合作套保风险等级(eScfRiskLv)
  575. optional int32 ScfStatus = 5; // int32 合作套保风险状态(eScfRiskStatus)
  576. }
  577. // 商品可售数量通知
  578. message GoodsAvailableSaleNtf {
  579. optional MessageHead Header = 1; // 消息头
  580. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  581. optional uint64 UserID = 3; // uint64 用户ID
  582. optional uint64 AccountID = 4; // uint64 资金账号ID
  583. optional uint32 GoodsID = 5; // uint32 交易商品ID
  584. optional uint32 MarketID = 6; // uint32 市场ID
  585. optional int32 AvailableQty = 7; // int32 可售数量
  586. optional int32 Status = 8; // int32 操作状态1成功0失败
  587. }
  588. // 仓单头寸互转通知
  589. message WRPosTransferNtf {
  590. optional MessageHead Header = 1; // 消息头
  591. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  592. optional uint64 RelatedOrderId = 3; // uint64 关联单号
  593. optional int32 TradeQty = 4; // int32 交易数量
  594. optional int32 Direct = 5; // int32 方向:订单转仓单、仓单转订单(eWRHolderTranslateType)
  595. optional string TradeTime = 6; // string 成交时间
  596. }
  597. // 银行服务入金成功通知
  598. message BankInSuccessNtf {
  599. optional MessageHead Header = 1; // 消息头
  600. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  601. required uint64 ExchTicket = 3; // uint64 成功的银行服务流水号
  602. required uint64 AccountCode = 4; // uint64 资金账户
  603. required double Amount = 5; // double 金额
  604. required string TradeDate = 6; // string 交易日
  605. }
  606. // 银行服务出金成功通知
  607. message BankOutSuccessNtf {
  608. optional MessageHead Header = 1; // 消息头
  609. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  610. required uint64 ExchTicket = 3; // uint64 成功的银行服务流水号
  611. required uint64 AccountCode = 4; // uint64 资金账户
  612. required double Amount = 5; // double 金额
  613. required string TradeDate = 6; // string 交易日
  614. }
  615. // 系统参数修改通知
  616. message SystemParamChangeNtf {
  617. optional MessageHead Header = 1; // 消息头
  618. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  619. optional string ParamCode = 3; // string 参数代码
  620. }
  621. // 斩仓通知
  622. message RiskCutNtf {
  623. optional MessageHead Header = 1; // 消息头
  624. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  625. optional uint64 AccountId = 3; // uint64 账号id
  626. optional int32 RiskLevel = 4; // int32 当前风险级别:1:提示,
  627. optional string Idate = 5; // datetime 时间
  628. optional double CurRate = 6; // double 实时风险率
  629. optional double CutRate = 7; // double 斩仓触发风险率
  630. optional double SafeRate = 8; // double 斩仓恢复风险率
  631. }
  632. // 交易成交源信息
  633. message TradeDealedSourceInfo {
  634. optional uint64 Qty = 1; // 源成交数量
  635. optional double Price = 2; // 源成交价
  636. optional uint64 HoldTradeID = 3; // 持仓单成交ID
  637. }
  638. // 交割成交通知
  639. message DeliveryDealedNtf {
  640. optional MessageHead Header = 1; // 消息头
  641. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  642. optional uint64 AccountId = 3; // uint64 账号id
  643. optional uint64 DeliveryID = 4; // uint64 交割ID
  644. optional uint32 GoodsID = 5; // uint32 商品ID
  645. optional double AgreeUnit = 6; // double 合约单位
  646. repeated TradeDealedSourceInfo TradeDealedSource = 7; // TradeDealedSourceInfo 持仓成交源
  647. optional uint32 DeliveryGoodsID = 8; // uint32 交割商品ID
  648. }
  649. // 交易成交通知
  650. message TradeDealedNtf {
  651. optional MessageHead Header = 1; // 消息头
  652. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  653. optional uint64 AccountId = 3; // uint64 账号id
  654. optional uint64 CloseTradeID = 4; // uint64 平仓成交单号
  655. optional uint64 GoodsID = 5; // uint64 商品ID
  656. optional double AgreeUnit = 6; // double 合约单位
  657. optional uint64 Qty = 7; // uint64 成交数量
  658. optional double Price = 8; // double 源成交价
  659. }
  660. // 用户首次登陆通知
  661. message LoginFirstNtf {
  662. optional MessageHead Header = 1; // 消息头
  663. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  664. optional uint64 LoginId = 3; // uint64 登陆id
  665. repeated uint64 AccountIds = 4; // uint64 账号id
  666. }
  667. // 竞拍商品状态变更通知
  668. message AuctionGoodsStatusChangeNtf {
  669. optional MessageHead Header = 1; // 消息头
  670. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  671. optional uint32 MarketID = 3; // uint32 市场ID
  672. optional uint32 GoodsID = 4; // uint32 商品ID
  673. optional string GoodsCode = 5; // string 商品代码
  674. optional string GoodsName = 6; // string 商品名称
  675. optional uint32 Status = 7; // uint32 商品状态
  676. optional string TradeDay = 8; // string 交易日
  677. optional uint32 TradeMode = 9; // uint32 交易模式
  678. optional uint32 DecimalPlace = 10; // uint32 小数位数
  679. optional uint32 GroupID = 11; // uint32 场次ID
  680. }
  681. // 交易日重算通知
  682. message TradeDateRedoneNtf {
  683. optional MessageHead Header = 1; // 消息头
  684. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  685. optional uint32 Redone = 3; // uint32 重置标识
  686. }
  687. // 商城卖方收款成功通知
  688. message MallSellerReceiveSuccessNtf {
  689. optional MessageHead Header = 1; // 消息头
  690. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  691. optional uint64 BuyerAccountID = 3; // uint64 买方资金账号
  692. optional uint64 SellerAccountID = 4; // uint64 卖方资金账号
  693. optional double ShoppingAmount = 5; // double 购物金额
  694. optional double MaidRatio = 6; // double 分拥比率
  695. optional uint64 PayMentID = 7; // uint64 支付单号
  696. optional double ExchDivRation = 8; // double 交易所分润比率
  697. }
  698. // 履约生成合同通知通知
  699. message PerformanceBuildAgreementNtf {
  700. optional MessageHead Header = 1; // 消息头
  701. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  702. optional uint64 PerformancePlanID = 3; // uint64 履约计划ID
  703. optional int32 PerformanceType = 4; // int32 履约类型
  704. optional uint64 RelatedOrderID = 5; // uint64 关联单号
  705. optional double Amount = 6; // double 履约金额
  706. optional int32 PerformanceStatus = 7; // int32 履约状态
  707. optional uint64 BuyAccountID = 8; // uint64 买方账号
  708. optional uint64 SellAccountID = 9; // uint64 卖方账号
  709. optional double OverShortAmount = 10; // double 溢短金额
  710. }
  711. // 解除账户关联关系通知
  712. message RelievingAccRelationNtf {
  713. optional MessageHead Header = 1; // 消息头
  714. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  715. optional uint64 UserID = 3; // uint64 解除账户用户id
  716. optional uint64 AccountID = 4; // uint64 解除账户资金账户Id
  717. optional uint64 RelatedOrderID = 5; // uint64 关联单号id
  718. }
  719. // 报价量用完通知
  720. message QuoteQtyUseUpNtf {
  721. optional MessageHead Header = 1; // 消息头
  722. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  723. optional uint64 QuoteId = 3; // uint64 报价单ID
  724. }
  725. // 交割商品变更通知
  726. message DeliveryGoodsChangeNtf {
  727. optional MessageHead Header = 1; // 消息头
  728. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  729. optional uint32 DeliveryGoodsID = 3; // uint32 交割商品ID
  730. optional int32 ChangeType = 4; // int32 变更类型,变更包含要素及扩展(增、删、改等)
  731. }
  732. // 期权交易通知
  733. message OptionTradeNtf {
  734. optional MessageHead Header = 1; // 消息头
  735. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  736. optional uint64 TradeID = 3; // uint64 成交单号
  737. optional string TradeDate = 4; // string 交易日
  738. optional uint32 MarketID = 5; // uint32 市场ID
  739. optional uint32 GoodsID = 6; // uint32 商品ID
  740. optional uint64 AccountID = 7; // uint64 账号ID
  741. optional uint32 BuyOrSell = 8; // uint32 方向-0:买
  742. optional uint64 HolderQty = 9; // uint64 持仓数量
  743. optional double HolderPrice = 10; // double 持仓价格
  744. optional double HolderAmount = 11; // double 持仓金额
  745. optional uint32 IsCloseToday = 12; // uint32 今日是否能平仓0:能平仓1:不能平
  746. optional uint32 OptionType = 13; // uint32 期权类型-1:认购(看涨)
  747. optional double Premium = 14; // double 权利金(单手)
  748. optional uint32 IsPreClose = 15; // uint32 是否预平仓0:非预平仓1:预平仓
  749. optional double ClosePrice = 16; // double 预平仓价格
  750. optional uint32 IsComfirmClose = 17; // uint32 是否确认行权0:非确认行权1:确认行权
  751. }
  752. // 商品最大数量通知
  753. message GoodsMaxQtyNtf {
  754. optional MessageHead Header = 1; // 消息头
  755. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  756. optional uint64 UserID = 3; // uint64 用户ID
  757. optional uint64 AccountID = 4; // uint64 资金账号ID
  758. optional uint32 GoodsID = 5; // uint32 交易商品ID
  759. optional uint32 MarketID = 6; // uint32 市场ID
  760. optional int64 BuyMaxQty = 7; // int64 最大买数量
  761. optional int32 LimitType = 8; // int32 期权类型-1:认购)
  762. }
  763. // 委托单撤单通知
  764. message RiskOrderCanceledNtf {
  765. optional MessageHead Header = 1; // 消息头
  766. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  767. optional uint64 AccountID = 3; // uint64 资金账号ID
  768. }
  769. // 交易风控规则配置变更通知
  770. message TradeRiskRuleConfigChangeNtf {
  771. optional MessageHead Header = 1; // 消息头
  772. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  773. optional uint32 OperateType = 3; // uint32 操作类型1:增2:删
  774. optional uint32 RuleChangeType = 4; // uint32 变更类型1:风控规则(支持增删改)2:风控规则组(支持增删改)
  775. optional uint32 RiskRuleID = 5; // uint32 风控规则ID(风控规则操作时有效)
  776. optional uint32 RiskRuleGroupID = 6; // uint32 风控规则组ID(风控规则组操作时有效)
  777. repeated uint32 GroupAddRuleIDs = 7; // uint32 风控规则组增加规则数组(增改有效)
  778. repeated uint32 GroupDelRuleIDs = 8; // uint32 风控规则组删除规则数组(删改有效)
  779. }
  780. // 交易模板配置变更通知
  781. message TradeTemplateConfigChangeNtf {
  782. optional MessageHead Header = 1; // 消息头
  783. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  784. optional uint32 TemplateType = 3; // uint32 模板类型1:保证金2:手续费
  785. optional uint32 TemplateID = 4; // uint32 模板ID
  786. repeated uint32 AddAuxIDs = 5; // uint32 模板增加辅助ID保证金手续费:GoodsID汇率:OriCurrencyID
  787. repeated uint32 DelAuxIDs = 6; // uint32 模板删除辅助ID保证金手续费:GoodsID汇率:OriCurrencyID
  788. repeated uint32 UpdateAuxIDs = 7; // uint32 模板修改辅助ID保证金手续费:GoodsID汇率:OriCurrencyID
  789. }
  790. // 资金账户交易模板配置变更通知
  791. message TaAccountTemplateConfigChangeNtf {
  792. optional MessageHead Header = 1; // 消息头
  793. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  794. optional uint32 OperateType = 3; // uint32 操作类型1:增2:删
  795. optional uint64 AccountID = 4; // uint64 账户ID
  796. }
  797. // 外部账户配置同步完成通知
  798. message ExtenalAccountCfgSyncFinishNtf {
  799. optional MessageHead Header = 1; // 消息头
  800. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  801. optional string TradeDate = 3; // string 交易日
  802. optional uint64 AccountID = 4; // uint64 账户ID(空表示所有外部账号配置都同步完成)
  803. optional uint32 ChannelID = 5; // uint32 渠道ID(同上)
  804. }
  805. // 风控账户交易限制状态变更通知
  806. message RiskAccountTradeLimitStatusChangeNtf {
  807. optional MessageHead Header = 1; // 消息头
  808. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  809. optional uint32 OperateType = 3; // uint32 操作类型1:增2:删
  810. optional uint64 AccountID = 4; // uint64 账户ID
  811. optional uint32 RiskTradeStatus = 5; // uint32 风控交易状态eAccountRiskTradeStatus
  812. }
  813. // 风控消息管理端通知客户端
  814. message RiskToWebNtf {
  815. optional MessageHead Header = 1; // 消息头
  816. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  817. optional uint64 MsgId = 3; // uint64 消息ID
  818. optional string Content = 4; // string 消息内容
  819. }
  820. // 管理端个性化风控通知
  821. message AccountConfigChangeNtf {
  822. optional MessageHead Header = 1; // 消息头
  823. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  824. optional uint32 NtfType = 3; // uint32 类型:1-风控变更,2-投资者分组变更,3-投资者分组个性化变更,4-账户个性化变更
  825. optional uint64 Userid = 4; // uint64 会员/投资者ID
  826. optional uint32 Roletype = 5; // uint32 角色:6-自营,8-做市(投资者没有)
  827. optional uint64 Accountid = 6; // uint64 资金账户
  828. optional uint64 Groupid = 7; // uint64 分组ID,2、3时使用
  829. optional uint64 Goodsid = 8; // uint64 商品ID
  830. optional uint32 ChangType = 9; // uint32 变更类型:1新增,2修改,3删除
  831. }
  832. // 商品组变更通知
  833. message GoodsGroupChangeNtf {
  834. optional MessageHead Header = 1; // 消息头
  835. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  836. optional uint32 GoodsGroupID = 3; // uint32 商品组ID
  837. optional int32 ChangeType = 4; // int32 变更类型(增、删、改等)
  838. }
  839. // 场次变更通知
  840. message AuctionGroupInfoNtf {
  841. optional MessageHead Header = 1; // 消息头
  842. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  843. optional uint64 AutoId = 3; // uint64 场次ID
  844. optional int32 ChangeType = 4; // int32 变更类型(1:增、2:改、3:删等)
  845. }
  846. // 场次状态变更通知
  847. message AuctionGroupStatusNtf {
  848. optional MessageHead Header = 1; // 消息头
  849. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  850. optional uint32 MarketID = 3; // uint32 市场ID
  851. optional uint32 Status = 4; // uint32 场次状态
  852. optional string TradeDay = 5; // string 交易日
  853. optional uint32 TradeMode = 6; // uint32 交易模式
  854. optional uint32 GroupID = 7; // uint32 场次ID
  855. }
  856. // 履约计划完成通知
  857. message PerformancePlanProcessedNtf {
  858. optional MessageHead Header = 1; // 消息头
  859. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  860. optional uint64 PerformancePlanID = 3; // uint64 履约计划ID
  861. optional uint64 RelatedOrderID = 4; // uint64 关联单号
  862. optional uint64 AccountID = 5; // uint64 资金账号ID
  863. optional uint32 MarketID = 6; // uint32 市场ID
  864. optional string TradeDay = 7; // string 交易日
  865. optional double Amount = 8; // double 履约金额
  866. optional string TradeTime = 9; // string 成交时间
  867. optional uint32 Score = 10; // uint32 积分
  868. }
  869. // 场外期权最大数量通知
  870. message OTCOptionGoodsMaxQtyNtf {
  871. optional MessageHead Header = 1; // 消息头
  872. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  873. optional uint64 UserID = 3; // uint64 用户ID
  874. optional uint64 AccountID = 4; // uint64 资金账号ID
  875. optional uint32 GoodsID = 5; // uint32 交易商品ID
  876. optional uint32 GoodsGroupId = 6; // uint32 商品组ID
  877. optional uint32 MarketID = 7; // uint32 市场ID
  878. optional int64 BuyMaxQty = 8; // int64 最大买数量
  879. optional int32 LimitType = 9; // int32 期权类型0:全部1:认购(看涨)
  880. }
  881. // 跟单设置变更通知
  882. message FollowOrderSetNtf {
  883. optional MessageHead Header = 1; // 消息头
  884. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  885. optional uint64 StrategyId = 3; // uint64 策略ID(AUTOID)
  886. optional string StrategyName = 4; // string 策略名称
  887. optional uint32 Type = 5; // uint32 策略类型1:跟委托2:跟成交
  888. optional uint32 PriceMode = 6; // uint32 跟单模式1:市价单2:限价单
  889. optional double Ratio = 7; // double 跟单比例
  890. optional uint32 Direct = 8; // uint32 跟单方向1:正向2:反向
  891. optional string AccountId = 9; // string 跟单账号
  892. optional string AccountId2 = 10; // string 被跟单账号
  893. optional uint32 ChangeNtfType = 11; // uint32 变更类型1:新增2:修改
  894. optional string GoodsId = 12; // string 跟单商品ID(逗号隔开)
  895. optional uint32 Status = 13; // uint32 状态0-禁用1-启用
  896. }
  897. // 上架商品状态变更通知
  898. message SpotQuoteStatusChangeNtf {
  899. optional MessageHead Header = 1; // 消息头
  900. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  901. optional uint32 CurMarketID = 3; // uint32 当前市场ID
  902. optional uint32 DeliveryGoodsID = 4; // uint32 交割商品ID
  903. optional uint32 DGStatus = 5; // uint32 品种状态
  904. optional uint32 QuoteStatus = 6; // uint32 报价状态
  905. optional uint32 ListingStatus = 7; // uint32 挂牌状态
  906. optional uint32 AuctionStatus = 8; // uint32 竞拍状态
  907. optional string TradeDay = 9; // string 交易日
  908. optional uint32 CurUserID = 10; // uint32 当前用户
  909. optional uint64 CurAccountID = 11; // uint64 当前资金账户
  910. }
  911. // 锁仓认购活动变更通知
  912. message ChannelLockBuyChangeNtf {
  913. optional MessageHead Header = 1; // 消息头
  914. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  915. optional uint32 OperateType = 3; // uint32 操作类型1:增2:删
  916. optional uint64 ActiveID = 4; // uint64 活动ID
  917. }
  918. // 通道路由设置变更通知
  919. message ChannelSetChangeNtf {
  920. optional MessageHead Header = 1; // 消息头
  921. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  922. optional uint32 OperateType = 3; // uint32 操作类型1:增2:删
  923. optional uint64 Cid = 4; // uint64 活动ID
  924. }
  925. // 买方挂牌成交通知
  926. message BuyListingTradeDealedNtf {
  927. optional MessageHead Header = 1; // 消息头
  928. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  929. optional uint64 BuyAccountID = 3; // uint64 买方资金账户ID
  930. optional uint32 DeliveryGoodsID = 4; // uint32 交割商品ID
  931. optional uint32 ListingStatus = 5; // uint32 挂牌状态(3:已成交)
  932. optional double TradeAmount = 6; // double 成交金额
  933. optional string TradeTime = 7; // string 成交时间
  934. }
  935. // 现货商城商品状态变更通知
  936. message SpotShopGoodsStatusChangeNtf {
  937. optional MessageHead Header = 1; // 消息头
  938. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  939. optional uint32 GoodsID = 3; // uint32 商品ID
  940. optional uint32 Status = 4; // uint32 1:新增2:下架3:修改
  941. optional string TradeDay = 5; // string 交易日
  942. }
  943. // 委托单成功通知
  944. message OrderSuccessedNtf {
  945. optional MessageHead Header = 1; // 消息头
  946. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  947. optional uint64 OrderID = 3; // uint64 委托单ID
  948. optional uint32 GoodsID = 4; // uint32 商品ID
  949. optional string OrderTime = 5; // string 委托时间
  950. }
  951. // 金点拍出价成功通知
  952. message JdpQuoteSuccessNtf {
  953. optional MessageHead Header = 1; // 消息头
  954. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  955. optional uint32 UserID = 3; // uint32 用户ID
  956. optional uint64 AccountID = 4; // uint64 账户ID
  957. optional uint32 GoodsID = 5; // uint32 商品ID
  958. optional string NickName = 6; // string 昵称
  959. optional double Price = 7; // double 当前价格
  960. optional double PrizeaAmount = 8; // double 奖励金额
  961. optional string Ordertime = 9; // string 委托时间
  962. }
  963. // 止盈止损触发通知
  964. message SPSLTriggerNtf {
  965. optional MessageHead Header = 1; // 消息头
  966. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  967. optional uint64 OrderID = 3; // uint64 单号
  968. optional uint64 AccountID = 4; // uint64 账户ID
  969. optional uint32 GoodsID = 5; // uint32 商品ID
  970. optional uint32 Status = 6; // uint32 止盈止损单据状态
  971. }
  972. // 用户分组变更通知
  973. message UserGroupNtf {
  974. optional MessageHead Header = 1; // 消息头
  975. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  976. optional uint32 UserGroupID = 3; // uint32 用户分组ID
  977. optional uint32 ChangeType = 4; // uint32 变更类型(增、删、改等)
  978. optional uint32 NtfType = 5; // uint32 变更范围(分组信息、分组明细)
  979. }
  980. // 止盈止损设置变更通知
  981. message SPSLSetChangeNtf {
  982. optional MessageHead Header = 1; // 消息头
  983. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  984. optional uint32 OperateType = 3; // uint32 操作类型1:新增2:修改
  985. optional uint64 SpslId = 4; // uint64 模板ID
  986. }
  987. // 投顾托管关系变更通知
  988. message TrusteeRelationNtf {
  989. optional MessageHead Header = 1; // 消息头
  990. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  991. optional uint64 TrusteeUserID = 3; // uint64 投顾用户ID
  992. repeated uint64 FTouGuClientInfo = 4; // uint64 投顾与客户关系
  993. optional uint32 IdRelation = 5; // uint32 0关联1解除
  994. }
  995. // 允许交易通知通知
  996. message ExtAllowTradeNtf {
  997. optional MessageHead Header = 1; // 消息头
  998. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  999. optional uint32 TradeSwitch = 3; // uint32 交易切换0允许
  1000. }
  1001. // 主账户强平设置变更通知
  1002. message ForceCloseSetChangeNtf {
  1003. optional MessageHead Header = 1; // 消息头
  1004. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  1005. optional uint32 OperateType = 3; // uint32 操作类型1:新增2:修改
  1006. optional uint64 tmplateId = 4; // uint64 模板ID
  1007. }
  1008. // 资金账户状态变更通知
  1009. message TaaccountStausChangeNtf {
  1010. optional MessageHead Header = 1; // 消息头
  1011. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  1012. repeated uint64 AccountId = 3; // uint64 资金账户ID
  1013. optional uint32 TradeStatus = 4; // uint32 交易状态-1:正常
  1014. }
  1015. // 交易委托请求
  1016. message OrderReq {
  1017. optional MessageHead Header = 1;
  1018. optional string ClientSerialNo = 2; // 客户端流水号
  1019. optional string ClientOrderTime = 3; // 客户端委托时间
  1020. optional uint32 ClientType = 4; // 终端类型
  1021. optional uint64 LoginID = 5; // 登陆账号
  1022. optional uint64 AccountID = 6; // 交易账号
  1023. optional uint32 GoodsID = 7; // 商品ID
  1024. optional uint32 MarketID = 8; // 市场ID
  1025. optional int32 ValidType = 9; // 校验类型
  1026. optional uint32 OperateType = 10; // 操作类型:
  1027. optional uint32 OrderSrc = 11; // 单据来源
  1028. optional uint64 OperatorID = 12; // 操作员账号ID
  1029. optional double OrderPrice = 13; // 委托价格
  1030. optional double MarketMaxSub = 14; // 市价允许最大偏差(做市)
  1031. optional uint64 OrderQty = 15; // 委托数量
  1032. optional uint32 BuyOrSell = 16; // 买卖方向
  1033. optional uint32 BuildType = 17; // 下单类型
  1034. optional double CurtQuotePrice = 18; // 保留,计算冻结金额使用
  1035. optional double SpPrice = 19; // 止盈价格
  1036. optional double SlPrice = 20; // 止损价格
  1037. optional uint32 PriceMode = 21; // 取价方式
  1038. optional uint32 TimevalidType = 22; // 时间有效类型
  1039. optional uint32 TriggerType = 23; // 预埋单触发类型
  1040. optional double TriggerPrice = 24; // 预埋单触发价格
  1041. optional uint32 ListingSelectType = 25; // 挂牌点选类型
  1042. optional uint32 DelistingType = 26; // 摘牌类型
  1043. optional uint64 RelatedID = 27; // 关联单号
  1044. optional uint32 OptionType = 28; // 期权类型(1:认购(看涨)2:认沽(看跌))
  1045. optional double Premium = 29; // 权利金
  1046. optional uint32 TriggerOperator = 30; // 触发条件-1:
  1047. optional string ServiceTime = 31; // 服务端时间
  1048. }
  1049. // 交易委托应答
  1050. message OrderRsp {
  1051. optional MessageHead Header = 1; // 消息头
  1052. optional int32 RetCode = 2; // 返回码
  1053. optional string RetDesc = 3; // 描述信息
  1054. optional uint64 OrderID = 4; // 一级生成的订单号
  1055. optional string OrderTime = 5; // 接收委托交易的时间
  1056. }
  1057. // 撤单请求
  1058. message CancelOrderReq {
  1059. optional MessageHead Header = 1;
  1060. optional string ClientSerialNo = 2; // 客户端流水号
  1061. optional string ClientOrderTime = 3; // 客户端委托时间
  1062. optional uint32 ClientType = 4; // 终端类型
  1063. optional uint32 OperateType = 5; // 操作类型
  1064. optional uint64 OldOrderId = 6; // 原委托单号
  1065. optional uint64 AccountID = 7; // 交易账号
  1066. optional uint32 OrderSrc = 8; // 单据来源
  1067. optional uint64 OperatorID = 9; // 操作员账号ID
  1068. optional string IP = 10; // 单据来源IP
  1069. }
  1070. // 撤单应答
  1071. message CancelOrderRsp {
  1072. optional MessageHead Header = 1; // 消息头
  1073. optional int32 RetCode = 2; // 返回码
  1074. optional string RetDesc = 3; // 描述信息
  1075. optional uint64 ExchActionID = 4; // 交易所操作号
  1076. optional string OrderTime = 5; // 接收委托交易的时间
  1077. }
  1078. // 风控斩仓请求
  1079. message RiskCloseReq {
  1080. optional MessageHead Header = 1;
  1081. optional uint64 EntrustID = 2; // 斩仓委托ID
  1082. optional string RiskCloseTime = 3; // 风控委托时间(YYYY-MM-DDHH:MM:SS)
  1083. optional uint64 AccountID = 4; // 交易账号
  1084. optional uint32 GoodsID = 5; // 商品ID
  1085. optional uint32 MarketID = 6; // 市场ID
  1086. optional uint32 OperateType = 7; // 操作类型:
  1087. optional uint32 OrderSrc = 8; // 单据来源
  1088. optional double OrderPrice = 9; // 委托价格
  1089. optional uint64 OrderQty = 10; // 委托数量
  1090. optional uint32 BuyOrSell = 11; // 买卖方向(委托下单方向与持仓头寸方向相反)
  1091. optional uint32 BuildType = 12; // 下单类型
  1092. optional uint32 PriceMode = 13; // 取价方式
  1093. optional string RiskCloseSendTime = 14; // 风控委托发送时间(YYYY-MM-DDHH:MM:SS)
  1094. optional uint32 CloseType = 15; // 平仓方式,0-平仓1-平今2-平昨
  1095. optional string IP = 16; // 单据来源IP
  1096. }
  1097. // 风控斩仓响应
  1098. message RiskCloseRsp {
  1099. optional MessageHead Header = 1; // 消息头
  1100. optional int32 RetCode = 2; // 返回码
  1101. optional string RetDesc = 3; // 描述信息
  1102. optional int32 CloseRspResult = 4; // 斩仓结果(0:成功,其它为失败)
  1103. optional uint64 EntrustID = 5; // 斩仓委托ID(从斩仓请求中带回)
  1104. optional uint64 AccountID = 6; // 交易账号
  1105. optional uint64 TradeQty = 7; // 实际成交手数
  1106. }
  1107. // 仓单持仓转换请求
  1108. message WairhouseReceiptHolderTranslateReq {
  1109. optional MessageHead Header = 1;
  1110. optional uint64 AccountID = 2; // 交易账号
  1111. optional uint32 GoodsID = 3; // 商品ID
  1112. optional uint64 TranslateQty = 4; // 转换数量
  1113. optional uint32 TranslateType = 5; // 转换类型(1:仓单转持仓2:持仓转仓单)
  1114. optional uint32 UnfreezeFlag = 6; // 是否解冻标志(1:需解冻2:不解冻)
  1115. optional uint32 BusinessID = 7; // 业务ID(返回)
  1116. optional uint64 TradeID = 8; // 交易ID
  1117. optional uint64 WRSerialNo = 9; // 仓单服务流水号(返回)
  1118. }
  1119. // 仓单持仓转换响应
  1120. message WairhouseReceiptHolderTranslateRsp {
  1121. optional MessageHead Header = 1; // 消息头
  1122. optional int32 RetCode = 2; // 返回码
  1123. optional string RetDesc = 3; // 描述信息
  1124. optional uint32 BusinessID = 4; // 业务ID(返回)
  1125. optional uint64 TradeID = 5; // 交易ID
  1126. optional uint64 WRSerialNo = 6; // 仓单服务流水号(返回)
  1127. optional uint64 AccountID = 7; // 交易账号
  1128. optional uint64 UserID = 8; // 忽略此字段
  1129. }
  1130. // 交割协议平仓请求
  1131. message DeliveryDealCloseReq {
  1132. optional MessageHead Header = 1;
  1133. optional uint64 DeliveryID = 2; // 交割单号
  1134. optional uint32 GoodsID = 3; // 商品Id(收益权)
  1135. optional uint64 BuyAccountID = 4; // 买方账户Id
  1136. optional uint64 SellAccountID = 5; // 卖方账户Id
  1137. optional double ClosePrice = 6; // 协议平仓价格
  1138. optional uint64 CloseQty = 7; // 协议平仓数量
  1139. optional uint32 OrderSrc = 8; // 单据来源
  1140. optional string ClientSerialNo = 9; // 流水号
  1141. optional uint32 DeliveryPriceType = 10; // 交割平仓价格类型
  1142. }
  1143. // 交割协议平仓应答
  1144. message DeliveryDealCloseRsp {
  1145. optional MessageHead Header = 1; // 消息头
  1146. optional int32 RetCode = 2; // 返回码
  1147. optional string RetDesc = 3; // 描述信息
  1148. optional uint64 DeliveryID = 4; // 交割单号
  1149. optional uint32 GoodsID = 5; // 商品Id
  1150. optional string ClientSerialNo = 6; // 流水号
  1151. optional double TradeAmount = 7; // 交割成交货款
  1152. }
  1153. // 交割成交请求
  1154. message DeliveryTradeReq {
  1155. optional MessageHead Header = 1;
  1156. optional uint64 DeliveryID = 2; // 交割单号
  1157. optional uint32 GoodsID = 3; // 商品Id(所有权)
  1158. optional uint64 AccountID = 4; // 买方账户Id
  1159. optional uint64 Qty = 5; // 头寸数量
  1160. optional uint32 OrderSrc = 6; // 单据来源
  1161. optional string ClientSerialNo = 7; // 流水号
  1162. optional uint32 DeliveryGoodsID = 8; // 交割商品Id(所有权)
  1163. }
  1164. // 交割成交应答
  1165. message DeliveryTradeRsp {
  1166. optional MessageHead Header = 1; // 消息头
  1167. optional int32 RetCode = 2; // 返回码
  1168. optional string RetDesc = 3; // 描述信息
  1169. optional uint64 DeliveryID = 4; // 交割单号
  1170. optional uint32 GoodsID = 5; // 商品Id
  1171. optional double TotalOpenAmount = 6; // 建仓总金额
  1172. optional double TotalPayAmount = 7; // 已支付总金额
  1173. optional string ClientSerialNo = 8; // 流水号
  1174. }
  1175. // 交割协议转让请求
  1176. message DeliveryTransferReq {
  1177. optional MessageHead Header = 1;
  1178. optional uint64 DeliveryID = 2; // 交割单号
  1179. optional uint32 GoodsID = 3; // 商品Id
  1180. optional uint32 BuyOrSell = 4; // 买卖方向
  1181. optional uint64 CloseAccountID = 5; // 平仓账户Id
  1182. optional uint64 MatchAccountID = 6; // 对手账户Id
  1183. optional double Price = 7; // 转让价格
  1184. optional uint64 Qty = 8; // 转让数量
  1185. optional uint32 OrderSrc = 9; // 单据来源
  1186. optional string ClientSerialNo = 10; // 流水号
  1187. }
  1188. // 交割协议转让应答
  1189. message DeliveryTransferRsp {
  1190. optional MessageHead Header = 1; // 消息头
  1191. optional int32 RetCode = 2; // 返回码
  1192. optional string RetDesc = 3; // 描述信息
  1193. optional uint64 DeliveryID = 4; // 交割单号
  1194. optional uint32 GoodsID = 5; // 商品Id
  1195. optional string ClientSerialNo = 6; // 流水号
  1196. }
  1197. // 预行权请求
  1198. message PreExerciseReq {
  1199. optional MessageHead Header = 1;
  1200. optional string ClientSerialNo = 2; // 客户端流水号
  1201. optional string ClientOrderTime = 3; // 客户端委托时间(YYYY-MM-DDHH:MM:SS)
  1202. optional uint32 ClientType = 4; // 终端类型
  1203. optional uint64 AccountID = 5; // 交易账号
  1204. optional uint32 GoodsID = 6; // 商品ID
  1205. optional uint32 MarketID = 7; // 市场ID
  1206. optional uint32 OperateType = 8; // 操作类型
  1207. optional uint32 OrderSrc = 9; // 单据来源
  1208. optional uint64 OperatorID = 10; // 操作员账号ID
  1209. optional uint64 RelatedID = 11; // 关联单号
  1210. optional uint32 OptionType = 12; // 期权类型(1:认购(看涨)2:认沽(看跌))
  1211. optional uint32 BuyOrSell = 13; // 买卖方向
  1212. }
  1213. // 预行权返回
  1214. message PreExerciseRsp {
  1215. optional MessageHead Header = 1; // 消息头
  1216. optional int32 RetCode = 2; // 返回码
  1217. optional string RetDesc = 3; // 描述信息
  1218. optional string ClientSerialNo = 4; // 流水号
  1219. optional uint64 AccountID = 5; // 交易账号
  1220. optional uint64 RelatedID = 6; // 关联单号
  1221. }
  1222. // 确认行权请求
  1223. message ConfirmExerciseReq {
  1224. optional MessageHead Header = 1;
  1225. optional string ClientSerialNo = 2; // 客户端流水号
  1226. optional string ClientOrderTime = 3; // 客户端委托时间
  1227. optional uint32 ClientType = 4; // 终端类型
  1228. optional uint64 AccountID = 5; // 交易账号
  1229. optional uint32 GoodsID = 6; // 商品ID
  1230. optional uint32 MarketID = 7; // 市场ID
  1231. optional uint32 OperateType = 8; // 操作类型
  1232. optional uint32 OrderSrc = 9; // 单据来源
  1233. optional uint64 OperatorID = 10; // 操作员账号ID
  1234. optional uint64 RelatedID = 11; // 关联单号
  1235. optional uint32 OptionType = 12; // 期权类型(1:认购(看涨)2:认沽(看跌))
  1236. optional bytes ShipperConfigInfo = 13; // 发货配置信息
  1237. optional int32 ShipperConfigType = 14; // 发货配置类型
  1238. optional uint32 BuyOrSell = 15; // 买卖方向
  1239. optional int32 VersionFlag = 16; // 版本标记(1,新版本;0或无值,旧版本)
  1240. }
  1241. // 确认行权返回
  1242. message ConfirmExerciseRsp {
  1243. optional MessageHead Header = 1; // 消息头
  1244. optional int32 RetCode = 2; // 返回码
  1245. optional string RetDesc = 3; // 描述信息
  1246. optional string ClientSerialNo = 4; // 流水号
  1247. optional uint64 AccountID = 5; // 交易账号
  1248. optional uint64 RelatedID = 6; // 关联单号
  1249. }
  1250. // 管理员强行平仓请求
  1251. message ManageForceCloseReq {
  1252. optional MessageHead Header = 1;
  1253. optional uint64 EntrustID = 2; // 强行平仓委托ID(用于关联ID和返回应答)
  1254. optional string ClientOrderTime = 3; // 委托时间(YYYY-MM-DDHH:MM:SS)
  1255. optional uint64 AccountID = 4; // 平仓单据交易账号
  1256. optional uint32 GoodsID = 5; // 平仓商品ID
  1257. optional uint32 MarketID = 6; // 市场ID
  1258. optional uint32 OperateType = 7; // 操作类型
  1259. optional uint32 OrderSrc = 8; // 单据来源
  1260. optional double OrderPrice = 9; // 平仓价格
  1261. optional uint64 OrderQty = 10; // 平仓数量
  1262. optional uint32 BuyOrSell = 11; // 买卖方向(委托下单方向与持仓头寸方向相反)
  1263. }
  1264. // 管理员强行平仓响应
  1265. message ManageForceCloseRsp {
  1266. optional MessageHead Header = 1; // 消息头
  1267. optional int32 RetCode = 2; // 返回码
  1268. optional string RetDesc = 3; // 描述信息
  1269. optional uint64 EntrustID = 4; // 强行平仓委托ID(用于关联ID和返回应答)
  1270. optional uint64 AccountID = 5; // 平仓单据交易账号
  1271. optional uint32 TradeQty = 6; // 实际成交数量
  1272. }
  1273. // 预售挂牌请求
  1274. message PreSaleListingInfoReq {
  1275. optional MessageHead Header = 1;
  1276. optional uint64 ApplyID = 2; // 预售申请ID
  1277. optional uint64 AccountID = 3; // 卖方资金账号ID
  1278. optional uint32 MarketID = 4; // 市场ID
  1279. optional string GoodsName = 5; // 商品名称
  1280. optional string GoodsCode = 6; // 商品代码
  1281. optional string Unit = 7; // 单位
  1282. optional uint64 ApplyQty = 8; // 申请数量
  1283. optional uint32 StepPriceType = 9; // 阶梯价类型
  1284. optional string GoodsDesc = 10; // 商品详情
  1285. optional string GoodsPicUrl = 11; // 商品介绍图片
  1286. optional uint32 DecimalPlace = 12; // 价格小数位
  1287. optional uint32 SellMarginAlgorithm = 13; // 卖方保证金收取方式
  1288. optional double SellMarginValue = 14; // 卖方保证金设置值
  1289. optional uint32 BuyChargeAlgorithm = 15; // 买方手续费收取方式
  1290. optional double BuyChargeValue = 16; // 买方手续费设置值
  1291. optional uint32 SellChargeAlgorithm = 17; // 卖方手续费收取方式
  1292. optional double SellChargeValue = 18; // 卖方手续费设置值
  1293. optional uint32 PerformanceMode = 19; // 履约方式
  1294. optional uint64 PerformanceTemplateID = 20; // 履约计划模板ID
  1295. optional uint32 PreSaleStatus = 21; // 预售状态
  1296. optional uint32 HandleStatus = 22; // 处理状态
  1297. optional string StartDay = 23; // 开始日期
  1298. optional string EndDay = 24; // 结束日期
  1299. optional double SellerFreezeMargin = 25; // 卖方冻结保证金
  1300. optional double SellerFreezeCharge = 26; // 卖方冻结手续费
  1301. optional uint32 BuyMarginAlgorithm = 27; // 买方保证金收取方式
  1302. optional double BuyMarginValue = 28; // 买方保证金设置值
  1303. optional uint64 MinTradeQty = 29; // 最小摘牌量
  1304. optional uint32 PerformanceWay = 30; // 交货模式-2:分步履约
  1305. optional double BuyReleaseRatio = 31; // 买方释放比率[2:分步履约]
  1306. optional double SellReleaseRatio = 32; // 卖方释放比率[2:分步履约]
  1307. optional uint32 ExecuteMode = 33; // 执行方式[2:分步履约]-1:顺序执行
  1308. optional uint32 ExecuteSide = 34; // 执行方[2:分步履约]-1:买方
  1309. optional uint32 MinQty = 35; // 最小执行量[2:分步履约]
  1310. optional uint32 HoldDays = 36; // 合同期限[2:分步履约]
  1311. optional double BuyChargeValue2 = 37; // 买方手续费设置值[会员部分]
  1312. optional double SellChargeValue2 = 38; // 卖方手续费设置值[会员部分]
  1313. }
  1314. // 预售挂牌响应
  1315. message PreSaleListingInfoRsp {
  1316. optional MessageHead Header = 1; // 消息头
  1317. optional int32 RetCode = 2; // 返回码
  1318. optional string RetDesc = 3; // 描述信息
  1319. optional uint64 ListingID = 4; // 预售挂牌ID
  1320. optional uint64 ApplyID = 5; // 预售申请ID
  1321. optional uint32 TradeQty = 6; // 实际成交数量
  1322. optional uint64 SellerAccountID = 7; // 卖方资金账号ID
  1323. }
  1324. // 预售委托请求
  1325. message PreSaleOrderReq {
  1326. optional MessageHead Header = 1;
  1327. optional uint64 ListingID = 2; // 关联挂牌ID
  1328. optional uint32 BuyOrSell = 3; // 买卖方向
  1329. optional uint64 AccountID = 4; // 账户ID
  1330. optional uint64 OrderQty = 5; // 委托数量
  1331. optional string ClientOrderTime = 6; // 客户端委托时间
  1332. optional string ClientTicket = 7; // 客户端流水号
  1333. optional uint32 ClientType = 8; // 客户端类型
  1334. optional string GoodsCode = 9; // 商品代码
  1335. optional uint32 MarketID = 10; // 市场ID
  1336. }
  1337. // 预售委托响应
  1338. message PreSaleOrderRsp {
  1339. optional MessageHead Header = 1; // 消息头
  1340. optional int32 RetCode = 2; // 返回码
  1341. optional string RetDesc = 3; // 描述信息
  1342. optional uint64 ListingID = 4; // 关联挂牌ID
  1343. optional uint64 AccountID = 5; // 账户ID
  1344. optional string ClientTicket = 6; // 客户端流水号
  1345. }
  1346. // 管理端协议转让请求
  1347. message ManageProtoTransferReq {
  1348. optional MessageHead Header = 1;
  1349. optional uint64 ApplyID = 2; // 申请ID
  1350. optional uint64 OutAccountID = 3; // 转出方资金账号ID
  1351. optional uint64 InAccountID = 4; // 转入方资金账号
  1352. optional uint32 GoodsID = 5; // 商品ID
  1353. optional uint32 BuyOrSell = 6; // 转出方买卖方向
  1354. optional uint64 Qty = 7; // 转让数量
  1355. optional double TransferPrice = 8; // 转让价格
  1356. optional double HoldPrice = 9; // 持仓价格[所有权]
  1357. optional uint32 FreezeDays = 10; // 冻结天数
  1358. optional string ClientTicket = 11; // 客户端流水号
  1359. }
  1360. // 管理端协议转让响应
  1361. message ManageProtoTransferRsp {
  1362. optional MessageHead Header = 1; // 消息头
  1363. optional int32 RetCode = 2; // 返回码
  1364. optional string RetDesc = 3; // 描述信息
  1365. optional uint64 ApplyID = 4; // 申请ID
  1366. optional string ClientTicket = 5; // 客户端流水号
  1367. }
  1368. // 商品退市请求
  1369. message GoodsDelistReq {
  1370. optional MessageHead Header = 1;
  1371. optional uint32 GoodsID = 2; // 商品ID
  1372. optional uint32 AccountType = 3; // 账户类型-1:非做市会员
  1373. }
  1374. // 商品退市请求
  1375. message GoodsDelistRsp {
  1376. optional MessageHead Header = 1; // 消息头
  1377. optional int32 RetCode = 2; // 返回码
  1378. optional string RetDesc = 3; // 描述信息
  1379. optional uint32 GoodsID = 4; // 商品ID
  1380. }
  1381. // 预售撤销请求
  1382. message PreSaleCancelReq {
  1383. optional MessageHead Header = 1;
  1384. optional uint64 ListingID = 2; // 关联挂牌ID
  1385. optional uint32 MarketID = 3; // 市场ID
  1386. }
  1387. // 预售撤销响应
  1388. message PreSaleCancelRsp {
  1389. optional MessageHead Header = 1; // 消息头
  1390. optional int32 RetCode = 2; // 返回码
  1391. optional string RetDesc = 3; // 描述信息
  1392. optional uint64 ListingID = 4; // 关联挂牌ID
  1393. optional uint32 MarketID = 5; // 市场ID
  1394. }
  1395. // 交易委托请求
  1396. message ChannelOrderReq {
  1397. optional MessageHead Header = 1;
  1398. optional string ClientSerialNo = 2; // 客户端流水号
  1399. optional string ClientOrderTime = 3; // 客户端委托时间
  1400. optional uint32 ClientType = 4; // 终端类型
  1401. optional uint64 LoginID = 5; // 登陆账号
  1402. optional uint64 AccountID = 6; // 交易账号
  1403. optional uint32 GoodsID = 7; // 商品ID
  1404. optional uint32 MarketID = 8; // 市场ID
  1405. optional int32 ValidType = 9; // 有效类型-1当日有效
  1406. optional uint32 ChannelOperateType = 10; // 操作类型:
  1407. optional uint32 ChannelOrderSrc = 11; // 单据来源委托来源-1:客户端
  1408. optional uint32 HedgeFlag = 12; // 投机套保标志-0:无
  1409. optional uint64 OperatorID = 13; // 操作员账号ID
  1410. optional double OrderPrice = 14; // 委托价格
  1411. optional uint64 OrderQty = 15; // 委托数量
  1412. optional uint32 BuyOrSell = 16; // 买卖方向(买卖-0:买
  1413. optional uint32 ChannelBuildType = 17; // 下单类型(开平标志-0:无
  1414. optional uint32 CloseType = 18; // 平仓方式(平仓方式-0:无
  1415. optional uint32 PriceMode = 19; // 取价方式-1:市价
  1416. optional uint32 TimeValidType = 20; // 时间有效类型
  1417. optional uint64 RelatedID = 21; // 关联单号
  1418. optional string ServiceTime = 22; // 服务端时间
  1419. optional string validtime = 23; // 有效时间
  1420. optional uint64 CloseTodayQty = 24; // 平今仓数量
  1421. optional double CurPrice = 25; // 当时的行情价
  1422. optional uint32 SPPoint = 26; // 止盈点数
  1423. optional uint32 SLPoint = 27; // 止损点数
  1424. optional string IP = 28; // 下单来源IP
  1425. }
  1426. // 交易委托应答
  1427. message ChannelOrderRsp {
  1428. optional MessageHead Header = 1; // 消息头
  1429. optional int32 RetCode = 2; // 返回码
  1430. optional string RetDesc = 3; // 描述信息
  1431. optional uint64 OrderID = 4; // 一级生成的订单号
  1432. optional string OrderTime = 5; // 接收委托交易的时间
  1433. }
  1434. // 修正持仓请求
  1435. message ManageAmendHolderReq {
  1436. optional MessageHead Header = 1;
  1437. optional uint64 EntrustID = 2; // 修正持仓委托ID(用于关联ID和返回应答)
  1438. optional string ClientOrderTime = 3; // 委托时间(YYYY-MM-DDHH:MM:SS)
  1439. optional uint64 AccountID = 4; // 交易账号
  1440. optional uint32 GoodsID = 5; // 商品ID
  1441. optional uint32 MarketID = 6; // 市场ID
  1442. optional uint32 ChannelOperateType = 7; // 操作类型
  1443. optional uint32 ChannelOrderSrc = 8; // 单据来源委托来源-1:客户端
  1444. optional double OrderPrice = 9; // 价格
  1445. optional uint64 OrderQty = 10; // 数量
  1446. optional uint32 BuyOrSell = 11; // 买卖方向(平仓:委托下单方向与持仓头寸方向相反)
  1447. optional uint32 ChannelBuildType = 12; // 下单类型(开平标志-0:无
  1448. optional uint32 CloseType = 13; // 平仓类型(平仓标志-0:平仓
  1449. optional string IP = 14; // 下单来源IP
  1450. }
  1451. // 修正持仓响应
  1452. message ManageAmendHolderRsp {
  1453. optional MessageHead Header = 1; // 消息头
  1454. optional int32 RetCode = 2; // 返回码
  1455. optional string RetDesc = 3; // 描述信息
  1456. optional uint64 EntrustID = 4; // 强行平仓委托ID(用于关联ID和返回应答)
  1457. optional uint64 AccountID = 5; // 平仓单据交易账号
  1458. }
  1459. // 修正成交请求
  1460. message ManageAmendTradeReq {
  1461. optional MessageHead Header = 1;
  1462. optional uint64 EntrustID = 2; // 修正成交委托ID(用于关联ID和返回应答)
  1463. optional string ClientOrderTime = 3; // 委托时间(YYYY-MM-DDHH:MM:SS)
  1464. optional uint32 MarketID = 4; // 市场ID
  1465. optional string TradeDate = 5; // 交易日
  1466. optional uint32 ChannelOrderSrc = 6; // 单据来源委托来源-1:客户端
  1467. optional uint64 MhpInnerTradeID = 7; // 对冲平台成交单ID
  1468. }
  1469. // 修正成交响应
  1470. message ManageAmendTradeRsp {
  1471. optional MessageHead Header = 1; // 消息头
  1472. optional int32 RetCode = 2; // 返回码
  1473. optional string RetDesc = 3; // 描述信息
  1474. optional uint64 EntrustID = 4; // 修正成交委托ID(用于关联ID和返回应答)
  1475. optional uint64 MhpInnerTradeID = 5; // 对冲平台成交单ID
  1476. optional string TradeDate = 6; // 交易日
  1477. }
  1478. // 币币兑换委托请求
  1479. message CoinExchangeOrderReq {
  1480. optional MessageHead Header = 1;
  1481. optional string ClientSerialNo = 2; // 客户端流水号
  1482. optional string ClientOrderTime = 3; // 客户端委托时间
  1483. optional uint32 ClientType = 4; // 终端类型
  1484. optional uint64 LoginID = 5; // 登陆账号
  1485. optional uint64 AccountIDPayer = 6; // 交易账号-付款
  1486. optional uint64 AccountIDPayee = 7; // 交易账号-收款
  1487. optional uint32 GoodsID = 8; // 商品ID
  1488. optional uint32 MarketID = 9; // 市场ID
  1489. optional int32 ValidType = 10; // 校验类型
  1490. optional uint32 OperateType = 11; // 操作类型:
  1491. optional uint32 OrderSrc = 12; // 单据来源
  1492. optional uint64 OperatorID = 13; // 操作员账号ID
  1493. optional double OrderPrice = 14; // 委托价格
  1494. optional uint64 OrderQty = 15; // 委托数量
  1495. optional uint32 BuyOrSell = 16; // 买卖方向
  1496. optional uint32 PriceMode = 17; // 取价方式
  1497. optional uint32 TimevalidType = 18; // 时间有效类型
  1498. optional uint32 TriggerType = 19; // 预埋单触发类型
  1499. optional double TriggerPrice = 20; // 预埋单触发价格
  1500. optional uint32 TriggerOperator = 21; // 触发条件-1:
  1501. optional uint64 RelatedID = 22; // 关联单号
  1502. optional string ServiceTime = 23; // 服务端时间
  1503. }
  1504. // 币币兑换委托应答
  1505. message CoinExchangeOrderRsp {
  1506. optional MessageHead Header = 1; // 消息头
  1507. optional int32 RetCode = 2; // 返回码
  1508. optional string RetDesc = 3; // 描述信息
  1509. optional uint64 OrderID = 4; // 一级生成的订单号
  1510. optional string OrderTime = 5; // 接收委托交易的时间
  1511. }
  1512. // 法币交易委托请求
  1513. message CoinC2COrderReq {
  1514. optional MessageHead Header = 1;
  1515. optional string ClientSerialNo = 2; // 客户端流水号
  1516. optional string ClientOrderTime = 3; // 客户端委托时间
  1517. optional uint32 ClientType = 4; // 终端类型
  1518. optional uint64 LoginID = 5; // 登陆账号
  1519. optional uint32 TradeCurrencyID = 6; // 交易货币ID
  1520. optional uint32 PayCurrencyID = 7; // 支付货币ID
  1521. optional uint64 AccountID = 8; // 交易账号
  1522. optional uint32 MarketID = 9; // 市场ID
  1523. optional uint32 ListType = 10; // 摘挂类型
  1524. optional uint32 BuyOrSell = 11; // 买卖方向
  1525. optional double OrderPrice = 12; // 委托价格
  1526. optional uint64 OrderQty = 13; // 委托数量
  1527. optional uint32 DelistLimitType = 14; // 摘牌限制方式
  1528. optional uint32 DelistLimitMinValue = 15; // 摘牌限制最小值
  1529. optional uint32 DelistLimitMaxValue = 16; // 摘牌限制最小值
  1530. optional string PayModels = 17; // 支持的支付方式
  1531. optional string PayInfoIDs = 18; // 支付信息IDs(卖)
  1532. optional uint32 ValidType = 19; // 时间有效类型
  1533. optional string ValidTime = 20; // 有效期限
  1534. optional uint32 OrderSrc = 21; // 单据来源
  1535. optional uint64 OperatorID = 22; // 操作员账号ID
  1536. optional uint64 RelatedID = 23; // 关联单号
  1537. optional string ServiceTime = 24; // 服务端时间
  1538. }
  1539. // 法币交易委托应答
  1540. message CoinC2COrderRsp {
  1541. optional MessageHead Header = 1; // 消息头
  1542. optional int32 RetCode = 2; // 返回码
  1543. optional string RetDesc = 3; // 描述信息
  1544. optional uint64 OrderID = 4; // 一级生成的订单号
  1545. optional string OrderTime = 5; // 接收委托交易的时间
  1546. }
  1547. // 法币交易撤单请求
  1548. message CoinC2CCancelReq {
  1549. optional MessageHead Header = 1;
  1550. optional string ClientSerialNo = 2; // 客户端流水号
  1551. optional string ClientOrderTime = 3; // 客户端委托时间
  1552. optional uint32 ClientType = 4; // 终端类型
  1553. optional uint32 OperateType = 5; // 操作类型
  1554. optional uint64 OldOrderId = 6; // 原委托单号
  1555. optional uint64 AccountID = 7; // 交易账号
  1556. optional uint32 MarketID = 8; // 市场ID
  1557. optional uint32 OrderSrc = 9; // 单据来源
  1558. optional uint64 OperatorID = 10; // 操作员账号ID
  1559. }
  1560. // 法币交易撤单应答
  1561. message CoinC2CCancelRsp {
  1562. optional MessageHead Header = 1; // 消息头
  1563. optional int32 RetCode = 2; // 返回码
  1564. optional string RetDesc = 3; // 描述信息
  1565. optional uint64 ExchActionID = 4; // 交易所操作号
  1566. optional string OrderTime = 5; // 接收委托交易的时间
  1567. }
  1568. // 通道锁仓请求
  1569. message ChannelLockReq {
  1570. optional MessageHead Header = 1;
  1571. optional string ClientSerialNo = 2; // 客户端流水号
  1572. optional string ClientOrderTime = 3; // 客户端委托时间
  1573. optional uint32 ClientType = 4; // 终端类型
  1574. optional uint64 LoginID = 5; // 登陆账号
  1575. optional uint64 AccountID = 6; // 交易账号
  1576. optional uint32 GoodsID = 7; // 商品ID
  1577. optional uint32 MarketID = 8; // 市场ID
  1578. optional uint64 OperatorID = 9; // 操作员账号ID
  1579. optional uint64 ActiveInfoID = 10; // 锁仓活动ID
  1580. optional uint64 Qty = 11; // 锁仓数量
  1581. optional double OrderPrice = 12; // 当前价格
  1582. optional uint64 GiftQty = 13; // 赠送数量
  1583. optional string StopDate = 14; // 锁仓结束时间(格式YYYY-MM-DD)
  1584. optional string IDCardPhotoURL = 15; // 身份证地址
  1585. optional string SignatureURL = 16; // 电子签名地址
  1586. }
  1587. // 通道锁仓应答
  1588. message ChannelLockRsp {
  1589. optional MessageHead Header = 1; // 消息头
  1590. optional int32 RetCode = 2; // 返回码
  1591. optional string RetDesc = 3; // 描述信息
  1592. optional uint64 OrderID = 4; // 一级生成的订单号
  1593. optional string OrderTime = 5; // 接收委托交易的时间
  1594. }
  1595. // 通道撤销锁仓请求
  1596. message ChannelCancelLockReq {
  1597. optional MessageHead Header = 1;
  1598. optional string ClientSerialNo = 2; // 客户端流水号
  1599. optional string ClientOrderTime = 3; // 客户端委托时间
  1600. optional uint32 ClientType = 4; // 终端类型
  1601. optional uint64 LoginID = 5; // 登陆账号
  1602. optional uint64 AccountID = 6; // 交易账号
  1603. optional uint64 OperatorID = 7; // 操作员账号ID
  1604. optional uint64 OrderID = 8; // 锁仓单据ID
  1605. }
  1606. // 通道撤销锁仓应答
  1607. message ChannelCancelLockRsp {
  1608. optional MessageHead Header = 1; // 消息头
  1609. optional int32 RetCode = 2; // 返回码
  1610. optional string RetDesc = 3; // 描述信息
  1611. optional uint64 OrderID = 4; // 一级生成的订单号
  1612. optional string OrderTime = 5; // 接收委托交易的时间
  1613. }
  1614. // 划转信息
  1615. message ChannelTransferInfo {
  1616. optional uint64 TransferAccountID = 1; // 划转账号
  1617. optional uint64 TransferQty = 2; // 划转数量
  1618. }
  1619. // 通道审核锁仓请求
  1620. message ChannelAuditLockReq {
  1621. optional MessageHead Header = 1;
  1622. optional uint64 OrderID = 2; // 锁仓单据ID
  1623. optional string ClientOrderTime = 3; // 管理端操作时间
  1624. optional uint64 AccountID = 4; // 交易账号
  1625. optional uint64 OperatorID = 5; // 操作员账号ID
  1626. optional uint32 OperatorType = 6; // 操作类型(通过或拒绝)
  1627. optional string Remark = 7; // 备注
  1628. repeated ChannelTransferInfo TransferInfos = 8; // 划转信息
  1629. }
  1630. // 通道审核锁仓应答
  1631. message ChannelAuditLockRsp {
  1632. optional MessageHead Header = 1; // 消息头
  1633. optional int32 RetCode = 2; // 返回码
  1634. optional string RetDesc = 3; // 描述信息
  1635. optional uint64 OrderID = 4; // 一级生成的订单号
  1636. }
  1637. // 通道解锁锁仓请求
  1638. message ChannelUnlockLockReq {
  1639. optional MessageHead Header = 1;
  1640. optional uint64 OrderID = 2; // 锁仓单据ID
  1641. optional string ClientOrderTime = 3; // 管理端操作时间
  1642. optional uint64 AccountID = 4; // 交易账号
  1643. optional uint64 OperatorID = 5; // 操作员账号ID
  1644. optional string Remark = 6; // 备注
  1645. }
  1646. // 通道解锁锁仓应答
  1647. message ChannelUnlockLockRsp {
  1648. optional MessageHead Header = 1; // 消息头
  1649. optional int32 RetCode = 2; // 返回码
  1650. optional string RetDesc = 3; // 描述信息
  1651. optional uint64 OrderID = 4; // 一级生成的订单号
  1652. }
  1653. // 场外成交核单请求
  1654. message ChannelOutsideTradeReq {
  1655. optional MessageHead Header = 1;
  1656. required uint64 OrderID = 2; // 单据ID
  1657. optional string ClientOrderTime = 3; // 管理端操作时间
  1658. optional uint64 AccountID = 4; // 交易账号
  1659. optional uint64 OperatorID = 5; // 操作员账号ID
  1660. required double TradePrice = 6; // 成交价
  1661. }
  1662. // 场外成交核单应答
  1663. message ChannelOutsideTradeRsp {
  1664. optional MessageHead Header = 1; // 消息头
  1665. optional int32 RetCode = 2; // 返回码
  1666. optional string RetDesc = 3; // 描述信息
  1667. optional uint64 OrderID = 4; // 单据ID
  1668. }
  1669. // 供货商冻结头寸增加请求
  1670. message VendorAddFreezePositionReq {
  1671. optional MessageHead Header = 1;
  1672. optional uint64 AccountID = 2; // 交易账号
  1673. optional uint32 GoodsID = 3; // 商品ID
  1674. optional uint64 AddQty = 4; // 增加数量
  1675. optional string ClientTicket = 5; // 客户端流水号
  1676. }
  1677. // 供货商冻结头寸增加响应
  1678. message VendorAddFreezePositionRsp {
  1679. optional MessageHead Header = 1; // 消息头
  1680. optional int32 RetCode = 2; // 返回码
  1681. optional string RetDesc = 3; // 描述信息
  1682. optional string ClientTicket = 4; // 客户端流水号
  1683. }
  1684. // 供货商解冻头寸审核通过请求
  1685. message VendorUnfreezeAuditPassReq {
  1686. optional MessageHead Header = 1;
  1687. optional uint64 ReqID = 2; // 申请单号
  1688. optional string ClientTicket = 3; // 客户端流水号
  1689. }
  1690. // 供货商解冻头寸审核通过响应
  1691. message VendorUnfreezeAuditPassRsp {
  1692. optional MessageHead Header = 1; // 消息头
  1693. optional int32 RetCode = 2; // 返回码
  1694. optional string RetDesc = 3; // 描述信息
  1695. optional uint64 ReqID = 4; // 申请单号
  1696. optional string ClientTicket = 5; // 客户端流水号
  1697. }
  1698. // 商品转移信息
  1699. message GoodsTransferInfo {
  1700. optional uint64 OutAccountID = 1; // 转出方交易账号
  1701. optional uint64 InAccountID = 2; // 转入方交易账号
  1702. optional uint32 GoodsID = 3; // 商品ID
  1703. optional uint64 Qty = 4; // 数量
  1704. optional double Price = 5; // 价格
  1705. optional double CostPrice = 6; // 成本价
  1706. optional uint32 IsFreeze = 7; // 是否冻结0:不冻结1:冻结
  1707. optional uint32 FreezeDays = 8; // 冻结天数
  1708. optional uint64 FreezePosQty = 9; // 冻结头寸数量(回购接口使用)
  1709. optional uint64 TradePosQty = 10; // 交易头寸数量(回购接口使用)
  1710. }
  1711. // 商品配售请求
  1712. message GoodsRationReq {
  1713. optional MessageHead Header = 1;
  1714. repeated GoodsTransferInfo RationInfos = 2; // 配售信息集合
  1715. optional string ClientTicket = 3; // 客户端流水号
  1716. }
  1717. // 商品配售响应
  1718. message GoodsRationRsp {
  1719. optional MessageHead Header = 1; // 消息头
  1720. optional int32 RetCode = 2; // 返回码
  1721. optional string RetDesc = 3; // 描述信息
  1722. optional string ClientTicket = 4; // 客户端流水号
  1723. }
  1724. // 商品转让请求
  1725. message GoodsTransferReq {
  1726. optional MessageHead Header = 1;
  1727. repeated GoodsTransferInfo TransferInfos = 2; // 转让信息集合
  1728. optional string ClientTicket = 3; // 客户端流水号
  1729. }
  1730. // 商品转让响应
  1731. message GoodsTransferRsp {
  1732. optional MessageHead Header = 1; // 消息头
  1733. optional int32 RetCode = 2; // 返回码
  1734. optional string RetDesc = 3; // 描述信息
  1735. optional string ClientTicket = 4; // 客户端流水号
  1736. }
  1737. // 商品回购请求
  1738. message GoodsBuyBackReq {
  1739. optional MessageHead Header = 1;
  1740. repeated GoodsTransferInfo BuyBackInfos = 2; // 回购信息集合
  1741. optional string ClientTicket = 3; // 客户端流水号
  1742. }
  1743. // 商品回购响应
  1744. message GoodsBuyBackRsp {
  1745. optional MessageHead Header = 1; // 消息头
  1746. optional int32 RetCode = 2; // 返回码
  1747. optional string RetDesc = 3; // 描述信息
  1748. optional string ClientTicket = 4; // 客户端流水号
  1749. }
  1750. // 商品提货请求
  1751. message GoodsPickupReq {
  1752. optional MessageHead Header = 1;
  1753. optional uint64 AccountID = 2; // 交易账号
  1754. optional uint32 GoodsID = 3; // 商品ID
  1755. optional uint64 Qty = 4; // 提货数量
  1756. optional string ReciverName = 5; // 提货人姓名
  1757. optional uint32 CardTypeId = 6; // 提货人证件类型
  1758. optional string CardNum = 7; // 提货人证件号码
  1759. optional string PhoneNum = 8; // 提货人联系方式
  1760. optional uint32 TakeMode = 9; // 提货方式-2:自提
  1761. optional string Address = 10; // 提货人详细地址
  1762. optional string TakeRemark = 11; // 提货备注
  1763. optional string ClientTicket = 12; // 客户端流水号
  1764. }
  1765. // 商品提货响应
  1766. message GoodsPickupRsp {
  1767. optional MessageHead Header = 1; // 消息头
  1768. optional int32 RetCode = 2; // 返回码
  1769. optional string RetDesc = 3; // 描述信息
  1770. optional string ClientTicket = 4; // 客户端流水号
  1771. }
  1772. // 止盈止损请求
  1773. message ChannelSPSLOrderReq {
  1774. optional MessageHead Header = 1;
  1775. optional uint32 ClientType = 2; // 终端类型
  1776. optional uint64 LoginID = 3; // 登陆账号
  1777. optional uint64 AccountID = 4; // 交易账号
  1778. optional uint32 GoodsID = 5; // 商品ID
  1779. optional uint32 MarketID = 6; // 市场ID
  1780. optional int32 ValidType = 7; // 有效类型:1-当日有效
  1781. optional uint32 OperateType = 8; // 操作类型:1-
  1782. optional uint32 OrderSrc = 9; // 单据委托来源-1:客户端
  1783. optional uint64 OrderQty = 10; // 委托数量
  1784. optional uint32 BuyOrSell = 11; // 买卖方向(买卖-0:买
  1785. optional uint64 RelatedID = 12; // 关联单号(撤单时填写)
  1786. optional double SpPrice = 13; // 止盈价格
  1787. optional double SlPrice = 14; // 止损价格
  1788. optional uint32 PriceType = 15; // 价格类型:1-
  1789. optional uint32 TriggerType = 16; // 触发条件:1-
  1790. }
  1791. // 止盈止损应答
  1792. message ChannelSPSLOrderRsp {
  1793. optional MessageHead Header = 1; // 消息头
  1794. optional int32 RetCode = 2; // 返回码
  1795. optional string RetDesc = 3; // 描述信息
  1796. optional uint64 OrderID = 4; // 一级生成的订单号
  1797. }
  1798. // 交易跟单请求
  1799. message ChannelFollowReq {
  1800. optional MessageHead Header = 1;
  1801. optional uint64 LoginID = 2; // 登陆账号
  1802. optional string GoodsCode = 3; // 商品代码
  1803. optional double OrderPrice = 4; // 委托价格
  1804. optional uint64 OrderQty = 5; // 委托数量
  1805. optional uint32 BuyOrSell = 6; // 买卖方向(买卖-0:买
  1806. optional uint32 ChannelBuildType = 7; // 下单类型(开平标志-0:无
  1807. optional uint32 CloseType = 8; // 平仓方式(平仓方式-0:无
  1808. optional uint32 PriceMode = 9; // 取价方式-1:市价
  1809. }
  1810. // 交易跟单应答
  1811. message ChannelFollowRsp {
  1812. optional MessageHead Header = 1; // 消息头
  1813. optional int32 RetCode = 2; // 返回码
  1814. optional string RetDesc = 3; // 描述信息
  1815. }
  1816. // 管理员清仓请求
  1817. message ManageClearPosReq {
  1818. optional MessageHead Header = 1;
  1819. optional uint64 AccountID = 2; // 交易账号
  1820. }
  1821. // 管理员清仓响应
  1822. message ManageClearPosRsp {
  1823. optional MessageHead Header = 1; // 消息头
  1824. optional int32 RetCode = 2; // 返回码
  1825. optional string RetDesc = 3; // 描述信息
  1826. optional uint64 AccountID = 4; // 交易账号
  1827. }
  1828. // 交易状态改变请求
  1829. message TradeStatusChangeReq {
  1830. optional MessageHead Header = 1;
  1831. repeated uint64 AccountID = 2; // 交易账号
  1832. optional uint32 TradeStatus = 3; // 交易状态,1-正常2-受限3-冻结
  1833. }
  1834. // 交易状态改变响应
  1835. message TradeStatusChangeRsp {
  1836. optional MessageHead Header = 1; // 消息头
  1837. optional int32 RetCode = 2; // 返回码
  1838. optional string RetDesc = 3; // 描述信息
  1839. }
  1840. // 账户操作子指令
  1841. message SubCommand {
  1842. optional uint32 CommandCode = 1; // 子指令操作码
  1843. optional bytes CommandStrings = 2; // 子指令流
  1844. }
  1845. // 账户操作指令请求
  1846. message AccountCommandReq {
  1847. optional MessageHead Header = 1;
  1848. optional uint64 UserId = 2; // 用户ID
  1849. optional uint64 AccountId = 3; // 交易账号
  1850. optional uint32 BusinessCode = 4; // 业务编号
  1851. optional uint64 RelatedOrderId = 5; // 关联单号
  1852. optional uint64 TradeId = 6; // 成交单号
  1853. repeated SubCommand SubCommands = 7; // 子指令集合
  1854. optional uint64 SerialNumber = 8; // 流水号
  1855. optional string TradeDate = 9; // 交易日
  1856. }
  1857. // 账户操作指令应答
  1858. message AccountCommandRsp {
  1859. optional MessageHead Header = 1; // 消息头
  1860. optional int32 RetCode = 2; // 返回码
  1861. optional string RetDesc = 3; // 描述信息
  1862. optional uint64 UserId = 4; // 用户ID
  1863. optional uint64 AccountId = 5; // 交易账号
  1864. optional uint32 BusinessCode = 6; // 业务编号
  1865. optional uint64 RelatedOrderId = 7; // 关联单号
  1866. optional uint64 TradeId = 8; // 成交单号
  1867. repeated SubCommand SubCommands = 9; // 子指令应答集合
  1868. optional uint64 SerialNumber = 10; // 流水号
  1869. optional string TradeDate = 11; // 交易日
  1870. }
  1871. // 资金操作指令
  1872. message FundOperationCmd {
  1873. optional uint64 AccountId = 1; // 交易账号
  1874. optional uint32 OperateType = 2; // 变更类型
  1875. optional double ChangeAmount = 3; // 变更金额
  1876. optional uint32 RelatedGoodsId = 4; // 关联商品
  1877. optional uint32 RelatedMarketId = 5; // 关联市场
  1878. optional uint64 SubOrderIndex = 6; // 子指令序号
  1879. optional uint32 OpAmountType = 7; // 操作资金类型
  1880. }
  1881. // 持仓操作指令
  1882. message PositionOperationCmd {
  1883. optional uint64 AccountId = 1; // 交易账号
  1884. optional uint32 GoodsId = 2; // 商品ID
  1885. optional uint32 BuyOrSell = 3; // 买卖方向
  1886. optional uint32 OperateType = 4; // 变更类型
  1887. optional int64 ChangeQty = 5; // 变更数量
  1888. optional double ChangeAmount = 6; // 变更金额
  1889. optional uint64 SubOrderIndex = 7; // 子指令序号
  1890. optional uint32 OpPositionType = 8; // 操作头寸类型
  1891. }
  1892. // 账户资金信息请求
  1893. message AccountFundInfoReq {
  1894. optional MessageHead Header = 1;
  1895. optional uint64 OrderId = 2; // 查询委托单号
  1896. optional uint64 AccountId = 3; // 查询资金账号
  1897. optional uint32 QueryBitMask = 4; // 查询位掩码
  1898. }
  1899. // 账户资金信息响应
  1900. message AccountFundInfoRsp {
  1901. optional MessageHead Header = 1; // 消息头
  1902. optional int32 RetCode = 2; // 返回码
  1903. optional string RetDesc = 3; // 描述信息
  1904. optional uint64 OrderId = 4; // 查询委托单号
  1905. optional uint64 AccountId = 5; // 查询资金账号
  1906. optional double AvailableMargin = 6; // 可用保证金,查询位掩码:1
  1907. optional double AvailableOutMoney = 7; // 可出资金,查询位掩码:2
  1908. optional int32 IsCleanAccount = 8; // 是否是干净账户,查询位掩码:4
  1909. }
  1910. // 仓单头寸操作指令
  1911. message WRPositionOperationCmd {
  1912. optional uint32 DeliveryGoodsId = 1; // 交割商品ID
  1913. optional uint32 BrandId = 2; // 品牌ID
  1914. optional uint32 QualityID = 3; // 品质ID
  1915. optional uint32 SpecID = 4; // 规格ID
  1916. optional uint32 WarehouseID = 5; // 仓库ID
  1917. optional uint32 DeliveryMonthID = 6; // 月份ID
  1918. optional uint32 OperateType = 7; // 变更类型
  1919. optional int64 ChangeQty = 8; // 变更数量
  1920. optional uint64 SubOrderIndex = 9; // 子指令序号
  1921. optional uint32 OpPositionType = 10; // 操作头寸类型
  1922. }
  1923. // 仓单订单头寸操作指令
  1924. message TradeWRPositionOperationCmd {
  1925. optional uint64 AccountId = 1; // 资金账号ID
  1926. optional uint32 DeliveryGoodsId = 2; // 交割商品ID
  1927. optional uint32 GoodsID = 3; // 交易合约ID
  1928. optional uint32 BrandId = 4; // 品牌ID
  1929. optional uint32 QualityID = 5; // 品质ID
  1930. optional uint32 SpecID = 6; // 规格ID
  1931. optional uint32 WarehouseID = 7; // 仓库ID
  1932. optional uint32 DeliveryMonthID = 8; // 月份ID
  1933. optional uint32 OperateType = 9; // 变更类型
  1934. optional int64 ChangeQty = 10; // 变更数量
  1935. optional uint64 SubOrderIndex = 11; // 子指令序号
  1936. optional uint32 OpPositionType = 12; // 操作头寸类型
  1937. }
  1938. // 仓单订单头寸汇总查询指令
  1939. message TradeWRPositionQueryCmd {
  1940. optional uint64 AccountId = 1; // 资金账号ID
  1941. optional uint32 GoodsID = 2; // 交易合约ID
  1942. optional int64 AvailableQty = 3; // 可用数量
  1943. }
  1944. // 积分头寸操作指令
  1945. message ScorePositionOperationCmd {
  1946. optional uint64 ScoreTypeId = 1; // 积分类型ID
  1947. optional uint32 OperateType = 2; // 变更类型
  1948. optional int64 ChangeScore = 3; // 变更积分
  1949. optional uint64 SubOrderIndex = 4; // 子指令序号
  1950. optional uint32 OpPositionType = 5; // 操作头寸类型
  1951. }
  1952. // 帐户风控操作指令
  1953. message RiskCtrlOperationCmd {
  1954. optional uint64 AccountId = 1; // 资金账号ID
  1955. optional uint64 RelatedId = 2; // 关联ID
  1956. optional uint32 RelatedType = 3; // 关联类型
  1957. optional uint32 OperateType = 4; // 变更类型
  1958. optional int32 RiskMode = 5; // 风控模式
  1959. optional double TipLine = 6; // 预警线
  1960. optional double WarningLine = 7; // 禁开线
  1961. optional double StopLine = 8; // 止损线
  1962. optional double RecoveryLine = 9; // 恢复线
  1963. optional double TotalAmount = 10; // 总金额
  1964. optional double InvestAmount = 11; // 投资金额
  1965. }
  1966. // 外部账户操作指令请求
  1967. message ExAccountCommandReq {
  1968. optional MessageHead Header = 1;
  1969. optional uint64 UserId = 2; // 用户ID
  1970. optional uint64 AccountId = 3; // 交易账号
  1971. optional uint32 BusinessCode = 4; // 业务编号
  1972. optional uint64 RelatedOrderId = 5; // 关联单号
  1973. optional uint64 TradeId = 6; // 成交单号
  1974. repeated SubCommand SubCommands = 7; // 子指令集合
  1975. }
  1976. // 外部账户操作指令应答
  1977. message ExAccountCommandRsp {
  1978. optional MessageHead Header = 1; // 消息头
  1979. optional int32 RetCode = 2; // 返回码
  1980. optional string RetDesc = 3; // 描述信息
  1981. optional uint64 UserId = 4; // 用户ID
  1982. optional uint64 AccountId = 5; // 交易账号
  1983. optional uint32 BusinessCode = 6; // 业务编号
  1984. optional uint64 RelatedOrderId = 7; // 关联单号
  1985. optional uint64 TradeId = 8; // 成交单号
  1986. repeated SubCommand SubCommands = 9; // 子指令应答集合
  1987. }
  1988. // 资金操作指令
  1989. message ExFundOperationCmd {
  1990. optional uint64 AccountId = 1; // 交易账号
  1991. optional uint32 OperateType = 2; // 变更类型
  1992. optional double ChangeAmount = 3; // 变更金额
  1993. optional uint32 RelatedGoodsId = 4; // 关联商品
  1994. optional uint32 RelatedMarketId = 5; // 关联市场
  1995. optional uint32 ExCurrencyID = 6; // 外部货币ID
  1996. optional double ExChangeAmount = 7; // 外部变更金额
  1997. optional double ExClosePL = 8; // 逐笔平仓明细(账户)
  1998. }
  1999. // 持仓操作指令
  2000. message ExPositionOperationCmd {
  2001. optional uint64 AccountId = 1; // 交易账号
  2002. optional uint32 GoodsId = 2; // 商品ID
  2003. optional uint32 BuyOrSell = 3; // 买卖方向
  2004. optional uint32 OperateType = 4; // 变更类型
  2005. optional int64 ChangeQty = 5; // 变更数量
  2006. optional double ChangeAmount = 6; // 变更金额
  2007. optional int64 OpenQty = 7; // 建仓数量(先平后建用)
  2008. optional int64 CloseQty = 8; // 平仓数量(先平后建用)
  2009. }
  2010. // 期权操作指令
  2011. message OpPositionOperationCmd {
  2012. optional uint64 AccountId = 1; // 交易账号
  2013. optional uint64 TradeId = 2; // 成交单号
  2014. optional uint32 BuyOrSell = 3; // 买卖方向
  2015. optional uint32 OperateType = 4; // 变更类型
  2016. optional int64 ChangeQty = 5; // 变更数量
  2017. optional uint64 SubOrderIndex = 6; // 子指令序号
  2018. optional uint32 OpPositionType = 7; // 操作头寸类型
  2019. }
  2020. // 外部账户分润请求
  2021. message ExAccountDivideReq {
  2022. optional MessageHead Header = 1;
  2023. optional uint64 RelatedOrderId = 2; // 关联单号
  2024. }
  2025. // 外部账户分润请求
  2026. message ExAccountDivideRsp {
  2027. optional MessageHead Header = 1; // 消息头
  2028. optional int32 RetCode = 2; // 返回码
  2029. optional string RetDesc = 3; // 描述信息
  2030. optional uint64 RelatedOrderId = 4; // 关联单号
  2031. }
  2032. // 资金清算更新操作指令
  2033. message SettleUpdateFundOperationCmd {
  2034. optional uint64 AccountID = 1; // 资金账户ID
  2035. optional double UserID = 2; // 用户ID
  2036. optional double CurrencyID = 3; // 货币ID
  2037. optional double Balance = 4; // 期初余额
  2038. optional double OriFreezeMargin = 5; // 期初冻结保证金
  2039. optional double OriUsedMargin = 6; // 期初占用保证金
  2040. optional double OriOtherFreezeMargin = 7; // 期初其他冻结保证金
  2041. optional double OriFreezeCharge = 8; // 期初手续费冻结
  2042. optional double OriMortgageCredit = 9; // 期初授信金额
  2043. optional double OriOtherCredit = 10; // 期初其它授信金额
  2044. optional double OriOutAmountFreeze = 11; // 期初出金冻结
  2045. optional double InAmount = 12; // 今日入金金额(包括三方入金)
  2046. optional double OutAmount = 13; // 今日出金金额(包括三方出金)
  2047. optional double PayCharge = 14; // 今日手续费支出
  2048. optional double ClosePL = 15; // 今日平仓盈亏
  2049. optional double CreditIncrease = 16; // 今日授信增加
  2050. optional double CreditDecrease = 17; // 今日授信减少
  2051. optional double OtherCreditIncrease = 18; // 今日其它授信增加
  2052. optional double OtherCreditDecrease = 19; // 今日其它授信减少
  2053. optional double TransferAmount = 20; // 今日划转金额
  2054. optional double OtherPay = 21; // 其他支出
  2055. optional double OtherIncome = 22; // 其他收入
  2056. optional double ThirdinAmount = 23; // 今日三方入金
  2057. optional double ThirdoutAmount = 24; // 今日三方出金
  2058. }
  2059. // 持仓清算更新操作指令
  2060. message SettleUpdatePositionOperationCmd {
  2061. optional uint64 AccountId = 1; // 交易账号
  2062. optional uint32 GoodsId = 2; // 商品ID
  2063. optional uint64 BuyPositionQty = 3; // 买期初持仓数量
  2064. optional double BuyHolderAmount = 4; // 买持仓期初总金额
  2065. optional uint64 BuyOpenTotalQty = 5; // 买开仓总数量
  2066. optional uint64 BuyCloseTotalQty = 6; // 买平仓总数量
  2067. optional uint64 SellPositionQty = 7; // 卖期初持仓数量
  2068. optional double SellHolderAmount = 8; // 卖持仓期初总金额
  2069. optional uint64 SellOpenTotalQty = 9; // 卖开仓总数量
  2070. optional uint64 SellCloseTotalQty = 10; // 卖平仓总数量
  2071. }
  2072. // 仓单头寸清算更新操作指令
  2073. message SettleUpdateWRPositionOperationCmd {
  2074. optional uint64 AccountID = 1; // 交易账号
  2075. optional uint32 DeliveryGoodsID = 2; // 交割商品ID
  2076. optional uint64 WRFactorTypeID = 3; // 仓单要素类型ID
  2077. optional uint32 BrandID = 4; // 品牌ID
  2078. optional uint32 QualityID = 5; // 品质ID
  2079. optional uint32 SpecID = 6; // 规格ID
  2080. optional uint32 WarehouseID = 7; // 仓库ID
  2081. optional uint32 DeliveryMonthID = 8; // 月份ID
  2082. optional uint64 IncreaseQty = 9; // 今日增加数量
  2083. optional uint64 DecreaseQty = 10; // 今日减少数量
  2084. }
  2085. // 订单仓单头寸清算更新操作指令
  2086. message SettleUpdateTWRPositionOperationCmd {
  2087. optional uint64 AccountID = 1; // 交易账号
  2088. optional uint32 GoodsID = 2; // 商品ID
  2089. optional uint32 DeliveryGoodsID = 3; // 交割商品ID
  2090. optional uint64 WRFactorTypeID = 4; // 仓单要素类型ID
  2091. optional uint32 BrandID = 5; // 品牌ID
  2092. optional uint32 QualityID = 6; // 品质ID
  2093. optional uint32 SpecID = 7; // 规格ID
  2094. optional uint32 WarehouseID = 8; // 仓库ID
  2095. optional uint32 DeliveryMonthID = 9; // 月份ID
  2096. optional uint64 IncreaseQty = 10; // 今日增加数量
  2097. optional uint64 DecreaseQty = 11; // 今日减少数量
  2098. }
  2099. // 积分头寸清算更新操作指令
  2100. message SettleUpdateScorePositionOperationCmd {
  2101. optional uint32 UserID = 1; // 用户ID
  2102. optional uint64 ScoreTypeId = 2; // 积分类型ID
  2103. optional uint32 OriScore = 3; // 期初积分
  2104. optional uint32 TodayIncrease = 4; // 今日增加
  2105. optional uint32 TodayDecrease = 5; // 今日减少
  2106. }
  2107. // 通用查询请求
  2108. message QueryCommonReq {
  2109. optional MessageHead Header = 1; // 消息头
  2110. optional QueryReqPageInfo PageInfo = 2; // 查询分页信息
  2111. optional string Statement = 3; // StatmentId
  2112. optional int32 StatementFlag = 4; // StatmentId查询标记,不填写默认为=
  2113. repeated ParamValue ParamValues = 5; // 参数列表
  2114. optional int32 ParamValuesFlag = 6; // 参数列表查询标记,不填写默认为=
  2115. }
  2116. // 通用查询参数信息
  2117. message ParamValue {
  2118. optional string Key = 1; // 参数名
  2119. optional string Value = 2; // 参数值
  2120. }
  2121. // 字段信息
  2122. message FieldInfo {
  2123. optional string FieldName = 1; // 字段名
  2124. optional string FieldType = 2; // 字段类型
  2125. }
  2126. // 行数据
  2127. message RowValue {
  2128. repeated string RowValues = 1; // 行数据
  2129. }
  2130. // 通用查询应答
  2131. message QueryCommonRsp_ {
  2132. optional int32 RowNum = 1; // 字段名
  2133. optional int32 ColumnNum = 2; // 字段类型
  2134. repeated FieldInfo FieldInfos = 3; // 字段信息
  2135. repeated RowValue RowValues = 4; // 行数据
  2136. }
  2137. message QueryCommonRsp {
  2138. optional MessageHead Header = 1; // 消息头
  2139. optional int32 RetCode = 2; // 返回码
  2140. optional string RetDesc = 3; // 描述信息
  2141. optional QueryRspPageInfo PageInfo = 4; // 查询结果分页信息
  2142. repeated QueryCommonRsp_ Rsps = 5; // 查询结果集
  2143. }
  2144. // 获取最后更新时间请求
  2145. message LastUpdateTimeReq {
  2146. optional MessageHead Header = 1;
  2147. }
  2148. // 获取最后更新时间应答
  2149. message LastUpdateTimeRsp {
  2150. optional MessageHead Header = 1; // 消息头
  2151. optional int32 RetCode = 2; // 返回码
  2152. optional string RetDesc = 3; // 描述信息
  2153. optional uint64 DirctionaryUTime = 4; // 枚举常量字典最后更新时间
  2154. optional uint64 ErrorcodeUTime = 5; // 错误码字典最后更新时间
  2155. optional uint64 MarketsUTime = 6; // 市场更新时间
  2156. optional uint64 GoodsUTime = 7; // 商品更新时间
  2157. optional uint64 ConfigUTime = 8; // 终端配置参数更新时间
  2158. optional uint64 RiskMsgUTime = 9; // 风险协议书更新时间
  2159. optional string TradeDate = 10; // 交易日;终端根据交易日获取市场的当日运行计划
  2160. optional uint64 MenuUTime = 11; // 菜单更新时间
  2161. optional uint64 DvGoodsUTime = 12; // 交割商品更新时间
  2162. }
  2163. // 市场查询请求
  2164. message MarketsQueryReq {
  2165. optional MessageHead Header = 1;
  2166. optional uint64 MarketsUTime = 2; // 市场更新时间
  2167. }
  2168. // 市场查询应答
  2169. message MarketsQueryRsp {
  2170. optional MessageHead Header = 1; // 消息头
  2171. optional int32 RetCode = 2; // 返回码
  2172. optional string RetDesc = 3; // 描述信息
  2173. repeated MarketsInfo MarketsList = 4; // 市场列表结果集
  2174. }
  2175. // 市场信息
  2176. message MarketsInfo {
  2177. optional uint32 MarketID = 1; // 市场id
  2178. optional string MarketName = 2; // 市场名称
  2179. optional uint32 TradeMode = 3; // 交易模式枚举类型
  2180. optional uint32 TradeProperty = 4; // 收益权,所有权
  2181. optional uint32 PremiumQuoteMode = 5; // 权利金报价
  2182. optional uint32 AuctionWRType = 6; // 竞拍仓单类型
  2183. optional uint32 SellListingAuditFlag = 7; // 卖挂牌是否需要审核(仓单贸易)
  2184. optional uint32 hasrebate = 8; // 是否返利
  2185. optional double rebateratio = 9; // 返利比例
  2186. }
  2187. // 商品查询请求
  2188. message GoodsQueryReq {
  2189. optional MessageHead Header = 1;
  2190. optional uint64 GoodsUTime = 2; // 商品更新时间
  2191. }
  2192. // 商品查询应答
  2193. message GoodsQueryRsp {
  2194. optional MessageHead Header = 1; // 消息头
  2195. optional int32 RetCode = 2; // 返回码
  2196. optional string RetDesc = 3; // 描述信息
  2197. repeated GoodsInfo GoodsList = 4; // 商品列表
  2198. }
  2199. // 商品信息
  2200. message GoodsInfo {
  2201. optional uint32 GoodsId = 1; // 商品Id
  2202. optional string GoodsCode = 2; // 商品代码
  2203. optional string GoodsName = 3; // 商品名称
  2204. optional uint32 MarketID = 4; // 商品所属市场ID
  2205. optional string ListingDate = 5; // 上市时间
  2206. optional string LastTradeDate = 6; // 最后交易日期
  2207. optional string DelistingDate = 7; // 商品退市时间
  2208. optional uint32 DecimalPlace = 8; // 价格小数位
  2209. optional string Currency = 9; // 报价货币
  2210. optional double AgreeUnit = 10; // 每手乘数(合约单位)
  2211. optional string GoodsUnit = 11; // 商品单位,直接返回单位值
  2212. optional uint32 DeliveryFlag = 12; // 交割标志0:不交割1:要交割
  2213. optional uint32 DeliveryGoodsId = 13; // 交割商品Id
  2214. optional string DeliveryGoodsCode = 14; // 交割商品代码
  2215. optional string DeliveryGoodsName = 15; // 交割商品名称
  2216. optional string DeliveryGoodsUnit = 16; // 交割商品单位
  2217. optional uint32 XDeliveryRatio = 17; // 主辅商品比的主商品手数
  2218. optional uint32 PDeliveryRatio1 = 18; // 主辅商品比的辅助商品手数1
  2219. optional uint32 PDeliveryRatio2 = 19; // 主辅商品比的辅助商品手数2
  2220. optional uint32 MinDeliveryQty = 20; // 最小交割手数
  2221. optional uint32 P1Type = 21; // 1-商品价格(goodsid有值)2-固定值(value填值)
  2222. optional uint32 P2Type = 22; // 辅助合约2价格方式
  2223. optional double P1value = 23; // 辅助合约价格
  2224. optional double P2value = 24; // 辅助合约2价格
  2225. optional uint32 PGoodsID1 = 25; // 辅助交易商品ID
  2226. optional uint32 PGoodsID2 = 26; // 辅助商品2
  2227. optional string BeginDate = 27; // 交割起始日期
  2228. optional string EndDate = 28; // 交割结束日期
  2229. optional uint32 Deliverymode = 29; // 交割方式
  2230. optional uint32 Performancemode = 30; // 履约方式
  2231. optional uint32 Optiontype = 31; // 期权类型
  2232. optional uint64 Pricefator = 32; // 价格取整系数
  2233. optional uint64 Stepvalue = 33; // 档位间矩
  2234. optional uint32 Cuppricegear = 34; // 看涨向上档位
  2235. optional uint32 Cdownpricegear = 35; // 看涨向下档位
  2236. optional uint32 Puppricegear = 36; // 看跌向上档位
  2237. optional uint32 Pdownpricegear = 37; // 看跌向下档位
  2238. optional uint32 Expiretype = 38; // 行权日类型
  2239. optional uint32 Expirecycle = 39; // 行权周期
  2240. optional string Expiredate = 40; // 行权日
  2241. repeated GoodsRule GoodsRuleList = 41; // 商品规则列表
  2242. repeated GoodsMarginConfig GoodsMarginConfigList = 42; // 分类保证金列表
  2243. repeated PriceMove GoodsPMList = 43; // 商品包含要素列表
  2244. optional uint32 Rratio = 44; // 兑换系数R
  2245. optional uint32 DeliveryPriceRule = 45; // 1:申报时价格2:成交时价格
  2246. optional uint32 DelistingMode = 46; // 1:退市平仓2:退市交收3:不处理(仅期权)
  2247. optional uint32 GoodsStatus = 47; // 3:上市7:待退市
  2248. optional uint32 QuoteMinUnit = 48; // 行情最小变动单位
  2249. optional uint32 PremiumAutoMode = 49; // 权利金自动方式1:比率2.固定
  2250. optional double PremiumAutoValue = 50; // 权利金自动值
  2251. optional uint32 GroupID = 51; // 所属商品组id
  2252. optional uint32 IsBuyLimited = 52; // 是否限制建仓量
  2253. optional uint32 ClosePriceMode = 53; // 强平价格方式
  2254. optional double ClosePriceParam = 54; // 强平最新价浮动比例
  2255. optional uint32 QtyDecimalPlace = 55; // 成交量小数位
  2256. optional uint32 GoodsQuoteType = 56; // 合约报价类型
  2257. optional uint32 GoodsCurrencyid = 57; // 合约货币ID
  2258. optional uint32 Currencyid = 58; // 报价货币ID
  2259. optional uint32 Lotsize = 59; // 最小交易数量
  2260. optional uint32 QuoteGear = 60; // 行情档位(1-10)
  2261. optional uint32 ShowBrokerFlag = 61; // 是否显示买卖经纪盘-0:不显示
  2262. optional uint32 GoodsType = 62; // 商品类型
  2263. optional uint32 InnerDealMode = 63; // 内部成交方式[通道交易]-1:净头寸
  2264. }
  2265. // 枚举常量字典查询请求
  2266. message DictionaryQueryReq {
  2267. optional MessageHead Header = 1;
  2268. optional uint64 DirctionaryUTime = 2; // 枚举常量字典最后更新时间
  2269. }
  2270. // 枚举常量字典查询应答
  2271. message DictionaryQueryRsp {
  2272. optional MessageHead Header = 1; // 消息头
  2273. optional int32 RetCode = 2; // 返回码
  2274. optional string RetDesc = 3; // 描述信息
  2275. repeated DictionaryInfo DictionaryList = 4; // 枚举列表
  2276. }
  2277. // 枚举信息
  2278. message DictionaryInfo {
  2279. optional string FieldCode = 1; // 枚举类型代码
  2280. optional string FieldName = 2; // 枚举类型名称
  2281. optional string Key = 3; // 枚举值
  2282. optional string Value = 4; // 枚举名称
  2283. optional string Parma1 = 5; // 币种小数位
  2284. }
  2285. // 错误码字典查询请求
  2286. message ErrorCodeQueryReq {
  2287. optional MessageHead Header = 1;
  2288. optional uint64 ErrorcodeUTime = 2; // 错误码字典最后更新时间
  2289. }
  2290. // 错误码字典查询应答
  2291. message ErrorCodeQueryRsp {
  2292. optional MessageHead Header = 1; // 消息头
  2293. optional int32 RetCode = 2; // 返回码
  2294. optional string RetDesc = 3; // 描述信息
  2295. repeated ErrorCodeInfo ErrorCodeList = 4; // 错误码列表
  2296. }
  2297. // 错误码信息
  2298. message ErrorCodeInfo {
  2299. optional string ErrorCode = 1; // 错误码
  2300. optional string ErrorMsg = 2; // 提示信息
  2301. }
  2302. // 终端系统参数查询请求
  2303. message ConfigQueryReq {
  2304. optional MessageHead Header = 1;
  2305. optional uint64 ConfigUTime = 2; // 终端配置参数更新时间
  2306. }
  2307. // 终端系统参数查询应答
  2308. message ConfigQueryRsp {
  2309. optional MessageHead Header = 1; // 消息头
  2310. optional int32 RetCode = 2; // 返回码
  2311. optional string RetDesc = 3; // 描述信息
  2312. repeated ConfigInfo ConfigInfoList = 4; // 参数列表
  2313. }
  2314. // 参数信息
  2315. message ConfigInfo {
  2316. optional string ParamCode = 1; // 参数代码
  2317. optional string ParamName = 2; // 参数名称
  2318. optional string ParamValue = 3; // 参数值
  2319. optional string ParamRemark = 4; // 说明
  2320. }
  2321. // 市场运行计划查询请求
  2322. message MarketRunQueryReq {
  2323. optional MessageHead Header = 1;
  2324. optional string TradeDate = 2; // 交易日
  2325. }
  2326. // 市场运行计划查询应答
  2327. message MarketRunQueryRsp {
  2328. optional MessageHead Header = 1; // 消息头
  2329. optional int32 RetCode = 2; // 返回码
  2330. optional string RetDesc = 3; // 描述信息
  2331. optional string TradeDate = 4; // 交易日
  2332. repeated MarketRun MarketRunList = 5; // 市场及其日计划列表
  2333. }
  2334. // 市场及其日计划信息
  2335. message MarketRun {
  2336. optional uint32 MarketId = 1; // 市场id
  2337. repeated DayRun DayRunList = 2; // 市场日运行计划表
  2338. }
  2339. // 市场日运行计划信息
  2340. message DayRun {
  2341. optional uint32 TradeWeekDay = 1; // 交易归属日,星期几
  2342. optional uint32 RunStep = 2; // 运行阶段
  2343. optional uint32 StartWeekDay = 3; // 起始周几
  2344. optional string StartTime = 4; // 起始时间
  2345. optional uint32 EndWeekDay = 5; // 结束周几
  2346. optional string EndTime = 6; // 结束时间
  2347. }
  2348. // 风险协议书查询请求
  2349. message RiskTipQueryReq {
  2350. optional MessageHead Header = 1;
  2351. optional uint64 RiskMsgUTime = 2; // 风险协议书更新时间
  2352. }
  2353. // 风险协议书查询应答
  2354. message RiskTipQueryRsp {
  2355. optional MessageHead Header = 1; // 消息头
  2356. optional int32 RetCode = 2; // 返回码
  2357. optional string RetDesc = 3; // 描述信息
  2358. optional string TipTitle = 4; // 标题
  2359. optional string TipMsg = 5; // 内容
  2360. }
  2361. // 登录查询请求
  2362. message LoginQueryReq {
  2363. optional MessageHead Header = 1;
  2364. optional uint64 LoginID = 2; // 登陆账号id
  2365. optional string QueryItem = 3; // 不填返回全部结果集,填写后表示按需查询,多个以“,”隔开1-账号信息2-资金账户列表3-
  2366. }
  2367. // 登录查询应答
  2368. message LoginQueryRsp {
  2369. optional MessageHead Header = 1; // 消息头
  2370. optional int32 RetCode = 2; // 返回码
  2371. optional string RetDesc = 3; // 描述信息
  2372. optional AccountInfo AccountInfo = 4; // 账号信息
  2373. repeated TAAccountAll TAAccountList = 5; // 资金账户列表
  2374. repeated GoodsRuleAndFee GoodsRuleAndFeeList = 6; // 商品交易规则和费用规则列表
  2375. repeated ParamValue ParamValues = 7; // 时间戳集合
  2376. optional uint32 ServerLastNoticeId = 8; // 最大通知id
  2377. }
  2378. // 账户信息
  2379. message AccountInfo {
  2380. optional uint32 UserID = 1; // 用户ID
  2381. optional uint32 UserType = 2; // 账户类型
  2382. optional uint32 ParentUserID = 3; // 所属机构ID
  2383. optional string AccountName = 4; // 账户名称
  2384. optional string CustomerName = 5; // 用户名称(签约用)
  2385. optional uint32 UserInfoType = 6; // 1:个人2:企业(签约用)
  2386. optional uint32 CardTypeID = 7; // 证件类型(签约用)
  2387. optional string CardNum = 8; // 证件号码(签约用)
  2388. optional string Mobile = 9; // 手机号码(签约用)
  2389. optional uint32 HasAuth = 10; // 是否已实名认证-0:未认证
  2390. optional uint64 MemberUserid = 11; // 所属会员
  2391. }
  2392. // 账户相关信息
  2393. message TAAccountAll {
  2394. optional TaAccountInfo TaAccountInfo = 1; // 资金账户信息
  2395. repeated TradePosition TradePositionList = 2; // 持仓头寸列表
  2396. repeated uint32 MarketsIdList = 3; // 市场id数组
  2397. }
  2398. // 资金账户信息
  2399. message TaAccountInfo {
  2400. optional uint64 AccountId = 1; // 账户id
  2401. optional uint32 TradeStatus = 2; // 交易状态
  2402. optional string Currency = 3; // 币种
  2403. optional uint32 IsMain = 4; // 是否母账户
  2404. optional uint64 ParentAccountID = 5; // 所属母账户
  2405. optional uint32 TAAccountType = 6; // 内、外部
  2406. optional uint64 RelatedMainAccountID = 7; // 关联账户
  2407. optional double Balance = 8; // 期初余额
  2408. optional double CurrentBalance = 9; // 期末余额
  2409. optional double UsedMargin = 10; // 占用保证金
  2410. optional double FreezeMargin = 11; // 冻结保证金
  2411. optional double OtherFreezeMargin = 12; // 其他冻结保证金
  2412. optional double FreezeCharge = 13; // 手续费冻结
  2413. optional double MortgageCredit = 14; // 授信金额
  2414. optional double OtherCredit = 15; // 其它授信金额
  2415. optional double OutAmountFreeze = 16; // 出金冻结
  2416. optional double InAmount = 17; // 今日入金
  2417. optional double OutAmount = 18; // 今日出金
  2418. optional double PayCharge = 19; // 今日手续费支出
  2419. optional double ClosePL = 20; // 今日平仓盈亏
  2420. optional double CreditIncrease = 21; // 今日授信增加
  2421. optional double CreditDecrease = 22; // 今日授信减少
  2422. optional double OtherCreditIncrease = 23; // 今日其它授信增加
  2423. optional double OtherCreditDecrease = 24; // 今日其它授信减少
  2424. optional double TransferAmount = 25; // 今日划转金额
  2425. optional double OtherPay = 26; // 其他支出
  2426. optional double OtherIncome = 27; // 其他收入
  2427. optional double OutThreshold = 28; // 出金阀值
  2428. optional uint32 IsMarketAccount = 29; // 是否机构接单账号0:不是1:是
  2429. optional uint32 Currencyid = 30; // 报价货币ID
  2430. }
  2431. // 持仓头寸信息
  2432. message TradePosition {
  2433. optional uint32 GoodsId = 1; // 商品id
  2434. optional uint32 BuyFrozenQty = 2; // 买持仓冻结
  2435. optional uint32 BuyOtherFrozenQty = 3; // 买持仓其他冻结
  2436. optional uint32 BuyCurPositionQty = 4; // 买当前持仓总数量
  2437. optional double BuyCurHolderAmount = 5; // 买当前持仓总金额
  2438. optional uint32 SellFrozenQty = 6; // 卖持仓冻结
  2439. optional uint32 SellOtherFrozenQty = 7; // 卖持仓其他冻结
  2440. optional uint32 SellCurPositionQty = 8; // 卖当前持仓总数量
  2441. optional double SellCurHolderAmount = 9; // 卖当前持仓总金额
  2442. }
  2443. // 商品规则和费用
  2444. message GoodsRuleAndFee {
  2445. optional int32 GoodsID = 1; // 商品ID
  2446. optional int32 CustomerTypeID = 2; // 保证金类别枚举值
  2447. repeated GoodsRule GoodsRuleList = 3; // 商品规则列表
  2448. }
  2449. // 商品规则类型
  2450. message GoodsRule {
  2451. optional int32 Ruleid = 1; // 规则id
  2452. optional int32 GoodsID = 2; // 商品ID
  2453. optional string RuleName = 3; // 规则名称
  2454. optional double ParamValue = 4; // 参数值
  2455. }
  2456. // 商品保证金信息
  2457. message GoodsMarginConfig {
  2458. optional uint32 GoodsID = 1; // 商品id
  2459. optional uint32 CustomerTypeID = 2; // 投资者客户类别
  2460. optional uint32 MarginAlgorithm = 3; // 保证金计算方式
  2461. optional double MarketMarginValue = 4; // 即市保证金值
  2462. optional double ReckonMarginValue = 5; // 结算保证金值
  2463. optional uint32 IsDefault = 6; // 是否默认0:否1:是
  2464. }
  2465. // 未读通知查询请求
  2466. message NoticeQueryReq {
  2467. optional MessageHead Header = 1;
  2468. optional uint64 LoginID = 2; // Uint64
  2469. optional uint32 LastNoticeId = 3; // 最后一条通知id
  2470. optional uint32 MsgType = 4; // 1:公告通知2:系统消息(风控)
  2471. }
  2472. // 未读通知查询应答
  2473. message NoticeQueryRsp {
  2474. optional MessageHead Header = 1; // 消息头
  2475. optional int32 RetCode = 2; // 返回码
  2476. optional string RetDesc = 3; // 描述信息
  2477. repeated NoticeInfo NoticeInfoList = 4; // 通知列表
  2478. }
  2479. // 未读通知查询应答
  2480. message NoticeInfo {
  2481. optional uint32 NoticeId = 1; // id
  2482. optional string NoticeTitle = 2; // 标题
  2483. optional string NoticeContent = 3; // 内容
  2484. optional uint64 NoticeTime = 4; // 发布时间,填计划发布时间
  2485. optional uint32 NoticeType = 5; // 类型
  2486. }
  2487. // 菜单查询
  2488. message FuncMenuReq {
  2489. optional MessageHead Header = 1;
  2490. optional uint64 MenuUTime = 2; // 菜单最后更新时间
  2491. }
  2492. // 菜单查询查询应答
  2493. message FuncMenuRsp {
  2494. optional MessageHead Header = 1; // 消息头
  2495. optional int32 RetCode = 2; // 返回码
  2496. optional string RetDesc = 3; // 描述信息
  2497. repeated FuncMenu FuncMenuList = 4; // 菜单列表
  2498. }
  2499. // 菜单权限
  2500. message FuncMenu {
  2501. optional string FuncMenuName = 1; // 功能菜单名称
  2502. optional string FuncMenuCode = 2; // 功能菜单代码
  2503. optional string Parentfuncmenucode = 3; // 父级菜单代码
  2504. repeated FuncMenu SonMenus = 4; // 子菜单
  2505. }
  2506. // 交割商品查询
  2507. message DeliveryGoodsQueryReq {
  2508. optional MessageHead Header = 1;
  2509. optional uint64 DeliveryGoodsUTime = 2; // 交割商品更新时间
  2510. }
  2511. // 交割商品应答
  2512. message DeliveryGoodsQueryRsp {
  2513. optional MessageHead Header = 1; // 消息头
  2514. optional int32 RetCode = 2; // 返回码
  2515. optional string RetDesc = 3; // 描述信息
  2516. repeated DeliveryGoodsInfo DeliveryGoodsList = 4; // 交割商品结果集
  2517. }
  2518. // 交割商品信息
  2519. message DeliveryGoodsInfo {
  2520. optional uint32 DeliveryGoodsID = 1; // 交割商品ID
  2521. optional string DeliveryGoodsCode = 2; // 交割商品代码
  2522. optional string DeliveryGoodsName = 3; // 交割商品名称
  2523. optional string GoodsUnit = 4; // 交割商品单位
  2524. optional uint32 StandardQty = 5; // 标准数量
  2525. optional double StandardQtyRange = 6; // 标准数量偏差范围
  2526. optional uint32 AuditFlag = 7; // 交割是否需要审核
  2527. repeated PriceMove DeliveryGoodsPMList = 8; // 可选要素列表
  2528. optional uint32 DeliveryGoodsType = 9; // 交割商品类型
  2529. optional uint32 IsSplit = 10; // 是否拆分
  2530. optional uint32 AgreeUnit = 11; // 合约单位
  2531. optional uint32 QtyDecimalPlace = 12; // 成交量小数位
  2532. }
  2533. // 可点选仓单查询
  2534. message DeliveryWRReq {
  2535. optional MessageHead Header = 1;
  2536. optional uint32 GoodId = 2; // 商品id
  2537. optional uint32 DeliveryGoodsId = 3; // 交割商品id
  2538. optional uint32 TradeProperty = 4; // 交易属性
  2539. }
  2540. // 可点选仓单应答
  2541. message DeliveryWRRsp {
  2542. optional MessageHead Header = 1; // 消息头
  2543. optional int32 RetCode = 2; // 返回码
  2544. optional string RetDesc = 3; // 描述信息
  2545. repeated GoodsDeliveryPrice GoodsDeliveryPriceList = 4; // 商品所有升贴水(商品价差列表)
  2546. repeated UserTradeWRPosition AllTradeWRPositionList = 5; // 可点选仓单列表(订单仓单头寸)
  2547. }
  2548. // 商品价差信息
  2549. message GoodsDeliveryPrice {
  2550. optional string PriceMoveType = 1; // 升贴水类型
  2551. optional uint32 PriceMoveID = 2; // 类型对应id
  2552. optional double PriceMoveValue = 3; // 升贴水值
  2553. optional string PriceMoveDesc = 4; // 描述
  2554. }
  2555. // 可点选用户仓单信息
  2556. message UserTradeWRPosition {
  2557. optional uint64 WRUserID = 1; // 持有人ID
  2558. optional string WRUserName = 2; // 持有人名称(机构名称)
  2559. optional uint64 AccountID = 3; // 资金账号ID
  2560. optional uint32 DeliveryGoodsID = 4; // 交割商品ID
  2561. optional uint32 RestQty = 5; // 可点数量
  2562. repeated TradeWRPositionDetail TradeWRPositionDetailList = 6; // 仓单列表(订单仓单头寸)
  2563. }
  2564. // 可点选仓单明细
  2565. message TradeWRPositionDetail {
  2566. optional uint64 WRPositionID = 1; // 仓单头寸ID
  2567. optional uint32 BrandID = 2; // 品牌ID
  2568. optional uint32 QualityID = 3; // 品质ID
  2569. optional uint32 SpecID = 4; // 规格ID
  2570. optional uint32 WarehouseID = 5; // 仓库ID
  2571. optional uint32 DeliveryMonthID = 6; // 月份ID(都是即期的)
  2572. optional uint32 RestQty = 7; // 剩余数量
  2573. }
  2574. // 要素信息
  2575. message PriceMove {
  2576. optional uint32 PriceMoveType = 1; // 要素类型
  2577. optional uint32 PriceMoveID = 2; // 要素id
  2578. optional string PriceMoveDesc = 3; // 要素名称
  2579. }
  2580. // 已签约信息查询请求
  2581. message BankSignReq {
  2582. optional MessageHead Header = 1;
  2583. optional uint64 AccountID = 2; // 资金账户
  2584. optional string CusBankid = 3; // 托管银行ID
  2585. }
  2586. // 已签约信息查询响应
  2587. message BankSignRsp {
  2588. optional MessageHead Header = 1; // 消息头
  2589. optional int32 RetCode = 2; // 返回码
  2590. optional string RetDesc = 3; // 描述信息
  2591. optional uint64 AccountID = 4; // 资金账户
  2592. optional string CusBankid = 5; // 托管银行ID
  2593. repeated BankAccountSign BankSign = 6; // 已签约信息
  2594. }
  2595. // 已签约信息
  2596. message BankAccountSign {
  2597. optional uint64 AccountCode = 1; // 资金账户
  2598. optional string CusBankID = 2; // 托管银行ID
  2599. optional uint32 SignStatus = 3; // 签约状态
  2600. optional string Currency = 4; // 币种
  2601. optional string BankID = 5; // 开户行id
  2602. optional string BankAccountNo = 6; // 银行卡
  2603. optional string BankAccountName = 7; // 开户人名称
  2604. optional uint32 CardType = 8; // 证件类型
  2605. optional string CardNo = 9; // 证件号码
  2606. optional string MobilePhone = 10; // 手机号码
  2607. optional string BankName = 11; // 开户银行名称
  2608. optional string CusBankName = 12; // 托管银行名称
  2609. optional string AccountNameDisp = 13; // 未加密账户名称
  2610. optional string BankAccountNameDisp = 14; // 未加密开户人名称
  2611. optional string CardNoDisp = 15; // 未加密证件号码
  2612. optional string MobilePhoneDisp = 16; // 未加密手机号码
  2613. optional string CusBankTradeDate = 17; // 托管银行交易日期
  2614. optional string ExtendInfo = 18; // JSON格式扩展信息
  2615. optional uint32 CanModifyPhone = 19; // 是否能修改手机
  2616. optional string Bankchildaccount = 20; // 银行子账户
  2617. optional string OpenBankNo = 21; // 支行号
  2618. }
  2619. // 加密信息通用查询请求
  2620. message QueryCommonSenReq {
  2621. optional MessageHead Header = 1; // 消息头
  2622. optional QueryReqPageInfo PageInfo = 2; // 查询分页信息
  2623. optional string Statement = 3; // StatmentId
  2624. optional int32 StatementFlag = 4; // StatmentId查询标记,不填写默认为=
  2625. repeated ParamValue ParamValues = 5; // 参数列表
  2626. optional int32 ParamValuesFlag = 6; // 参数列表查询标记,不填写默认为=
  2627. repeated string SenNames = 7; // 加密字段名‘,’分隔
  2628. optional int32 SenNamesFlag = 8; // 加密字段名‘,’分隔查询标记,不填写默认为=
  2629. }
  2630. // 加密信息通用查询应答
  2631. message QueryCommonSenRsp_ {
  2632. optional int32 RowNum = 1; // 字段名
  2633. optional int32 ColumnNum = 2; // 字段类型
  2634. repeated FieldInfo FieldInfos = 3; // 字段信息
  2635. repeated RowValue RowValues = 4; // 行数据
  2636. }
  2637. message QueryCommonSenRsp {
  2638. optional MessageHead Header = 1; // 消息头
  2639. optional int32 RetCode = 2; // 返回码
  2640. optional string RetDesc = 3; // 描述信息
  2641. optional QueryRspPageInfo PageInfo = 4; // 查询结果分页信息
  2642. repeated QueryCommonSenRsp_ Rsps = 5; // 查询结果集
  2643. }
  2644. // 外部交易所查询请求
  2645. message ExternalExchangeReq {
  2646. optional MessageHead Header = 1;
  2647. optional uint64 ExUTime = 2; // 更新时间
  2648. }
  2649. // 外部交易所查询应答
  2650. message ExternalExchangeRsp {
  2651. optional MessageHead Header = 1; // 消息头
  2652. optional int32 RetCode = 2; // 返回码
  2653. optional string RetDesc = 3; // 描述信息
  2654. repeated ExternalExchange ExternalExchangeList = 4; // 外部交易所列表
  2655. }
  2656. // 外部交易所信息
  2657. message ExternalExchange {
  2658. optional uint32 AutoID = 1; // 外部交易所id
  2659. optional string ExExchangeCode = 2; // 外部交易所代码
  2660. optional string ExExchangeName = 3; // 外部交易所名称
  2661. optional string IsMarketPrice = 4; // 是否支持市价0:不支持1:支持
  2662. }
  2663. // 商品组查询请求
  2664. message GoodsGroupReq {
  2665. optional MessageHead Header = 1;
  2666. optional uint64 GoodsGroupUTime = 2; // 更新时间
  2667. }
  2668. // 商品组查询应答
  2669. message GoodsGroupRsp {
  2670. optional MessageHead Header = 1; // 消息头
  2671. optional int32 RetCode = 2; // 返回码
  2672. optional string RetDesc = 3; // 描述信息
  2673. repeated GoodsGroup GoodsGroupList = 4; // 商品组(品种)列表
  2674. }
  2675. // 商品组信息
  2676. message GoodsGroup {
  2677. optional uint32 GoodsGroupID = 1; // 商品组id
  2678. optional string GoodsGroupName = 2; // 商品组名称
  2679. optional uint32 MarketID = 3; // 市场id
  2680. optional uint32 ExExchangeID = 4; // 外部交易所id
  2681. optional uint32 CanShort = 5; // 是否允许做空[通道交易]-0:不能做空
  2682. }
  2683. // 行情源分组时段查询请求
  2684. message QuotesourceGroupRunQueryReq {
  2685. optional MessageHead Header = 1;
  2686. optional string TradeDate = 2; // 交易日
  2687. }
  2688. // 行情源分组时段查询应答
  2689. message QuotesourceGroupRunQueryRsp {
  2690. optional MessageHead Header = 1; // 消息头
  2691. optional int32 RetCode = 2; // 返回码
  2692. optional string RetDesc = 3; // 描述信息
  2693. optional string TradeDate = 4; // 交易日
  2694. repeated QuotesourceGroupRun QuotesourceGroupRunList = 5; // 市场及其日计划列表
  2695. }
  2696. // 行情源分组及其日计划信息
  2697. message QuotesourceGroupRun {
  2698. optional uint32 QuotesourceGroupId = 1; // 行情源分组id
  2699. optional uint32 GoodsGroupId = 2; // 商品组id
  2700. optional uint32 MarketId = 3; // 市场id
  2701. repeated DayRun DayRunList = 4; // 行情源分组日运行计划表
  2702. }
  2703. // 交割申报请求
  2704. message DeliveryOrderReq {
  2705. optional MessageHead Header = 1;
  2706. optional string ClientSerialNo = 2; // 客户端流水号
  2707. optional string ClientOrderTime = 3; // 客户端委托时间
  2708. optional uint32 ClientType = 4; // 终端类型
  2709. optional uint64 AccountID = 5; // 交易账号
  2710. optional uint32 XGoodsID = 6; // 主商品ID(交割合约)
  2711. optional uint32 PGoodsID = 7; // 辅助商品ID(辅助合约)
  2712. optional uint32 P2GoodsID = 8; // 辅助商品ID(辅助合约2)
  2713. optional uint32 DeliveryGoodsID = 9; // 交割商品ID
  2714. optional uint64 XQty = 10; // 交割合约数量
  2715. optional uint64 PQty = 11; // 辅助合约数量
  2716. optional uint64 P2Qty = 12; // 辅助合约2数量
  2717. optional uint64 DeliveryQty = 13; // 交割商品仓单数量
  2718. optional uint32 OperateType = 14; // 操作类型:
  2719. optional uint32 OrderSrc = 15; // 单据来源
  2720. optional uint32 OperatorID = 16; // 操作员账号ID
  2721. optional DeliveryOrderDetail DeliveryOrderDetail = 17; // 关联仓单头寸
  2722. optional uint32 TakeMode = 18; // 提货方式
  2723. optional string ReceiverAddress = 19; // 提货地址
  2724. }
  2725. // 交割申报应答
  2726. message DeliveryOrderRsp {
  2727. optional MessageHead Header = 1; // 消息头
  2728. optional int32 RetCode = 2; // 返回码
  2729. optional string RetDesc = 3; // 描述信息
  2730. optional string ClientSerialNo = 4; // 客户端流水号
  2731. repeated DeliveryOrderDetail DeliveryOrderDetails = 5; // 一级生成的订单号
  2732. optional string OrderTime = 6; // 接收委托交易的时间
  2733. }
  2734. // 交割申报仓单明细
  2735. message WrDetail {
  2736. optional uint64 DeliveryOrderID = 1; // 交割申报单Id
  2737. }
  2738. // 交割申报单明细
  2739. message DeliveryOrderDetail {
  2740. optional uint64 AccountID = 1; // 对手方账号
  2741. optional uint64 Qty = 2; // 点选数量
  2742. optional uint32 BrandID = 3; // 品牌
  2743. optional uint32 QualityID = 4; // 品质
  2744. optional uint32 StandardID = 5; // 规格
  2745. optional uint32 WarehouseID = 6; // 仓库
  2746. optional uint32 DeliveryMonthID = 7; // 月份
  2747. optional uint32 TakeMode = 8; // 提货方式
  2748. optional string ReceiverAddress = 9; // 提货地址
  2749. }
  2750. // 交割申请审核通知
  2751. message DeliveryAuditNtf {
  2752. optional MessageHead Header = 1; // 消息头
  2753. optional string AuthorizedDate = 2; // string 审核日期
  2754. optional uint32 OperatorID = 3; // uint32 操作员账号
  2755. optional uint64 DeliveryOrderID = 4; // uint64 交割委托单号
  2756. optional uint32 AuditStatus = 5; // uint32 审核状态
  2757. optional string AuditRemark = 6; // string 审核备注
  2758. }
  2759. // 交割成交通知
  2760. message DeliveryDealNtf {
  2761. optional MessageHead Header = 1; // 消息头
  2762. optional NotifyHead NtfHeader = 2; // NotifyHead 公共消息头
  2763. optional uint64 OrderID = 3; // uint64 交割委托单号
  2764. optional uint32 GoodsID = 4; // uint32 商品ID
  2765. optional uint64 AccountID = 5; // uint64 账户ID
  2766. optional uint32 BuyOrSell = 6; // uint32 买卖方向
  2767. optional uint64 OrderQty = 7; // uint64 委托数量
  2768. optional string RetDesc = 8; // string 描述
  2769. optional uint32 OperatorID = 9; // uint32 操作员账号ID
  2770. optional uint64 MatchAccountID = 10; // uint64 对方账户ID
  2771. optional uint64 UserID = 11; // uint64 用户ID
  2772. optional uint64 MatchUserID = 12; // uint64 对方用户ID
  2773. optional uint32 DeliveryGoodsID = 13; // uint32 交割商品ID
  2774. optional uint32 TakeMode = 14; // uint32 提货方式
  2775. }
  2776. // 交割撤单请求
  2777. message DeliveryCancelOrderReq {
  2778. optional MessageHead Header = 1;
  2779. optional string ClientSerialNo = 2; // 客户端流水号
  2780. optional string ClientOrderTime = 3; // 客户端委托时间
  2781. optional uint32 ClientType = 4; // 终端类型
  2782. optional uint32 OperateType = 5; // 操作类型:
  2783. optional uint32 OrderSrc = 6; // 单据来源
  2784. optional uint32 OperatorID = 7; // 操作员账号ID
  2785. optional uint64 DeliveryOrderID = 8; // 交割委托单号
  2786. }
  2787. // 交割撤销应答
  2788. message DeliveryCancelOrderRsp {
  2789. optional MessageHead Header = 1; // 消息头
  2790. optional int32 RetCode = 2; // 返回码
  2791. optional string RetDesc = 3; // 描述信息
  2792. optional string ClientSerialNo = 4; // 客户端流水号
  2793. optional string OrderTime = 5; // 接收委托交易的时间
  2794. }
  2795. // 交割请求订单请求
  2796. message DeliveryApplyOrderReq {
  2797. optional MessageHead Header = 1;
  2798. optional string ClientSerialNo = 2; // 客户端流水号
  2799. optional string ClientOrderTime = 3; // 客户端委托时间
  2800. optional uint32 ClientType = 4; // 终端类型
  2801. optional uint64 AccountID = 5; // 交易账号
  2802. optional uint32 XGoodsID = 6; // 主商品ID(交割合约)
  2803. optional uint32 PGoodsID = 7; // 辅助商品ID(辅助合约)
  2804. optional uint32 P2GoodsID = 8; // 辅助商品ID(辅助合约2)
  2805. optional uint32 DeliveryGoodsID = 9; // 交割商品ID
  2806. optional uint64 XQty = 10; // 交割合约数量
  2807. optional uint64 PQty = 11; // 辅助合约数量
  2808. optional uint64 P2Qty = 12; // 辅助合约2数量
  2809. optional uint64 DeliveryQty = 13; // 交割商品仓单数量
  2810. optional uint32 OperateType = 14; // 操作类型
  2811. optional uint32 OrderSrc = 15; // 单据来源
  2812. optional uint32 OperatorID = 16; // 操作员账号ID
  2813. optional uint64 CounterOrderID = 17; // 对手交割申请订单ID
  2814. optional uint32 BrandID = 18; // 品牌
  2815. optional uint32 QualityID = 19; // 品质
  2816. optional uint32 StandardID = 20; // 规格
  2817. optional uint32 WarehouseID = 21; // 仓库
  2818. optional uint32 DeliveryMonthID = 22; // 月份
  2819. optional uint32 IsStandard = 23; // 是否标准交割商品
  2820. optional double PriceMove = 24; // 升贴水
  2821. optional uint32 BuyOrSell = 25; // 买卖方向
  2822. optional int32 ValidType = 26; // 有效类型
  2823. optional string ValidTime = 27; // 有效时间
  2824. optional uint32 TakeMode = 28; // 提货方式
  2825. optional string ReceiverAddress = 29; // 提货地址
  2826. }
  2827. // 交割请求订单应答
  2828. message DeliveryApplyOrderRsp {
  2829. optional MessageHead Header = 1; // 消息头
  2830. optional int32 RetCode = 2; // 返回码
  2831. optional string RetDesc = 3; // 描述信息
  2832. optional string ClientSerialNo = 4; // 客户端流水号
  2833. optional string OrderTime = 5; // 接收委托交易的时间
  2834. optional uint64 DeliveryApplyOrderID = 6; // 交割申请订单ID
  2835. }
  2836. // 交割请求订单撤销请求
  2837. message DeliveryApplyCancelReq {
  2838. optional MessageHead Header = 1;
  2839. optional string ClientSerialNo = 2; // 客户端流水号
  2840. optional string ClientOrderTime = 3; // 客户端委托时间
  2841. optional uint32 ClientType = 4; // 终端类型
  2842. optional uint32 OperateType = 5; // 操作类型
  2843. optional uint32 OrderSrc = 6; // 单据来源
  2844. optional uint32 OperatorID = 7; // 操作员账号ID
  2845. optional uint64 DeliveryApplyOrderID = 8; // 交割申请订单ID
  2846. }
  2847. // 交割请求订单撤销应答
  2848. message DeliveryApplyCancelRsp {
  2849. optional MessageHead Header = 1; // 消息头
  2850. optional int32 RetCode = 2; // 返回码
  2851. optional string RetDesc = 3; // 描述信息
  2852. optional string ClientSerialNo = 4; // 客户端流水号
  2853. optional string OrderTime = 5; // 接收委托交易的时间
  2854. }
  2855. // 圈内会员交割请求订单请求
  2856. message MemberDeliveryApplyOrderReq {
  2857. optional MessageHead Header = 1;
  2858. optional string ClientSerialNo = 2; // 客户端流水号
  2859. optional string ClientOrderTime = 3; // 客户端委托时间
  2860. optional uint32 ClientType = 4; // 终端类型
  2861. optional uint64 AccountID = 5; // 交易账号
  2862. optional uint32 XGoodsID = 6; // 主商品ID(交割合约)
  2863. optional uint32 PGoodsID = 7; // 辅助商品ID(辅助合约)
  2864. optional uint32 P2GoodsID = 8; // 辅助商品ID(辅助合约2)
  2865. optional uint32 DeliveryGoodsID = 9; // 交割商品ID
  2866. optional uint64 XQty = 10; // 交割合约数量
  2867. optional uint64 PQty = 11; // 辅助合约数量
  2868. optional uint64 P2Qty = 12; // 辅助合约2数量
  2869. optional uint64 DeliveryQty = 13; // 交割商品仓单数量
  2870. optional uint32 OperateType = 14; // 操作类型
  2871. optional uint32 OrderSrc = 15; // 单据来源
  2872. optional uint32 OperatorID = 16; // 操作员账号ID
  2873. optional uint64 CounterOrderID = 17; // 对手交割申请订单ID
  2874. optional uint32 BrandID = 18; // 品牌
  2875. optional uint32 QualityID = 19; // 品质
  2876. optional uint32 StandardID = 20; // 规格
  2877. optional uint32 WarehouseID = 21; // 仓库
  2878. optional uint32 DeliveryMonthID = 22; // 月份
  2879. optional uint32 IsStandard = 23; // 是否标准交割商品
  2880. optional double PriceMove = 24; // 升贴水
  2881. optional uint32 BuyOrSell = 25; // 买卖方向
  2882. optional int32 ValidType = 26; // 有效类型
  2883. optional string ValidTime = 27; // 有效时间
  2884. optional uint32 TakeMode = 28; // 提货方式
  2885. optional string ReceiverAddress = 29; // 提货地址
  2886. }
  2887. // 圈内会员交割请求订单应答
  2888. message MemberDeliveryApplyOrderRsp {
  2889. optional MessageHead Header = 1; // 消息头
  2890. optional int32 RetCode = 2; // 返回码
  2891. optional string RetDesc = 3; // 描述信息
  2892. optional string ClientSerialNo = 4; // 客户端流水号
  2893. optional string OrderTime = 5; // 接收委托交易的时间
  2894. optional uint64 DeliveryApplyOrderID = 6; // 交割申请订单ID
  2895. }
  2896. // 交割请求订单请求(无仓单)
  2897. message NonWRDeliveryApplyOrderReq {
  2898. optional MessageHead Header = 1;
  2899. optional string ClientSerialNo = 2; // 客户端流水号
  2900. optional string ClientOrderTime = 3; // 客户端委托时间
  2901. optional uint32 ClientType = 4; // 终端类型
  2902. optional uint64 AccountID = 5; // 交易账号
  2903. optional uint32 XGoodsID = 6; // 主商品ID(交割合约)
  2904. optional uint32 PGoodsID = 7; // 辅助商品ID(辅助合约)
  2905. optional uint32 P2GoodsID = 8; // 辅助商品ID(辅助合约2)
  2906. optional uint32 DeliveryGoodsID = 9; // 交割商品ID
  2907. optional uint64 XQty = 10; // 交割合约数量
  2908. optional uint64 PQty = 11; // 辅助合约数量
  2909. optional uint64 P2Qty = 12; // 辅助合约2数量
  2910. optional uint64 DeliveryQty = 13; // 交割商品仓单数量
  2911. optional uint32 OperateType = 14; // 操作类型
  2912. optional uint32 OrderSrc = 15; // 单据来源
  2913. optional uint32 OperatorID = 16; // 操作员账号ID
  2914. optional uint64 CounterOrderID = 17; // 对手交割申请订单ID
  2915. optional uint32 BrandID = 18; // 品牌
  2916. optional uint32 QualityID = 19; // 品质
  2917. optional uint32 StandardID = 20; // 规格
  2918. optional double PriceMove = 21; // 升贴水
  2919. optional uint32 BuyOrSell = 22; // 买卖方向
  2920. optional int32 ValidType = 23; // 有效类型
  2921. optional string ValidTime = 24; // 有效时间
  2922. optional uint32 TakeMode = 25; // 提货方式
  2923. optional string ReceiverAddress = 26; // 提货地址
  2924. optional uint32 WarehouseID = 27; // 仓库
  2925. }
  2926. // 交割请求订单应答(无仓单)
  2927. message NonWRDeliveryApplyOrderRsp {
  2928. optional MessageHead Header = 1; // 消息头
  2929. optional int32 RetCode = 2; // 返回码
  2930. optional string RetDesc = 3; // 描述信息
  2931. optional string ClientSerialNo = 4; // 客户端流水号
  2932. optional string OrderTime = 5; // 接收委托交易的时间
  2933. optional uint64 DeliveryApplyOrderID = 6; // 交割申请订单ID
  2934. }
  2935. // 交割请求订单撤销请求(无仓单)
  2936. message NonWRDeliveryApplyCancelReq {
  2937. optional MessageHead Header = 1;
  2938. optional string ClientSerialNo = 2; // 客户端流水号
  2939. optional string ClientOrderTime = 3; // 客户端委托时间
  2940. optional uint32 ClientType = 4; // 终端类型
  2941. optional uint32 OperateType = 5; // 操作类型
  2942. optional uint32 OrderSrc = 6; // 单据来源
  2943. optional uint32 OperatorID = 7; // 操作员账号ID
  2944. optional uint64 DeliveryApplyOrderID = 8; // 交割申请订单ID
  2945. }
  2946. // 交割请求订单撤销应答(无仓单)
  2947. message NonWRDeliveryApplyCancelRsp {
  2948. optional MessageHead Header = 1; // 消息头
  2949. optional int32 RetCode = 2; // 返回码
  2950. optional string RetDesc = 3; // 描述信息
  2951. optional string ClientSerialNo = 4; // 客户端流水号
  2952. optional string OrderTime = 5; // 接收委托交易的时间
  2953. }
  2954. // 交收服务商交割请求订单请求(无仓单)
  2955. message NonWRMemberDeliveryApplyOrderReq {
  2956. optional MessageHead Header = 1;
  2957. optional string ClientSerialNo = 2; // 客户端流水号
  2958. optional string ClientOrderTime = 3; // 客户端委托时间
  2959. optional uint32 ClientType = 4; // 终端类型
  2960. optional uint64 AccountID = 5; // 交易账号
  2961. optional uint32 XGoodsID = 6; // 主商品ID(交割合约)
  2962. optional uint32 PGoodsID = 7; // 辅助商品ID(辅助合约)
  2963. optional uint32 P2GoodsID = 8; // 辅助商品ID(辅助合约2)
  2964. optional uint32 DeliveryGoodsID = 9; // 交割商品ID
  2965. optional uint64 XQty = 10; // 交割合约数量
  2966. optional uint64 PQty = 11; // 辅助合约数量
  2967. optional uint64 P2Qty = 12; // 辅助合约2数量
  2968. optional uint64 DeliveryQty = 13; // 交割商品仓单数量
  2969. optional uint32 OperateType = 14; // 操作类型
  2970. optional uint32 OrderSrc = 15; // 单据来源
  2971. optional uint32 OperatorID = 16; // 操作员账号ID
  2972. optional uint64 CounterOrderID = 17; // 对手交割申请订单ID
  2973. optional uint32 BrandID = 18; // 品牌
  2974. optional uint32 QualityID = 19; // 品质
  2975. optional uint32 StandardID = 20; // 规格
  2976. optional double PriceMove = 21; // 升贴水
  2977. optional uint32 BuyOrSell = 22; // 买卖方向
  2978. optional int32 ValidType = 23; // 有效类型
  2979. optional string ValidTime = 24; // 有效时间
  2980. optional uint32 TakeMode = 25; // 提货方式
  2981. optional string ReceiverAddress = 26; // 提货地址
  2982. optional uint32 WarehouseID = 27; // 仓库
  2983. }
  2984. // 交收服务商交割请求订单应答(无仓单)
  2985. message NonWRMemberDeliveryApplyOrderRsp {
  2986. optional MessageHead Header = 1; // 消息头
  2987. optional int32 RetCode = 2; // 返回码
  2988. optional string RetDesc = 3; // 描述信息
  2989. optional string ClientSerialNo = 4; // 客户端流水号
  2990. optional string OrderTime = 5; // 接收委托交易的时间
  2991. optional uint64 DeliveryApplyOrderID = 6; // 交割申请订单ID
  2992. }
  2993. // 交割申报请求(无仓单)
  2994. message NonWRDeliveryOrderReq {
  2995. optional MessageHead Header = 1;
  2996. optional string ClientSerialNo = 2; // 客户端流水号
  2997. optional string ClientOrderTime = 3; // 客户端委托时间
  2998. optional uint32 ClientType = 4; // 终端类型
  2999. optional uint64 AccountID = 5; // 交易账号
  3000. optional uint32 XGoodsID = 6; // 主商品ID(交割合约)
  3001. optional uint32 PGoodsID = 7; // 辅助商品ID(辅助合约)
  3002. optional uint32 P2GoodsID = 8; // 辅助商品ID(辅助合约2)
  3003. optional uint32 DeliveryGoodsID = 9; // 交割商品ID
  3004. optional uint64 XQty = 10; // 交割合约数量
  3005. optional uint64 PQty = 11; // 辅助合约数量
  3006. optional uint64 P2Qty = 12; // 辅助合约2数量
  3007. optional uint64 DeliveryQty = 13; // 交割商品仓单数量
  3008. optional uint32 OperateType = 14; // 操作类型
  3009. optional uint32 OrderSrc = 15; // 单据来源
  3010. optional uint32 OperatorID = 16; // 操作员账号ID
  3011. optional uint64 CounterOrderID = 17; // 对手交割申请订单ID
  3012. optional uint32 BrandID = 18; // 品牌
  3013. optional uint32 QualityID = 19; // 品质
  3014. optional uint32 StandardID = 20; // 规格
  3015. optional uint32 WarehouseID = 21; // 仓库
  3016. optional uint32 DeliveryMonthID = 22; // 月份
  3017. optional uint32 IsStandard = 23; // 是否标准交割商品
  3018. optional double PriceMove = 24; // 升贴水
  3019. optional uint32 BuyOrSell = 25; // 买卖方向
  3020. optional int32 ValidType = 26; // 有效类型
  3021. optional string ValidTime = 27; // 有效时间
  3022. optional uint32 TakeMode = 28; // 提货方式
  3023. optional string ReceiverAddress = 29; // 提货地址
  3024. }
  3025. // 交割申报应答(无仓单)
  3026. message NonWRDeliveryOrderRsp {
  3027. optional MessageHead Header = 1; // 消息头
  3028. optional int32 RetCode = 2; // 返回码
  3029. optional string RetDesc = 3; // 描述信息
  3030. optional string ClientSerialNo = 4; // 客户端流水号
  3031. optional string OrderTime = 5; // 接收委托交易的时间
  3032. optional uint64 DeliveryApplyOrderID = 6; // 交割申请订单ID
  3033. }
  3034. // 交割申请审核请求
  3035. message DeliveryAuditReq {
  3036. optional MessageHead Header = 1;
  3037. optional string ClientSerialNo = 2; // 客户端流水号
  3038. optional string AuthorizedDate = 3; // 审核日期
  3039. optional uint32 OperatorID = 4; // 操作员账号
  3040. optional uint64 DeliveryOrderID = 5; // 交割委托单号
  3041. optional uint32 AuditStatus = 6; // 审核状态
  3042. optional string AuditRemark = 7; // 审核备注
  3043. }
  3044. // 交割申请审核应答
  3045. message DeliveryAuditRsp {
  3046. optional MessageHead Header = 1; // 消息头
  3047. optional int32 RetCode = 2; // 返回码
  3048. optional string RetDesc = 3; // 描述信息
  3049. optional string ClientSerialNo = 4; // 客户端流水号
  3050. optional uint64 DeliveryOrderID = 5; // 交割委托单号
  3051. }
  3052. // 配置中江交收自动配对请求
  3053. message ZJAutoDeliveryMatchReq {
  3054. optional MessageHead Header = 1;
  3055. optional string ClientSerialNo = 2; // 客户端流水号
  3056. optional uint32 DeliveryGoodsID = 3; // 交割商品ID
  3057. optional uint32 ProviderUserID = 4; // 交收服务商ID
  3058. optional uint64 BuyQty = 5; // 可买数量
  3059. optional uint64 SellQty = 6; // 可卖数量
  3060. }
  3061. // 配置中江交收自动配对应答
  3062. message ZJAutoDeliveryMatchRsp {
  3063. optional MessageHead Header = 1; // 消息头
  3064. optional int32 RetCode = 2; // 返回码
  3065. optional string RetDesc = 3; // 描述信息
  3066. optional string ClientSerialNo = 4; // 客户端流水号
  3067. }
  3068. // 签约请求
  3069. message t2bBankSignReq {
  3070. optional MessageHead Header = 1;
  3071. required uint64 ExtOperatorID = 2; // 外部操作流水号
  3072. optional string ExchId = 3; // 交易所编号
  3073. optional string TradeDate = 4; // 交易所业务日期
  3074. optional string ExchTicket = 5; // 交易所流水号
  3075. required string AccountCode = 6; // 账户
  3076. required string AccountName = 7; // 客户名称
  3077. required string CusBankID = 8; // 托管银行编号
  3078. required int32 OperateType = 9; // 变更类型[1-增加;2-修改;4-绑卡;
  3079. required int32 IsForce = 10; // 是否强制[0-否;1-是]强制,只更新中心签约信息,不发送银行。用于银行信息不一致的情况
  3080. optional string Currency = 11; // 币种
  3081. optional int32 AccountType = 12; // 账户类型[1-对私;2-对公]
  3082. required string OpenBankAccId = 13; // 银行卡行号
  3083. optional string ForceSignBankAccountNo = 14; // 银行账户[强制签约时填写]
  3084. optional string ForceSignBankAccountName = 15; // 银行账户名称[强制签约时填写]
  3085. required string BankAccountNo = 16; // 银行账户
  3086. optional string BankAccountName = 17; // 银行账户名称
  3087. required string ExBankName = 18; // 开户行名称
  3088. optional string OpenBankNo = 19; // 开户支行编号
  3089. optional string OpenBankName = 20; // 开户支行名称
  3090. required string CertType = 21; // 证件类型
  3091. required string CertID = 22; // 证件号码
  3092. optional string BankAccountPWD = 23; // 银行账户密码
  3093. optional string AgentName = 24; // 授权代理人姓名
  3094. optional int32 AgentCertType = 25; // 授权代理人证件类型
  3095. optional string AgentCertID = 26; // 授权代理人证件号
  3096. optional int32 BankAccountType = 27; // 银行账户类型
  3097. optional string BankProvince = 28; // 开户银行所在省份
  3098. optional string BankCity = 29; // 开户银行所在市
  3099. optional int32 BankCardType = 30; // 银行卡类型
  3100. optional string MobilePhone = 31; // 移动电话
  3101. optional string IdentifyCode = 32; // 验证码
  3102. optional string email = 33; // 电子邮箱
  3103. optional string extend_info = 34; // 扩展信息(JSON串,参考配置要求进行填充)
  3104. }
  3105. // 签约应答
  3106. message t2bBankSignRsp {
  3107. optional MessageHead Header = 1; // 消息头
  3108. optional int32 RetCode = 2; // 返回码
  3109. optional string RetDesc = 3; // 描述信息
  3110. optional uint64 ExtOperatorID = 4; // 外部操作流水号
  3111. optional string AccountCode = 5; // 账户
  3112. optional string NetAddr = 6; // 网络地址(当这里有网址时,应自动跳转网页)
  3113. optional int32 Status = 7; // 状态(0成功,其他数值参考银行服务的错误码)
  3114. required string ExchTicket = 8; // 交易所流水号
  3115. optional string ExchId = 9; // 交易所编号
  3116. optional string TradeDate = 10; // 交易所业务日期
  3117. optional string CenterTicket = 11; // 中心流水号
  3118. optional string CenterErrCode = 12; // 返回码
  3119. optional string CenterErrMsg = 13; // 返回结果说明
  3120. optional string bankChildAcc = 14; // 银行账号
  3121. optional string bankChildAccName = 15; // 银行账户名
  3122. optional string BankId = 16; // 银行卡行号
  3123. optional string BankAccNum = 17; // 银行卡号
  3124. optional string BankAccName = 18; // 银行卡户名
  3125. }
  3126. // 解约请求
  3127. message t2bBankCancelSignReq {
  3128. optional MessageHead Header = 1;
  3129. required uint64 ExtOperatorID = 2; // 外部操作流水号
  3130. optional string ExchId = 3; // 交易所编号
  3131. required string AccountCode = 4; // 账户
  3132. required string CusBankID = 5; // 托管银行编号
  3133. required int32 IsForce = 6; // 是否强制
  3134. optional string Currency = 7; // 币种
  3135. optional string TradeDate = 8; // 交易所业务日期
  3136. optional string ExchTicket = 9; // 交易所流水号
  3137. optional string BankChildAcc = 10; // 银行子账号
  3138. optional string BankChildAccName = 11; // 银行子账号名
  3139. }
  3140. // 解约应答
  3141. message t2bBankCancelSignRsp {
  3142. optional MessageHead Header = 1; // 消息头
  3143. optional int32 RetCode = 2; // 返回码
  3144. optional string RetDesc = 3; // 描述信息
  3145. optional uint64 ExtOperatorID = 4; // 外部操作流水号
  3146. optional string AccountCode = 5; // 账户
  3147. optional string NetAddr = 6; // 网络地址(当这里有网址时,应自动跳转网页)
  3148. optional int32 Status = 7; // 状态(0成功,其他数值参考银行服务的错误码)
  3149. required string ExchTicket = 8; // 交易所流水号
  3150. optional string ExchId = 9; // 交易所编号
  3151. optional string TradeDate = 10; // 交易所业务日期
  3152. optional string CenterTicket = 11; // 中心流水号
  3153. optional string CenterErrCode = 12; // 返回码
  3154. optional string CenterErrMsg = 13; // 返回结果说明
  3155. }
  3156. // 签到请求
  3157. message t2bSignInReq {
  3158. optional MessageHead Header = 1;
  3159. optional string CusBankId = 2; // 托管银行编号
  3160. optional uint64 ExtOperatorID = 3; // 外部操作流水号
  3161. optional int32 ForceSignInFlag = 4; // 是否强制签约标识(默认正常签到)
  3162. optional string Currency = 5; // 币种
  3163. optional string ExchId = 6; // 交易所编号
  3164. optional string TradeDate = 7; // 交易所业务日期
  3165. optional string ExchTicket = 8; // 交易所流水号
  3166. }
  3167. // 签到应答
  3168. message t2bSignInRsp {
  3169. optional MessageHead Header = 1; // 消息头
  3170. optional int32 RetCode = 2; // 返回码
  3171. optional string RetDesc = 3; // 描述信息
  3172. optional uint64 ExtOperatorID = 4; // 外部操作流水号
  3173. optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
  3174. required string ExchTicket = 6; // 交易所流水号
  3175. optional string ExchId = 7; // 交易所编号
  3176. optional string TradeDate = 8; // 交易所业务日期
  3177. optional string CenterTicket = 9; // 中心流水号
  3178. optional string CenterErrCode = 10; // 返回码
  3179. optional string CenterErrMsg = 11; // 返回结果说明
  3180. }
  3181. // 客户信息上传请求
  3182. message m2bRegistCustomerInfoReq {
  3183. optional MessageHead Header = 1;
  3184. required uint64 ExtOperatorID = 2; // 外部操作流水号
  3185. optional string ExchId = 3; // 交易所编号
  3186. required string TradeDate = 4; // 申请日期
  3187. optional string ExchTicket = 5; // 交易所流水号
  3188. required string AccountCode = 6; // 资金账户
  3189. required string ChangeType = 7; // 变更类型[1-增加;2-修改]
  3190. required string ClientName = 8; // 客户名称
  3191. optional string ClentShortName = 9; // 客户简称
  3192. required int32 ClientType = 10; // 客户类型[1-个人;2-机构]
  3193. required int32 ClientAccountType = 11; // 客户账户类型[0-投资者;1-交易所;2-综合类;
  3194. required string CertType = 12; // 证件类型
  3195. required string CertId = 13; // 证件号码
  3196. required string sex = 14; // 性别[0-未填;1-男;2-女]
  3197. optional string LegalName = 15; // 法人姓名(机构填写)
  3198. optional string OrgId = 16; // 组织机构代码(机构填写)
  3199. optional string Nationality = 17; // 国籍
  3200. optional string address = 18; // 地址
  3201. optional string ContactUserName = 19; // 联系人姓名
  3202. required string ContactUserTel = 20; // 联系人电话
  3203. optional string ContactUserFax = 21; // 联系人传真
  3204. optional string ContactUserEmail = 22; // 联系人邮箱
  3205. optional string RelatedAcc = 23; // 经纪商账号
  3206. optional string ExtendInfo = 24; // 扩展信息(JSON串,参考配置要求进行填充)
  3207. }
  3208. // 客户信息上传应答
  3209. message m2bRegistCustomerInfoRsp {
  3210. optional MessageHead Header = 1; // 消息头
  3211. optional int32 RetCode = 2; // 返回码
  3212. optional string RetDesc = 3; // 描述信息
  3213. optional string ExchId = 4; // 交易所编号
  3214. optional uint64 ExtOperatorID = 5; // 发起请求的流水号
  3215. required string ExchTicket = 6; // 交易所流水号
  3216. optional int32 Status = 7; // 状态(0成功,其他数值参考银行服务的错误码)
  3217. required string TradeDate = 8; // 交易所业务日期
  3218. optional string CenterTicket = 9; // 中心流水号
  3219. optional string CenterErrCode = 10; // 中心返回码
  3220. optional string CenterErrMsg = 11; // 中心返回结果说明
  3221. }
  3222. // 签退请求
  3223. message t2bSignOutReq {
  3224. optional MessageHead Header = 1;
  3225. optional string CusBankId = 2; // 托管银行编号
  3226. optional uint64 ExtOperatorID = 3; // 外部操作流水号
  3227. optional int32 ForceSignInFlag = 4; // 是否强制签约标识(默认正常签到)
  3228. optional string Currency = 5; // 币种
  3229. optional string ExchId = 6; // 交易所编号
  3230. optional string TradeDate = 7; // 交易所业务日期
  3231. optional string ExchTicket = 8; // 交易所流水号
  3232. }
  3233. // 签退应答
  3234. message t2bSignOutRsp {
  3235. optional MessageHead Header = 1; // 消息头
  3236. optional int32 RetCode = 2; // 返回码
  3237. optional string RetDesc = 3; // 描述信息
  3238. optional uint64 ExtOperatorID = 4; // 外部操作流水号
  3239. optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
  3240. required string ExchTicket = 6; // 交易所流水号
  3241. optional string ExchId = 7; // 交易所编号
  3242. optional string TradeDate = 8; // 交易所业务日期
  3243. optional string CenterTicket = 9; // 中心流水号
  3244. optional string CenterErrCode = 10; // 返回码
  3245. optional string CenterErrMsg = 11; // 返回结果说明
  3246. }
  3247. // 注销上传的客户信息请求
  3248. message m2bUnregistCustomerInfoReq {
  3249. optional MessageHead Header = 1;
  3250. required uint64 ExtOperatorID = 2; // 外部操作流水号
  3251. optional string CusBankID = 3; // 托管银行编号
  3252. optional string ExchId = 4; // 交易所编号
  3253. required string TradeDate = 5; // 申请日期
  3254. optional string ExchTicket = 6; // 交易所流水号
  3255. required string AccountCode = 7; // 交易账号
  3256. }
  3257. // 注销上传的客户信息应答
  3258. message m2bUnregistCustomerInfoRsp {
  3259. optional MessageHead Header = 1; // 消息头
  3260. optional int32 RetCode = 2; // 返回码
  3261. optional string RetDesc = 3; // 描述信息
  3262. optional uint64 ExtOperatorID = 4; // 外部操作流水号
  3263. optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
  3264. required string ExchTicket = 6; // 交易所流水号
  3265. optional string ExchId = 7; // 交易所编号
  3266. required string TradeDate = 8; // 交易日
  3267. optional string CenterTicket = 9; // 中心流水号
  3268. optional string CenterErrCode = 10; // 中心返回码
  3269. optional string CenterErrMsg = 11; // 中心返回结果说明
  3270. }
  3271. // 出金请求
  3272. message t2bBankWithdrawReq {
  3273. optional MessageHead Header = 1;
  3274. required uint64 ExtOperatorID = 2; // 外部操作流水号
  3275. optional string ExchId = 3; // 交易所编号
  3276. required string AccountCode = 4; // 资金账户
  3277. required string CusBankID = 5; // 托管银行编号
  3278. required string Currency = 6; // 币种
  3279. optional int32 AccountType = 7; // 账户类型
  3280. optional string BankChildAccount = 8; // 银行子账号
  3281. optional string BankChildAccountName = 9; // 银行子账号名
  3282. optional string OpenCardBankId = 10; // 银行卡行号
  3283. optional string BankAccoutNum = 11; // 银行卡号
  3284. optional string BankAccoutName = 12; // 银行卡户名
  3285. required double Amount = 13; // 出金金额
  3286. optional string AppDateTime = 14; // 申请日期和时间
  3287. optional string OldTaPWD = 15; // 资金密码
  3288. optional string Desc = 16; // 备注
  3289. optional string IdentifyCode = 17; // 验证码
  3290. optional string BranchBankName = 18; // 收款支行名称
  3291. optional string extend_info = 19; // 扩展信息(JSON串,参考配置要求进行填充)
  3292. optional string Remark = 20; // 备注
  3293. optional string ExchTicket = 21; // 交易所流水号
  3294. }
  3295. // 出金应答
  3296. message t2bBankWithdrawRsp {
  3297. optional MessageHead Header = 1; // 消息头
  3298. optional int32 RetCode = 2; // 返回码
  3299. optional string RetDesc = 3; // 描述信息
  3300. optional uint64 ExtOperatorID = 4; // 外部操作流水号
  3301. optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
  3302. required string ExchTicket = 6; // 交易所流水号
  3303. optional string ExchId = 7; // 交易所编号
  3304. optional string TradeDate = 8; // 交易日
  3305. optional string CenterTicket = 9; // 中心流水号
  3306. optional string CenterErrCode = 10; // 中心返回码
  3307. optional string CenterErrMsg = 11; // 中心返回结果说明
  3308. optional string CerterCheckDate = 12; // 中心对账日期
  3309. optional string NetAddr = 13; // 网络地址(当这里有网址时,应自动跳转网页)
  3310. }
  3311. // 银行端出金请求
  3312. message b2tBankWithdrawReq {
  3313. optional MessageHead Header = 1;
  3314. required string CusBankID = 2; // 托管银行编号
  3315. optional string ExchTicket = 3; // 交易所流水号
  3316. optional string ExchId = 4; // 交易所编号
  3317. required string TradeDate = 5; // 交易所业务日期
  3318. required string BankTicket = 6; // 银行流水号
  3319. required string AccountCode = 7; // 资金账户
  3320. optional string BankChildAccount = 8; // 银行子账号
  3321. optional string BankChildAccountName = 9; // 银行子账户名
  3322. optional string OldTaPWD = 10; // 资金密码
  3323. required double Amount = 11; // 金额
  3324. required string Currency = 12; // 币种
  3325. optional string Remark = 13; // 备注
  3326. optional string OpenCardBankId = 14; // 银行卡行号
  3327. optional string BankAccoutNum = 15; // 银行卡号
  3328. optional string BankAccoutName = 16; // 银行卡户名
  3329. optional string IsHaveApply = 17; // 是否有出金申请[0-否;1-是]
  3330. optional string ApplyTicket = 18; // 出金申请流水号
  3331. optional string extend_info = 19; // 扩展信息
  3332. }
  3333. // 银行端出金应答
  3334. message b2tBankWithdrawRsp {
  3335. optional MessageHead Header = 1; // 消息头
  3336. optional int32 RetCode = 2; // 返回码
  3337. optional string RetDesc = 3; // 描述信息
  3338. optional uint64 ExtOperatorID = 4; // 外部操作流水号
  3339. optional int32 Status = 5; // 状态(0成功,1处理中,
  3340. optional string StatusMsg = 6; // 处理状态描述文本
  3341. required string ExchTicket = 7; // 交易所流水号
  3342. required string BankTicket = 8; // 银行流水号
  3343. optional string ExchId = 9; // 交易所编号
  3344. required string TradeDate = 10; // 交易日
  3345. required string ExchErrCode = 11; // 银行服务返回码
  3346. optional string ExchErrMsg = 12; // 银行服务返回结果说明
  3347. }
  3348. // 银行端入金请求
  3349. message b2tBankDepositReq {
  3350. optional MessageHead Header = 1;
  3351. required string CusBankID = 2; // 托管银行编号
  3352. optional string ExchTicket = 3; // 交易所流水号
  3353. optional string ExchId = 4; // 交易所编号
  3354. required string TradeDate = 5; // 交易日
  3355. required string BankTicket = 6; // 银行流水号
  3356. required string AccountCode = 7; // 资金账户
  3357. optional string BankChildAccount = 8; // 银行子账号
  3358. optional string BankChildAccountName = 9; // 银行子账户名
  3359. optional string OldTaPWD = 10; // 资金密码
  3360. required double Amount = 11; // 金额
  3361. required string Currency = 12; // 币种
  3362. optional string Remark = 13; // 备注
  3363. optional string OpenCardBankId = 14; // 银行卡行号
  3364. optional string BankAccoutNum = 15; // 银行卡号
  3365. optional string BankAccoutName = 16; // 银行卡户名
  3366. optional int32 IsUpdate = 17; // 银行卡状态更新标志[0-否;1-是]
  3367. optional int32 BankAccStatus = 18; // 银行卡状态[0-未绑定;1-已绑定]
  3368. required string extend_info = 19; // 扩展信息[JSON串]
  3369. optional int32 IsRollBack = 20; // 退票标志[0-否;1-是]默认为0
  3370. optional string RawTicket = 21; // 原交易流水号[退票填原交易流水号]
  3371. }
  3372. // 银行端入金应答
  3373. message b2tBankDepositRsp {
  3374. optional MessageHead Header = 1; // 消息头
  3375. optional int32 RetCode = 2; // 返回码
  3376. optional string RetDesc = 3; // 描述信息
  3377. optional uint64 ExtOperatorID = 4; // 外部操作流水号
  3378. optional int32 Status = 5; // 状态(0成功,1处理中,
  3379. optional string StatusMsg = 6; // 处理状态描述文本
  3380. required string ExchTicket = 7; // 交易所流水号
  3381. required string BankTicket = 8; // 银行流水号
  3382. optional string ExchId = 9; // 交易所编号
  3383. required string TradeDate = 10; // 交易日
  3384. required string ExchErrCode = 11; // 银行服务返回码
  3385. optional string ExchErrMsg = 12; // 银行服务返回结果说明
  3386. }
  3387. // 入金请求
  3388. message t2bBankDepositReq {
  3389. optional MessageHead Header = 1;
  3390. required uint64 ExtOperatorID = 2; // 外部操作流水号
  3391. required string CusBankID = 3; // 托管银行编号
  3392. optional string ExchId = 4; // 交易所编号
  3393. optional string TradeDate = 5; // 交易日
  3394. optional string ExchTicket = 6; // 交易所流水号
  3395. required string AccountCode = 7; // 资金账户
  3396. optional string BusinessNo = 8; // 银行业务编号
  3397. optional string BankChildAccount = 9; // 银行子账号
  3398. optional string BankChildAccountName = 10; // 银行子账号名
  3399. optional string OldTaPWD = 11; // 资金密码
  3400. required double Amount = 12; // 金额
  3401. required string Currency = 13; // 币种
  3402. optional string Remark = 14; // 备注
  3403. optional string OpenCardBankId = 15; // 银行卡行号
  3404. optional string BankAccoutNum = 16; // 银行卡号
  3405. optional string BankAccoutName = 17; // 银行卡户名
  3406. optional string extend_info = 18; // 扩展信息(JSON串,参考配置要求进行填充)
  3407. }
  3408. // 入金应答
  3409. message t2bBankDepositRsp {
  3410. optional MessageHead Header = 1; // 消息头
  3411. optional int32 RetCode = 2; // 返回码
  3412. optional string RetDesc = 3; // 描述信息
  3413. optional uint64 ExtOperatorID = 4; // 外部操作流水号
  3414. optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
  3415. required string ExchTicket = 6; // 交易所流水号
  3416. optional string ExchId = 7; // 交易所编号
  3417. optional string TradeDate = 8; // 交易日
  3418. optional string CenterTicket = 9; // 中心流水号
  3419. optional string CenterErrCode = 10; // 中心返回码
  3420. optional string CenterErrMsg = 11; // 中心返回结果说明
  3421. optional string CerterCheckDate = 12; // 中心对账日期
  3422. optional string NetAddr = 13; // 网络地址(当这里有网址时,应自动跳转网页)
  3423. }
  3424. // 银行端签约请求
  3425. message b2tBankSignReq {
  3426. optional MessageHead Header = 1;
  3427. required string CusBankID = 2; // 托管银行编号
  3428. optional string ExchId = 3; // 交易所编号
  3429. optional string TradeDate = 4; // 交易日
  3430. required string BankTicket = 5; // 银行流水号
  3431. required string AccountCode = 6; // 资金账户
  3432. optional string BankChildAccount = 7; // 银行子账号
  3433. optional string BankChildAccountName = 8; // 银行子账户名
  3434. required string Currency = 9; // 币种
  3435. optional string OpenCardBankId = 10; // 银行卡行号
  3436. optional string BankAccoutNum = 11; // 银行卡号
  3437. optional string BankAccoutName = 12; // 银行卡户名
  3438. optional int32 AccountType = 13; // 银行账户类型[1-对私;2-对公]
  3439. optional string ExtendInfo = 14; // 扩展信息(JSON串)
  3440. optional int32 OperatType = 15; // 变更类型[1-增加;2-修改]
  3441. }
  3442. // 银行端签约应答
  3443. message b2tBankSignRsp {
  3444. optional MessageHead Header = 1; // 消息头
  3445. optional int32 RetCode = 2; // 返回码
  3446. optional string RetDesc = 3; // 描述信息
  3447. optional uint64 ExtOperatorID = 4; // 外部操作流水号
  3448. optional int32 Status = 5; // 状态(0成功,1处理中,
  3449. optional string StatusMsg = 6; // 处理状态描述文本
  3450. required string ExchTicket = 7; // 交易所流水号
  3451. required string BankTicket = 8; // 银行流水号
  3452. optional string ExchId = 9; // 交易所编号
  3453. required string TradeDate = 10; // 交易日
  3454. required string ExchErrCode = 11; // 银行服务返回码
  3455. optional string ExchErrMsg = 12; // 银行服务返回结果说明
  3456. }
  3457. // 银行端解约请求
  3458. message b2tBankCancelSignReq {
  3459. optional MessageHead Header = 1;
  3460. required string CusBankID = 2; // 托管银行编号
  3461. optional string ExchId = 3; // 交易所编号
  3462. optional string TradeDate = 4; // 交易日
  3463. required string BankTicket = 5; // 银行流水号
  3464. required string AccountCode = 6; // 资金账户
  3465. optional string BankChildAccount = 7; // 银行子账号
  3466. optional string BankChildAccountName = 8; // 银行子账户名
  3467. required string Currency = 9; // 币种
  3468. }
  3469. // 银行端解约应答
  3470. message b2tBankCancelSignRsp {
  3471. optional MessageHead Header = 1; // 消息头
  3472. optional int32 RetCode = 2; // 返回码
  3473. optional string RetDesc = 3; // 描述信息
  3474. optional uint64 ExtOperatorID = 4; // 外部操作流水号
  3475. optional int32 Status = 5; // 状态(0成功,1处理中,
  3476. optional string StatusMsg = 6; // 处理状态描述文本
  3477. required string ExchTicket = 7; // 交易所流水号
  3478. required string BankTicket = 8; // 银行流水号
  3479. optional string ExchId = 9; // 交易所编号
  3480. required string TradeDate = 10; // 交易日
  3481. required string ExchErrCode = 11; // 银行服务返回码
  3482. optional string ExchErrMsg = 12; // 银行服务返回结果说明
  3483. }
  3484. // 银行端出金申请请求
  3485. message b2tBankWithdrawApplyForReq {
  3486. optional MessageHead Header = 1;
  3487. required string CusBankID = 2; // 托管银行编号
  3488. optional string ExchId = 3; // 交易所编号
  3489. optional string TradeDate = 4; // 交易日
  3490. required string BankTicket = 5; // 银行流水号
  3491. required string AccountCode = 6; // 资金账户
  3492. optional string BankChildAccount = 7; // 银行子账号
  3493. optional string BankChildAccountName = 8; // 银行子账户名
  3494. optional string OldTaPWD = 9; // 资金密码
  3495. required string Amount = 10; // 金额
  3496. required string Currency = 11; // 币种
  3497. optional string Remark = 12; // 备注
  3498. }
  3499. // 银行端出金申请应答
  3500. message b2tBankWithdrawApplyForRsp {
  3501. optional MessageHead Header = 1; // 消息头
  3502. optional int32 RetCode = 2; // 返回码
  3503. optional string RetDesc = 3; // 描述信息
  3504. optional uint64 ExtOperatorID = 4; // 外部操作流水号
  3505. optional int32 Status = 5; // 状态(0成功,1处理中,
  3506. optional string StatusMsg = 6; // 处理状态描述文本
  3507. required string ExchTicket = 7; // 交易所流水号
  3508. required string BankTicket = 8; // 银行流水号
  3509. optional string ExchId = 9; // 交易所编号
  3510. required string TradeDate = 10; // 交易日
  3511. required string ExchErrCode = 11; // 银行服务返回码
  3512. optional string ExchErrMsg = 12; // 银行服务返回结果说明
  3513. }
  3514. // 银行端审核结果通知请求
  3515. message b2tBankConfirmReq {
  3516. optional MessageHead Header = 1;
  3517. required string CusBankID = 2; // 托管银行编号
  3518. optional string ExchId = 3; // 交易所编号
  3519. required string TradeDate = 4; // 交易日
  3520. required string BankTicket = 5; // 银行流水号
  3521. optional string BusinessNo = 6; // 业务编号[原报文的业务编号(171-商品信息,102-出金)]
  3522. required string RawTicket = 7; // 原交易流水号[原交易的交易所流水号]
  3523. optional string CheckDate = 8; // 对账日期[出金审核成功通知是必填]
  3524. required string Status = 9; // 审核状态[1-审核通过;2-审核不通过;3-审核通过,执行失败]
  3525. optional string StatusMsg = 10; // 审核结果说明
  3526. optional string extend_info = 11; // 扩展信息[JSON串]
  3527. }
  3528. // 银行端审核结果通知应答
  3529. message b2tBankConfirmRsp {
  3530. optional MessageHead Header = 1; // 消息头
  3531. optional int32 RetCode = 2; // 返回码
  3532. optional string RetDesc = 3; // 描述信息
  3533. optional uint64 ExtOperatorID = 4; // 外部操作流水号
  3534. optional int32 Status = 5; // 状态(0成功,1处理中,
  3535. optional string StatusMsg = 6; // 处理状态描述文本
  3536. required string ExchTicket = 7; // 交易所流水号
  3537. required string BankTicket = 8; // 银行流水号
  3538. optional string ExchId = 9; // 交易所编号
  3539. required string TradeDate = 10; // 交易日
  3540. required string ExchErrCode = 11; // 银行服务返回码
  3541. optional string ExchErrMsg = 12; // 银行服务返回结果说明
  3542. }
  3543. // 短信验证码请求
  3544. message t2bSMSVerificationCodeReq {
  3545. optional MessageHead Header = 1;
  3546. required uint64 ExtOperatorID = 2; // 外部操作流水号
  3547. required string CusBankID = 3; // 托管银行编号
  3548. optional string ExchId = 4; // 交易所编号
  3549. optional string TradeDate = 5; // 交易日
  3550. optional string ExchTicket = 6; // 交易所流水号
  3551. required string AccountCode = 7; // 资金账户
  3552. optional string BusinessNo = 8; // 银行业务编号
  3553. optional string Mobile = 9; // 手机号码
  3554. optional string extend_info = 10; // 扩展信息(JSON串,参考配置要求进行填充)
  3555. }
  3556. // 短信验证码应答
  3557. message t2bSMSVerificationCodeRsp {
  3558. optional MessageHead Header = 1; // 消息头
  3559. optional int32 RetCode = 2; // 返回码
  3560. optional string RetDesc = 3; // 描述信息
  3561. optional uint64 ExtOperatorID = 4; // 外部操作流水号
  3562. optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
  3563. required string ExchTicket = 6; // 交易所流水号
  3564. optional string ExchId = 7; // 交易所编号
  3565. optional string TradeDate = 8; // 交易日
  3566. optional string CenterTicket = 9; // 中心流水号
  3567. optional string CenterErrCode = 10; // 中心返回码
  3568. optional string CenterErrMsg = 11; // 中心返回结果说明
  3569. }
  3570. // 商品信息上传请求
  3571. message t2bProductInfoReq {
  3572. optional MessageHead Header = 1;
  3573. required uint64 ExtOperatorID = 2; // 外部操作流水号
  3574. optional string CusBankID = 3; // 托管银行编号
  3575. optional string ExchId = 4; // 交易所编号
  3576. optional string TradeDate = 5; // 交易日
  3577. optional string ExchTicket = 6; // 交易所流水号
  3578. required string ProductTypeCode = 7; // 产品类别代码
  3579. required string ProductTypeName = 8; // 产品类别名称
  3580. required string ProductTypeId = 9; // 产品类别ID
  3581. required string ProductCode = 10; // 产品代码
  3582. required string ProductName = 11; // 产品名称
  3583. required string CountUnit = 12; // 计量单位
  3584. required int32 MarketType = 13; // 子市场类型[1-不区分;2-大宗商品;3-挂牌交易;4-电子商城]
  3585. required int32 BusinessType = 14; // 业务类型[1-不区分;2-大宗商品;3-金融资产;4-文化产权;
  3586. required string DeliDepot = 15; // 交割仓库
  3587. required double DeliFee = 16; // 交割费用
  3588. required string DeliFeeUnit = 17; // 交割费用单位
  3589. required string DeliCondition = 18; // 交割成色
  3590. required double DeliDelayFee = 19; // 交割滞纳金率
  3591. required double TransFee = 20; // 交易手续费
  3592. required double HoldUpperLimit = 21; // 持仓上限
  3593. required string HoldUpperLimitUnit = 22; // 持仓上限单位
  3594. required double PriceSpread = 23; // 买卖差价
  3595. required string PriceSpreadUnit = 24; // 买卖差价单位
  3596. required double MinChange = 25; // 最小变动量
  3597. required string MinChangeUnit = 26; // 最小变动单位
  3598. required double MinTrans = 27; // 最小交易量
  3599. required string MinTransUnit = 28; // 最小交易量单位
  3600. required double MaxSingleTrans = 29; // 单笔最大交易量
  3601. required string MaxSingleTransUnit = 30; // 单笔最大交易量单位
  3602. required string ProductAttr = 31; // 产品附加属性
  3603. required int32 ProductStatus = 32; // 商品状态[0-停牌;1-正常;2-撤牌]
  3604. required int32 DataType = 33; // 数据类型[1-新增;2-修改;3-状态变更]
  3605. required double ContractUnit = 34; // 合约单位
  3606. }
  3607. // 商品信息上传应答
  3608. message t2bProductInfoRsp {
  3609. optional MessageHead Header = 1; // 消息头
  3610. optional int32 RetCode = 2; // 返回码
  3611. optional string RetDesc = 3; // 描述信息
  3612. optional uint64 ExtOperatorID = 4; // 外部操作流水号
  3613. optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
  3614. required string ExchTicket = 6; // 交易所流水号
  3615. optional string ExchId = 7; // 交易所编号
  3616. optional string TradeDate = 8; // 交易日
  3617. optional string CenterTicket = 9; // 中心流水号
  3618. optional string CenterErrCode = 10; // 中心返回码[99为审核中]
  3619. optional string CenterErrMsg = 11; // 中心返回结果说明
  3620. }
  3621. // 付款请求
  3622. message t2bPayMoneyReq {
  3623. optional MessageHead Header = 1;
  3624. required uint64 ExtOperatorID = 2; // 外部操作流水号
  3625. required string CusBankID = 3; // 托管银行编号
  3626. optional string ExchId = 4; // 交易所编号
  3627. required string TradeDate = 5; // 交易日
  3628. optional string ExchTicket = 6; // 交易所流水号
  3629. required string AccountCode = 7; // 资金账户
  3630. optional string BankChildAccount = 8; // 银行子账号
  3631. optional string BankChildAccountName = 9; // 银行子账号名
  3632. required string TargetAccountCode = 10; // 收款方交易账号
  3633. optional string TargetBankChildAccount = 11; // 收款方银行账号
  3634. optional string TargetBankChildAccountName = 12; // 收款方银行账户名
  3635. optional string IsFrozen = 13; // 是否冻结
  3636. optional string OldTaPWD = 14; // 资金密码
  3637. required double Amount = 15; // 付款金额
  3638. required string Currency = 16; // 币种
  3639. optional string Remark = 17; // 备注
  3640. }
  3641. // 付款应答
  3642. message t2bPayMoneyRsp {
  3643. optional MessageHead Header = 1; // 消息头
  3644. optional int32 RetCode = 2; // 返回码
  3645. optional string RetDesc = 3; // 描述信息
  3646. optional uint64 ExtOperatorID = 4; // 外部操作流水号
  3647. optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
  3648. required string ExchTicket = 6; // 交易所流水号
  3649. optional string ExchId = 7; // 交易所编号
  3650. optional string TradeDate = 8; // 交易日
  3651. optional string CenterTicket = 9; // 中心流水号
  3652. optional string CenterErrCode = 10; // 中心返回码
  3653. optional string CenterErrMsg = 11; // 中心返回结果说明
  3654. optional string CerterCheckDate = 12; // 中心对账日期
  3655. }
  3656. // 付款确认请求
  3657. message t2bPayMoneyConfirmReq {
  3658. optional MessageHead Header = 1;
  3659. required uint64 ExtOperatorID = 2; // 外部操作流水号
  3660. required string CusBankID = 3; // 托管银行编号
  3661. optional string ExchId = 4; // 交易所编号
  3662. optional string TradeDate = 5; // 交易日
  3663. optional string ExchTicket = 6; // 交易所流水号
  3664. required string PayTicket = 7; // 付款流水号
  3665. optional string OldTaPWD = 8; // 资金密码
  3666. required double Amount = 9; // 确认金额
  3667. required string Currency = 10; // 币种
  3668. optional string Remark = 11; // 备注
  3669. }
  3670. // 付款确认应答
  3671. message t2bPayMoneyConfirmRsp {
  3672. optional MessageHead Header = 1; // 消息头
  3673. optional int32 RetCode = 2; // 返回码
  3674. optional string RetDesc = 3; // 描述信息
  3675. optional uint64 ExtOperatorID = 4; // 外部操作流水号
  3676. optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
  3677. required string ExchTicket = 6; // 交易所流水号
  3678. optional string ExchId = 7; // 交易所编号
  3679. optional string TradeDate = 8; // 交易日
  3680. optional string CenterTicket = 9; // 中心流水号
  3681. optional string CenterErrCode = 10; // 中心返回码
  3682. optional string CenterErrMsg = 11; // 中心返回结果说明
  3683. optional string CerterCheckDate = 12; // 中心对账日期
  3684. }
  3685. // 账户服务操作账户应答
  3686. message bs2asAccOperateRsp {
  3687. optional MessageHead Header = 1; // 消息头
  3688. optional int32 RetCode = 2; // 返回码
  3689. optional string RetDesc = 3; // 描述信息
  3690. optional string Tip = 4; // 此协议只是为了拥有一个功能码(有可能是解冻并且扣款成功的回应)
  3691. }
  3692. // 账户服务冻结资金应答
  3693. message bs2asFrozenRsp {
  3694. optional MessageHead Header = 1; // 消息头
  3695. optional int32 RetCode = 2; // 返回码
  3696. optional string RetDesc = 3; // 描述信息
  3697. optional string Tip = 4; // 此协议只是为了拥有一个功能码(出金请求冻结资金)
  3698. }
  3699. // 账户服务解冻资金应答
  3700. message bs2asUnfreezeRsp {
  3701. optional MessageHead Header = 1; // 消息头
  3702. optional int32 RetCode = 2; // 返回码
  3703. optional string RetDesc = 3; // 描述信息
  3704. optional string Tip = 4; // 此协议只是为了拥有一个功能码(解冻出金冻结的资金)
  3705. }
  3706. // 账户服务解冻并且扣款应答
  3707. message bs2asUnfreezeAndOutRsp {
  3708. optional MessageHead Header = 1; // 消息头
  3709. optional int32 RetCode = 2; // 返回码
  3710. optional string RetDesc = 3; // 描述信息
  3711. optional string Tip = 4; // 此协议只是为了拥有一个功能码(出金成功,执行解冻扣款)
  3712. }
  3713. // 账户服务扣款应答
  3714. message bs2asOutBankRsp {
  3715. optional MessageHead Header = 1; // 消息头
  3716. optional int32 RetCode = 2; // 返回码
  3717. optional string RetDesc = 3; // 描述信息
  3718. optional string Tip = 4; // 此协议只是为了拥有一个功能码(出金)
  3719. }
  3720. // 账户服务入金增加金额应答
  3721. message bs2asInBankRsp {
  3722. optional MessageHead Header = 1; // 消息头
  3723. optional int32 RetCode = 2; // 返回码
  3724. optional string RetDesc = 3; // 描述信息
  3725. optional string Tip = 4; // 此协议只是为了拥有一个功能码(入金)
  3726. }
  3727. // 开始上传客户信息请求
  3728. message m2bInformToUploadUserInfoReq {
  3729. optional MessageHead Header = 1;
  3730. required uint64 ExtOperatorID = 2; // 外部操作流水号
  3731. optional string Tip = 3; // 这个是交易端通知上传报文,银行服务检查并上传所有没有上传的客户信息
  3732. }
  3733. // 开始上传客户信息应答
  3734. message m2bInformToUploadUserInfoRsp {
  3735. optional MessageHead Header = 1; // 消息头
  3736. optional int32 RetCode = 2; // 返回码
  3737. optional string RetDesc = 3; // 描述信息
  3738. required uint64 ExtOperatorID = 4; // 外部操作流水号
  3739. required int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
  3740. required string ExchTicket = 6; // 交易所流水号
  3741. }
  3742. // 银行账户信息
  3743. message ArrayBsBankAccInfos {
  3744. optional string BankId = 1; // 银行卡行号
  3745. optional string BankAccNo = 2; // 银行卡号
  3746. optional string BankAccName = 3; // 银行卡户名
  3747. optional string Status = 4; // 银行卡状态
  3748. }
  3749. // 账户信息查询请求
  3750. message t2bQueryAccInfosReq {
  3751. optional MessageHead Header = 1;
  3752. required uint64 ExtOperatorID = 2; // 外部操作流水号
  3753. required string CusBankID = 3; // 托管银行编号
  3754. optional string ExchId = 4; // 交易所编号
  3755. optional string TradeDate = 5; // 交易日
  3756. optional string ExchTicket = 6; // 交易所流水号
  3757. required string AccountCode = 7; // 资金账户
  3758. optional string BankChildAccount = 8; // 银行子账号
  3759. optional string BankChildAccountName = 9; // 银行子账号名
  3760. optional string OldTaPWD = 10; // 资金密码
  3761. optional string QueryType = 11; // 查询类别[1-查询所有信息;2-查询余额;3-查询银行卡]
  3762. }
  3763. // 账户信息查询应答
  3764. message t2bQueryAccInfosRsp {
  3765. optional MessageHead Header = 1; // 消息头
  3766. optional int32 RetCode = 2; // 返回码
  3767. optional string RetDesc = 3; // 描述信息
  3768. optional uint64 ExtOperatorID = 4; // 外部操作流水号
  3769. optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
  3770. required string ExchId = 6; // 交易所编号
  3771. optional string TradeDate = 7; // 交易日
  3772. required string ExchTicket = 8; // 交易所流水号
  3773. optional string BankTicket = 9; // 中心流水号
  3774. optional string BankRetCode = 10; // 返回码
  3775. optional string BankRetMsg = 11; // 返回结果说明
  3776. optional string SignStatus = 12; // 签约状态
  3777. optional string CustName = 13; // 客户名称
  3778. optional string CustShortName = 14; // 客户简称
  3779. optional string CustType = 15; // 客户类型
  3780. optional string LagalName = 16; // 法人姓名
  3781. optional string CertType = 17; // 证件类型
  3782. optional string CertNo = 18; // 证件号码
  3783. optional string Sex = 19; // 性别
  3784. optional string OrgCode = 20; // 组织机构代码
  3785. optional string Nationality = 21; // 国籍
  3786. optional string Addr = 22; // 地址
  3787. optional string ContactName = 23; // 联系人姓名
  3788. optional string ContactPhone = 24; // 联系人电话
  3789. optional string ContactFax = 25; // 联系人传真
  3790. optional string ContactEmail = 26; // 联系人邮箱
  3791. optional string RelatedAcctStr = 27; // 经纪商账号
  3792. optional string AgenName = 28; // 经办人姓名
  3793. optional string AgenCertType = 29; // 经办人证件类型
  3794. optional string AgenCertNo = 30; // 经办人证件号码
  3795. optional double Balan = 31; // 资金余额
  3796. optional double CanUseAmount = 32; // 可用余额
  3797. optional double CanGetAmount = 33; // 可取余额
  3798. optional double FrozeAmount = 34; // 冻结金额
  3799. optional double InBankAmount = 35; // 入金账户金额
  3800. repeated ArrayBsBankAccInfos BankAccInfos = 36; // 银行卡信息(列表)
  3801. }
  3802. // 交易所账号
  3803. message ArrayBsExchAccList {
  3804. optional string AccNo = 1; // 账号
  3805. optional string AccName = 2; // 账号名称
  3806. optional string AccTypeName = 3; // 账户属性名称
  3807. optional string Currency = 4; // 币种
  3808. optional double Balan = 5; // 资金余额
  3809. optional double CanUseAmount = 6; // 可用余额
  3810. optional double CanGetAmount = 7; // 可取余额
  3811. optional double FrozeAmount = 8; // 冻结金额
  3812. }
  3813. // 商户账户信息查询请求
  3814. message t2bQueryExchAccInfosReq {
  3815. optional MessageHead Header = 1;
  3816. required uint64 ExtOperatorID = 2; // 外部操作流水号
  3817. required string CusBankID = 3; // 托管银行编号
  3818. optional string ExchId = 4; // 交易所编号
  3819. optional string TradeDate = 5; // 交易日
  3820. optional string ExchTicket = 6; // 交易所流水号
  3821. optional string BusinessNo = 7; // 银行业务编号
  3822. optional int32 AccType = 8; // 账户类型[0-所有;1-资金调拨;2-费用划转;
  3823. }
  3824. // 商户账户信息查询应答
  3825. message t2bQueryExchAccInfosRsp {
  3826. optional MessageHead Header = 1; // 消息头
  3827. optional int32 RetCode = 2; // 返回码
  3828. optional string RetDesc = 3; // 描述信息
  3829. optional uint64 ExtOperatorID = 4; // 外部操作流水号
  3830. optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
  3831. optional string ExchId = 6; // 交易所编号
  3832. optional string TradeDate = 7; // 交易日
  3833. optional string ExchTicket = 8; // 交易所流水号
  3834. optional string BankTicket = 9; // 中心流水号
  3835. optional string BankRetCode = 10; // 返回码
  3836. optional string BankRetMsg = 11; // 返回结果说明
  3837. repeated ArrayBsExchAccList AccList = 12; // 账户列表
  3838. }
  3839. // 交易信息查询请求
  3840. message t2bQueryBusinessStatusReq {
  3841. optional MessageHead Header = 1;
  3842. required uint64 ExtOperatorID = 2; // 外部操作流水号
  3843. required string CusBankID = 3; // 托管银行编号
  3844. optional string ExchId = 4; // 交易所编号
  3845. optional string TradeDate = 5; // 交易日
  3846. optional string ExchTicket = 6; // 交易所流水号
  3847. optional string BusinessNo = 7; // 银行业务编号
  3848. optional string QueryBusinessNo = 8; // 业务编号[原报文的业务编号]
  3849. optional string QueryExchTicket = 9; // 交易流水号[查询交易的交易所流水号]
  3850. optional string QueryType = 10; // 查询类别[1-查询所有信息;2-查询状态]
  3851. }
  3852. // 交易信息查询应答
  3853. message t2bQueryBusinessStatusRsp {
  3854. optional MessageHead Header = 1; // 消息头
  3855. optional int32 RetCode = 2; // 返回码
  3856. optional string RetDesc = 3; // 描述信息
  3857. optional uint64 ExtOperatorID = 4; // 外部操作流水号
  3858. optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
  3859. optional string ExchId = 6; // 交易所编号
  3860. optional string TradeDate = 7; // 交易日
  3861. optional string ExchTicket = 8; // 交易所流水号
  3862. optional string BankTicket = 9; // 中心流水号
  3863. optional string BankRetCode = 10; // 返回码
  3864. optional string BankRetMsg = 11; // 返回结果说明
  3865. optional string QueryExchTicket = 12; // 原业务中心流水号
  3866. optional string BusinessCheckDate = 13; // 对账日期
  3867. optional string BusinessStatus = 14; // 交易状态
  3868. optional double BusinessAmout = 15; // 金额
  3869. optional string BusinessCurrency = 16; // 币种
  3870. optional string BusinessDate = 17; // 交易日期
  3871. optional string BusinessTime = 18; // 交易时间
  3872. optional string BusinessRemark = 19; // 备注
  3873. }
  3874. // 链接地址查询请求
  3875. message t2bQueryLinkAddrReq {
  3876. optional MessageHead Header = 1;
  3877. required uint64 ExtOperatorID = 2; // 外部操作流水号
  3878. required string CusBankID = 3; // 托管银行编号
  3879. optional string Tip = 4; // 本报文返回的内容是28102
  3880. optional string ExchId = 5; // 交易所编号
  3881. optional string TradeDate = 6; // 交易日
  3882. optional string ExchTicket = 7; // 交易所流水号
  3883. required string AccountCode = 8; // 资金账户
  3884. optional string BusinessNo = 9; // 银行业务编号
  3885. optional string BankChildAccount = 10; // 银行子账号
  3886. optional string BankChildAccountName = 11; // 银行子账号名
  3887. optional string OldTaPWD = 12; // 资金密码
  3888. optional string QueryType = 13; // 查询类别[1-管理页面]
  3889. }
  3890. // 链接地址查询应答
  3891. message t2bQueryLinkAddrRsp {
  3892. optional MessageHead Header = 1; // 消息头
  3893. optional int32 RetCode = 2; // 返回码
  3894. optional string RetDesc = 3; // 描述信息
  3895. required uint64 ExtOperatorID = 4; // 外部操作流水号
  3896. required string CusBankID = 5; // 托管银行编号
  3897. optional string ExchId = 6; // 交易所编号
  3898. optional string TradeDate = 7; // 交易日
  3899. optional string ExchTicket = 8; // 交易所流水号
  3900. optional string BankTicket = 9; // 银行流水号
  3901. optional string BusinessNo = 10; // 业务编号
  3902. optional string Link = 11; // 信息内容
  3903. }
  3904. // 费用查询请求
  3905. message t2bQueryExchChargeReq {
  3906. optional MessageHead Header = 1;
  3907. required uint64 ExtOperatorID = 2; // 外部操作流水号
  3908. required string CusBankID = 3; // 托管银行编号
  3909. optional string ExchId = 4; // 交易所编号
  3910. optional string TradeDate = 5; // 交易日
  3911. optional string ExchTicket = 6; // 交易所流水号
  3912. optional string BusinessNo = 7; // 银行业务编号
  3913. optional int32 QueryType = 8; // 费用类别[1-收益]
  3914. optional string BeginDate = 9; // 开始日期
  3915. optional string EndDate = 10; // 结束日期
  3916. }
  3917. // 费用查询应答
  3918. message t2bQueryExchChargeRsp {
  3919. optional MessageHead Header = 1; // 消息头
  3920. optional int32 RetCode = 2; // 返回码
  3921. optional string RetDesc = 3; // 描述信息
  3922. optional uint64 ExtOperatorID = 4; // 外部操作流水号
  3923. optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
  3924. optional string ExchId = 6; // 交易所编号
  3925. optional string TradeDate = 7; // 交易日
  3926. optional string ExchTicket = 8; // 交易所流水号
  3927. optional string BankTicket = 9; // 中心流水号
  3928. optional string BankRetCode = 10; // 返回码
  3929. optional string BankRetMsg = 11; // 返回结果说明
  3930. optional double Amount = 12; // 金额
  3931. optional string Currency = 13; // 币种
  3932. }
  3933. // 交易所向中心报送文件请求
  3934. message b2cInformFileReadyReq {
  3935. optional MessageHead Header = 1;
  3936. required string CusBankID = 2; // 托管银行编号
  3937. optional string ExchId = 3; // 交易所编号
  3938. optional string TradeDate = 4; // 交易日
  3939. optional string ExchTicket = 5; // 交易所流水号
  3940. optional string FileType = 6; // 文件类型
  3941. optional string FilePath = 7; // 文件路径
  3942. optional string FileName = 8; // 文件名称
  3943. optional int32 IsResend = 9; // 是否重发
  3944. optional string MD5 = 10; // 文件MD5码
  3945. }
  3946. // 交易所向中心报送文件应答
  3947. message b2cInformFileReadyRsp {
  3948. optional MessageHead Header = 1; // 消息头
  3949. optional int32 RetCode = 2; // 返回码
  3950. optional string RetDesc = 3; // 描述信息
  3951. optional uint64 ExtOperatorID = 4; // 外部操作流水号
  3952. optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
  3953. optional string ExchId = 6; // 交易所编号
  3954. required string TradeDate = 7; // 交易日
  3955. required string ExchTicket = 8; // 交易所流水号
  3956. required string BankTicket = 9; // 中心流水号
  3957. required string BankRetCode = 10; // 返回码
  3958. optional string BankRetMsg = 11; // 返回结果说明
  3959. }
  3960. // 平台资金划转请求
  3961. message t2bExchOutInBankReq {
  3962. optional MessageHead Header = 1;
  3963. required uint64 ExtOperatorID = 2; // 外部操作流水号
  3964. required string CusBankID = 3; // 托管银行编号
  3965. optional string ExchId = 4; // 交易所编号
  3966. optional string TradeDate = 5; // 交易日
  3967. optional string ExchTicket = 6; // 交易所流水号
  3968. optional string BusinessNo = 7; // 银行业务编号
  3969. optional int32 TransferType = 8; // 资金划转类别[1-资金调拨;2-费用划转;3-利息划转]
  3970. optional string BankAccNo = 9; // 银行账号
  3971. optional string BankAccName = 10; // 银行账户名
  3972. optional string TargetBankId = 11; // 收款方银行行号
  3973. optional string TargetBankAccNo = 12; // 收款方银行账号
  3974. optional string TargetBankAccName = 13; // 收款方银行账户名
  3975. optional string BeginDate = 14; // 开始日期
  3976. optional string EndDate = 15; // 结束日期
  3977. optional double Amount = 16; // 金额
  3978. optional string Currency = 17; // 币种
  3979. optional string Remark = 18; // 备注
  3980. }
  3981. // 平台资金划转应答
  3982. message t2bExchOutInBankRsp {
  3983. optional MessageHead Header = 1; // 消息头
  3984. optional int32 RetCode = 2; // 返回码
  3985. optional string RetDesc = 3; // 描述信息
  3986. optional uint64 ExtOperatorID = 4; // 外部操作流水号
  3987. optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
  3988. optional string ExchId = 6; // 交易所编号
  3989. optional string TradeDate = 7; // 交易日
  3990. optional string ExchTicket = 8; // 交易所流水号
  3991. optional string BankTicket = 9; // 中心流水号
  3992. optional string BankRetCode = 10; // 返回码
  3993. optional string BankRetMsg = 11; // 返回结果说明
  3994. }
  3995. // 中心向交易所报送文件请求
  3996. message c2bInformFileReadyReq {
  3997. optional MessageHead Header = 1;
  3998. required string CusBankID = 2; // 托管银行编号
  3999. optional string ExchId = 3; // 交易所编号
  4000. optional string TradeDate = 4; // 交易日
  4001. optional string ExchTicket = 5; // 交易所流水号
  4002. optional string BusinessNo = 6; // 银行业务编号
  4003. optional string FileType = 7; // 文件类型
  4004. optional string FilePath = 8; // 文件路径
  4005. optional string FileName = 9; // 文件名称
  4006. optional int32 IsResend = 10; // 是否重发
  4007. optional string MD5 = 11; // 文件MD5码
  4008. optional string BankTicket = 12; // 中心流水号
  4009. }
  4010. // 中心向交易所报送文件应答
  4011. message c2bInformFileReadyRsp {
  4012. optional MessageHead Header = 1; // 消息头
  4013. optional int32 RetCode = 2; // 返回码
  4014. optional string RetDesc = 3; // 描述信息
  4015. optional uint64 ExtOperatorID = 4; // 外部操作流水号
  4016. optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
  4017. optional string ExchId = 6; // 交易所编号
  4018. required string TradeDate = 7; // 交易日
  4019. required string ExchTicket = 8; // 交易所流水号
  4020. required string BankTicket = 9; // 中心流水号
  4021. required string BankRetCode = 10; // 返回码
  4022. optional string BankRetMsg = 11; // 返回结果说明
  4023. }
  4024. // 中心通知链接地址信息请求
  4025. message c2bInformLinkAddrReq {
  4026. optional MessageHead Header = 1;
  4027. optional string ExchId = 2; // 交易所编号
  4028. optional string TradeDate = 3; // 交易日
  4029. optional string ExchTicket = 4; // 交易所流水号
  4030. optional string BankTicket = 5; // 银行流水号
  4031. optional string BusinessNo = 6; // 业务编号
  4032. optional string Link = 7; // 信息内容
  4033. }
  4034. // 对账文件通知处理请求
  4035. message bsOnInformAccCheckFileReq {
  4036. optional MessageHead Header = 1;
  4037. optional uint64 ExtOperatorID = 2; // 外部操作流水号
  4038. required string CusBankID = 3; // 托管银行编号
  4039. optional string ExchId = 4; // 交易所编号
  4040. required string TradeDate = 5; // 交易日
  4041. optional string FilePath = 6; // 文件路径
  4042. optional string FileName = 7; // 文件名称
  4043. optional string MD5 = 8; // 文件MD5码
  4044. optional string BankTicket = 9; // 中心流水号
  4045. }
  4046. // 对账文件通知处理应答
  4047. message bsOnInformAccCheckFileRsp {
  4048. optional MessageHead Header = 1; // 消息头
  4049. optional int32 RetCode = 2; // 返回码
  4050. optional string RetDesc = 3; // 描述信息
  4051. optional uint64 ExtOperatorID = 4; // 外部操作流水号(请求报文中有此字段才回应这个报文)
  4052. optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
  4053. optional string ExchId = 6; // 交易所编号
  4054. required string TradeDate = 7; // 交易日
  4055. required string ExchTicket = 8; // 交易所流水号
  4056. }
  4057. // 准备对账请求
  4058. message bsPrepareDataForAccCheckReq {
  4059. optional MessageHead Header = 1;
  4060. optional uint64 ExtOperatorID = 2; // 外部操作流水号
  4061. required string CusBankID = 3; // 托管银行编号
  4062. optional string ExchId = 4; // 交易所编号
  4063. required string TradeDate = 5; // 交易日
  4064. optional string FilePath = 6; // 文件路径
  4065. optional string FileName = 7; // 文件名称
  4066. optional string MD5 = 8; // 文件MD5码
  4067. optional string BankTicket = 9; // 中心流水号
  4068. }
  4069. // 准备对账应答
  4070. message bsPrepareDataForAccCheckRsp {
  4071. optional MessageHead Header = 1; // 消息头
  4072. optional int32 RetCode = 2; // 返回码
  4073. optional string RetDesc = 3; // 描述信息
  4074. optional uint64 ExtOperatorID = 4; // 外部操作流水号(请求报文中有此字段才回应这个报文)
  4075. optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
  4076. optional string ExchId = 6; // 交易所编号
  4077. required string TradeDate = 7; // 交易日
  4078. required string ExchTicket = 8; // 交易所流水号
  4079. }
  4080. // 对账请求
  4081. message bsAccCheckReq {
  4082. optional MessageHead Header = 1;
  4083. optional string CusBankID = 2; // 托管银行编号
  4084. optional string ExchId = 3; // 交易所编号
  4085. required string TradeDate = 4; // 交易日
  4086. }
  4087. // 通知交易端处理单边账请求
  4088. message bs2tInformAccCheckResReq {
  4089. optional MessageHead Header = 1;
  4090. required string CusBankID = 2; // 托管银行编号
  4091. optional string ExchId = 3; // 交易所编号
  4092. required string TradeDate = 4; // 交易日
  4093. optional int64 Status = 5; // 状态(0:对账成功没有单边账;其他请处理单边账)
  4094. optional string Remark = 6; // 备注
  4095. }
  4096. // 通知交易端处理单边账应答
  4097. message bs2tInformAccCheckResRsp {
  4098. optional MessageHead Header = 1; // 消息头
  4099. optional int32 RetCode = 2; // 返回码
  4100. optional string RetDesc = 3; // 描述信息
  4101. required uint64 ExtOperatorID = 4; // 外部操作流水号(只要收到此应答报文,就认为通知成功)
  4102. required string CusBankID = 5; // 托管银行编号
  4103. optional string ExchId = 6; // 交易所编号
  4104. required string TradeDate = 7; // 交易日
  4105. }
  4106. // 交易端通知所有单边账处理完毕请求
  4107. message t2bInformAdjustFinishReq {
  4108. optional MessageHead Header = 1;
  4109. required uint64 ExtOperatorID = 2; // 外部操作流水号
  4110. required string CusBankID = 3; // 托管银行编号
  4111. optional string ExchId = 4; // 交易所编号
  4112. required string TradeDate = 5; // 交易日
  4113. }
  4114. // 交易端通知所有单边账处理完毕应答
  4115. message t2bInformAdjustFinishRsp {
  4116. optional MessageHead Header = 1; // 消息头
  4117. optional int32 RetCode = 2; // 返回码
  4118. optional string RetDesc = 3; // 描述信息
  4119. required uint64 ExtOperatorID = 4; // 外部操作流水号(请求报文中有此字段才回应这个报文)
  4120. optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
  4121. optional string ExchId = 6; // 交易所编号
  4122. required string TradeDate = 7; // 交易日
  4123. required string ExchTicket = 8; // 交易所流水号
  4124. }
  4125. // 控制服务广播消息请求
  4126. message cs2bsInformMsgReq {
  4127. optional MessageHead Header = 1;
  4128. required int32 Status = 2; // 状态(1:待开市;40.签到开始;44.签退开始;51.清算开始;)
  4129. required string TradeDay = 3; // 交易日
  4130. optional string NextTradeDay = 4; // 下一次开市日期
  4131. }
  4132. // 通知控制服务业务处理状态
  4133. message bs2csInformMsgReq {
  4134. optional MessageHead Header = 1;
  4135. required string ExchTicket = 2; // 交易所流水号
  4136. required string TradeDate = 3; // 交易日
  4137. required int32 Status = 4; // 状态(1:待开市;40.签到开始;41.签到成功;42.签到部份成功;43.签到失败;44.签退开始;45.签退成功;46.签退部份成功;47.签退失败;48.对账开始;49.对账成功;50.对账失败;51.清算开始;52.清算成功;53.清算失败;)
  4138. optional string remark = 5; // 状态描述
  4139. }
  4140. // 交易所审核结果通知请求
  4141. message t2bExchConfirmBusinessReq {
  4142. optional MessageHead Header = 1;
  4143. required uint64 extoperatorid = 2; // 外部操作流水号
  4144. required string cusbankid = 3; // 托管银行编号
  4145. required string AccountCode = 4; // 资金账户(交易所的出入金,填0)
  4146. optional string exchid = 5; // 交易所编号
  4147. optional string tradedate = 6; // 交易日(被审业务发生的交易日)
  4148. required string exchticket = 7; // 交易所流水号(被审核的流水)
  4149. optional string bankticket = 8; // 中心流水号
  4150. required int32 businesstype = 9; // 交易类型[1:入金;2:出金;3:签约;4:解约;5:资金调拨;
  4151. required int32 businessconfirmstatus = 10; // 审核结果[1:通过;2:拒绝]
  4152. optional string retcode = 11; // 返回码
  4153. optional string retmsg = 12; // 返回结果说明
  4154. optional string remark = 13; // 备注
  4155. optional uint64 auditid = 14; // 审核人
  4156. optional string extend = 15; // 扩展信息(若这个字段存在,则会更新到出入金申请表的扩展字段)
  4157. }
  4158. // 交易所审核结果通知应答
  4159. message t2bExchConfirmBusinessRsp {
  4160. optional MessageHead Header = 1; // 消息头
  4161. optional int32 RetCode = 2; // 返回码
  4162. optional string RetDesc = 3; // 描述信息
  4163. required uint64 ExtOperatorID = 4; // 外部操作流水号
  4164. required int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
  4165. required string ExchTicket = 6; // 交易所流水号(操作流水,非被审核交易的流水)
  4166. }
  4167. // 交易所单边账调整请求
  4168. message t2bExchDealCheckErrReq {
  4169. optional MessageHead Header = 1;
  4170. required uint64 extoperatorid = 2; // 外部操作流水号(发起本次交易的流水,发起方填写)
  4171. required string AccountCode = 3; // 资金账户(从差错表取)
  4172. required string TradeDate = 4; // 交易日(从差错表取)
  4173. required string AutoId = 5; // 单边账ID(从差错表取)
  4174. required string ModifID = 6; // 单边账调整操作人员
  4175. required string Remark = 7; // 调整操作描述
  4176. required string ErrCode = 8; // 单边账错误码(从差错表取)
  4177. required int32 OperType = 9; // 单边账操作类型(1:银行服务正常处理;2:
  4178. optional string CusBankID = 10; // 托管银行编号(在哪个托管银行上操作):多签约时,必须填写
  4179. }
  4180. // 交易所单边账调整应答
  4181. message t2bExchDealCheckErrRsp {
  4182. optional MessageHead Header = 1; // 消息头
  4183. optional int32 RetCode = 2; // 返回码
  4184. optional string RetDesc = 3; // 描述信息
  4185. required uint64 ExtOperatorID = 4; // 外部操作流水号
  4186. required int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
  4187. optional string remark = 6; // 备注
  4188. }
  4189. // 开市或者闭市通知请求
  4190. message t2bMarkingOpenOrCloseReq {
  4191. optional MessageHead Header = 1;
  4192. optional string ExchId = 2; // 交易所编号
  4193. required string ExchDate = 3; // 交易所日期
  4194. required string OpenDate = 4; // 开市日期
  4195. required string NextDate = 5; // 下个开市日期
  4196. required int32 Flag = 6; // 开休市标记1-开市;0-休市
  4197. optional string extend_info = 7; // 扩展信息
  4198. }
  4199. // 开市或者闭市通知应答
  4200. message t2bMarkingOpenOrCloseRsp {
  4201. optional MessageHead Header = 1; // 消息头
  4202. optional int32 RetCode = 2; // 返回码
  4203. optional string RetDesc = 3; // 描述信息
  4204. required string ExchDate = 4; // 交易所日期
  4205. optional string CenterRetCode = 5; // 返回码(中心)
  4206. optional string CenterRetMsg = 6; // 返回结果说明(中心)
  4207. }
  4208. // 第三方支付模式退款申请请求
  4209. message t2bThirdBankOutApplyReq {
  4210. optional MessageHead Header = 1;
  4211. required uint64 extoperatorid = 2; // 外部操作流水号(本次流水号)
  4212. required string CusbankId = 3; // 第三方退款的托管银行渠道编号(中心定义的)
  4213. required string TradeDate = 4; // 交易日(YYYYMMDD)
  4214. required uint64 AccoutCode = 5; // 资金账户
  4215. required uint64 RelateId = 6; // 关联单号
  4216. required string RelateTradeDate = 7; // 关联单号的发生日期(YYYYMMDD)
  4217. required double RelateAmount = 8; // 关联单号的金额
  4218. optional string extend_info = 9; // 备注
  4219. }
  4220. // 第三方支付模式退款申请应答
  4221. message t2bThirdBankOutApplyRsp {
  4222. optional MessageHead Header = 1; // 消息头
  4223. optional int32 RetCode = 2; // 返回码
  4224. optional string RetDesc = 3; // 描述信息
  4225. required uint64 extoperatorid = 4; // 外部操作流水号(发起申请时的流水)
  4226. required uint64 Exchticket = 5; // 银行服务操作流水
  4227. required string TradeDate = 6; // 交易日(YYYYMMDD)
  4228. required uint64 Status = 7; // 返回状态码(0成功,其他数值参考银行服务的错误码)
  4229. optional string remark = 8; // 描述
  4230. }
  4231. // 第三方支付模式退款结果通知请求
  4232. message t2bThirdBankOutNtfReq {
  4233. optional MessageHead Header = 1;
  4234. required uint64 extoperatorid = 2; // 外部操作流水号(本次流水号)
  4235. required uint64 Exchticket = 3; // 银行服务操作流水(退款申请时返回的银行服务流水)
  4236. required string TradeDate = 4; // 交易日(YYYYMMDD)
  4237. required string ApplyTradeDate = 5; // 退款申请交易日(YYYYMMDD)
  4238. required uint64 AccoutCode = 6; // 资金账户
  4239. required string CusbankId = 7; // 第三方退款的托管银行渠道编号(中心定义的)
  4240. required int32 Result = 8; // 退款结果代号(1:成功;2:失败)
  4241. optional string ResultMsg = 9; // 结果描述
  4242. }
  4243. // 第三方支付模式退款结果通知应答
  4244. message t2bThirdBankOutNtfRsp {
  4245. optional MessageHead Header = 1; // 消息头
  4246. optional int32 RetCode = 2; // 返回码
  4247. optional string RetDesc = 3; // 描述信息
  4248. required uint64 extoperatorid = 4; // 外部操作流水号(发起申请时的流水)
  4249. required uint64 Exchticket = 5; // 银行服务操作流水
  4250. required string TradeDate = 6; // 交易日(YYYYMMDD)
  4251. required uint64 Status = 7; // 返回状态码(0成功,其他数值参考银行服务的错误码)
  4252. optional string remark = 8; // 描述
  4253. }
  4254. // 内部审核银行端出金申请通知请求
  4255. message t2bConfirmBankWithdrawApplyNtfReq {
  4256. optional MessageHead Header = 1;
  4257. required string CusBankID = 2; // 托管银行编号
  4258. optional string ExchId = 3; // 交易所编号
  4259. optional string TradeDate = 4; // 交易日
  4260. required string BankTicket = 5; // 银行流水号(审核拒绝才发这个通知给中心,中心没有应答返回)
  4261. optional string ExchTicket = 6; // 交易所流水号
  4262. optional string ConfirmStatus = 7; // 审核状态(目前只有审核拒绝才发这个通知)
  4263. optional string ConfirmMsg = 8; // 审核信息
  4264. }
  4265. // 内部审核银行端出金申请通知应答
  4266. message t2bConfirmBankWithdrawApplyNtfRsp {
  4267. optional MessageHead Header = 1; // 消息头
  4268. optional int32 RetCode = 2; // 返回码
  4269. optional string RetDesc = 3; // 描述信息
  4270. optional uint64 ExtOperatorID = 4; // 外部操作流水号
  4271. optional int32 Status = 5; // 状态(0成功,1处理中,
  4272. optional string StatusMsg = 6; // 处理状态描述文本
  4273. required string ExchTicket = 7; // 交易所流水号(目前中心没这个应答)
  4274. required string BankTicket = 8; // 银行流水号(目前中心没这个应答)
  4275. optional string ExchId = 9; // 交易所编号
  4276. required string TradeDate = 10; // 交易日
  4277. required string ExchErrCode = 11; // 银行服务返回码
  4278. optional string ExchErrMsg = 12; // 银行服务返回结果说明
  4279. }
  4280. // 入金验证码校验报文请求
  4281. message t2bShortMsgCheckReq {
  4282. optional MessageHead Header = 1;
  4283. required uint64 extoperatorid = 2; // 外部操作流水号(发起本次交易的流水,发起方填写)
  4284. required string CusBankID = 3; // 托管银行编号
  4285. required string AccountCode = 4; // 资金账户
  4286. optional string ExchId = 5; // 交易所编号
  4287. optional string TradeDate = 6; // 交易日
  4288. optional string ExchTicket = 7; // 交易所流水号
  4289. required string RelatedExchTicket = 8; // 关联的入金流水号(返回的银行服务流水号)
  4290. optional string ShortMsgId = 9; // 手机验证码
  4291. optional string Extend = 10; // 扩展信息
  4292. }
  4293. // 入金验证码校验报文应答
  4294. message t2bShortMsgCheckRsp {
  4295. optional MessageHead Header = 1; // 消息头
  4296. optional int32 RetCode = 2; // 返回码
  4297. optional string RetDesc = 3; // 描述信息
  4298. optional uint64 ExtOperatorID = 4; // 外部操作流水号
  4299. optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
  4300. optional string ExchId = 6; // 交易所编号
  4301. optional string ExchTicket = 7; // 交易所流水号
  4302. optional string CenterRetCode = 8; // 返回码
  4303. optional string CenterRetDesc = 9; // 返回结果说明
  4304. optional string BankTicket = 10; // 中心流水号
  4305. }
  4306. // 管理端调整资金请求
  4307. message t2bManageAdjutAmountReq {
  4308. optional MessageHead Header = 1;
  4309. required uint64 ExtOperatorID = 2; // 外部操作流水(发起方填写)
  4310. required int32 acc_type = 3; // 账户类型:1外部账户;其他暂时填0;
  4311. required uint64 acc = 4; // 资金账号
  4312. required double amount_nml = 5; // 非授信金额(资金调整金额只填这里)
  4313. optional double amount_crd = 6; // 授信金额(资金调整这个字段不要填写)
  4314. optional int32 currency = 7; // 币种(和bank_accountadjustapply的currency字段一个含义)
  4315. required string tradedate = 8; // 交易日(格式:yyyymmdd)
  4316. optional uint64 related_extticket = 9; // 关联外部流水号(发起方根据实际情况填写)
  4317. required int32 adjust_type = 10; // 调整类型(和bank_accountadjustapply的applytype字段对应)
  4318. required uint64 applyuserid = 11; // 申请人ID
  4319. optional string remark = 12; // 备注
  4320. }
  4321. // 管理端调整资金应答
  4322. message t2bManageAdjutAmountRsp {
  4323. optional MessageHead Header = 1; // 消息头
  4324. optional int32 RetCode = 2; // 返回码
  4325. optional string RetDesc = 3; // 描述信息
  4326. optional uint64 ExtOperatorID = 4; // 外部操作流水号(发回发起请求的流水)
  4327. optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
  4328. optional string ExchTicket = 6; // 交易所流水号
  4329. optional string remark = 7; // 备注
  4330. }
  4331. // 管理端资金转移请求
  4332. message t2bManageMoveAmountReq {
  4333. optional MessageHead Header = 1;
  4334. required uint64 ExtOperatorID = 2; // 外部操作流水(发起方填写)
  4335. required int32 acc_type = 3; // 账户类型:1外部账户;其他暂时填0;
  4336. required uint64 acc_main = 4; // 资金账号(母账号,资金调整账户填这个)
  4337. required uint64 acc_pay = 5; // 付款账户
  4338. required uint64 acc_receipt = 6; // 收款账户
  4339. required double amount_nml = 7; // 非授信金额(资金调整金额只填这里)
  4340. optional double amount_crd = 8; // 授信金额(资金调整这个字段不要填写)
  4341. optional int32 currency = 9; // 币种(和bank_accountadjustapply的currency字段一个含义)
  4342. required string tradedate = 10; // 交易日(格式:yyyymmdd)
  4343. optional uint64 related_extticket = 11; // 关联外部流水号(发起方根据实际情况填写)
  4344. required int32 adjust_type = 12; // 调整类型(和bank_accountadjustapply的applytype字段对应)
  4345. required uint64 applyuserid = 13; // 申请人ID
  4346. optional string remark = 14; // 备注
  4347. }
  4348. // 管理端资金转移应答
  4349. message t2bManageMoveAmountRsp {
  4350. optional MessageHead Header = 1; // 消息头
  4351. optional int32 RetCode = 2; // 返回码
  4352. optional string RetDesc = 3; // 描述信息
  4353. optional uint64 ExtOperatorID = 4; // 外部操作流水号(发回发起请求的流水)
  4354. optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
  4355. optional string ExchTicket = 6; // 交易所流水号
  4356. optional string remark = 7; // 备注
  4357. }
  4358. // 签约银行换签请求
  4359. message t2bSwitchSignBankReq {
  4360. optional MessageHead Header = 1;
  4361. required uint64 ExtOperatorID = 2; // 外部操作流水(发起方填写)
  4362. required uint64 acc_main = 3; // 资金账号
  4363. required string protoCancelSign = 4; // 原签约银行解约报文,t2bBankCancelSignReq
  4364. required int64 sizeProtoCancelSign = 5; // 原签约银行解约报文长度
  4365. required string protoSign = 6; // 目标(新)银行签约报文,t2bBankSignReq
  4366. required int64 sizeProtoSign = 7; // 目标(新)银行签约报文长度
  4367. optional string remark = 8; // 备注
  4368. }
  4369. // 签约银行换签应答
  4370. message t2bSwitchSignBankRsp {
  4371. optional MessageHead Header = 1; // 消息头
  4372. optional int32 RetCode = 2; // 返回码
  4373. optional string RetDesc = 3; // 描述信息
  4374. optional uint64 ExtOperatorID = 4; // 外部操作流水号(发回发起请求的流水)
  4375. optional int32 Status = 5; // 状态(0成功,其他数值参考银行服务的错误码)
  4376. optional string ExchTicket = 6; // 交易所流水号
  4377. optional string remark = 7; // 备注
  4378. }
  4379. // 实时行情
  4380. message RealtimeQuote {
  4381. optional uint32 GoodsID = 1; // 商品ID
  4382. optional string GoodsCode = 2; // 商品编码
  4383. optional uint32 DecimalPlace = 3; // 报价小数位
  4384. optional uint64 Last = 4; // 最新价
  4385. optional uint64 LastVolume = 5; // 最新成交量
  4386. optional uint64 LastTurnover = 6; // 最新成交金额
  4387. optional uint64 LastLot = 7; // 最新成交笔数
  4388. optional uint64 TotalVolume = 8; // 总成交量
  4389. optional uint64 TotalHolderVolume = 9; // 总持仓数量
  4390. optional uint64 TotalTurnover = 10; // 总成交金额
  4391. optional uint64 TotalLot = 11; // 总成交笔数
  4392. optional string TradeDate = 12; // 交易日
  4393. optional string DateTime = 13; // 报价时间
  4394. optional uint64 NID = 14; // 数据报文ID
  4395. optional uint64 ReckonPrice = 15; // 结算价
  4396. optional uint64 PreReckonPrice = 16; // 昨日结算价
  4397. optional uint64 NonTotalVolume = 17; // 非交易总成交量
  4398. optional int64 NonTotalHolderVolume = 18; // 非交易总持仓数量
  4399. optional uint64 NonTotalTurnover = 19; // 非交易总成交金额
  4400. optional uint64 NonTotalLot = 20; // 非交易总成交笔数
  4401. optional uint32 IsExsitBidAskPrice = 21; // 是否存在买卖价0:沿用上一次数据1:有数据,如果没有,则默认为0,填此字段,默认为1
  4402. optional uint64 Open = 22; // 开盘价
  4403. optional uint64 High = 23; // 最高价
  4404. optional uint64 Low = 24; // 最低价
  4405. optional uint32 QuoteType = 25; // 行情类型
  4406. optional uint64 PreClose = 26; // 昨收价
  4407. optional uint64 Average = 27; // 均价
  4408. optional uint64 PreHoldVolume = 28; // 昨持仓
  4409. optional uint64 LowLimit = 29; // 跌停价
  4410. optional uint64 HighLimit = 30; // 涨停价
  4411. repeated uint64 BidPriceArray = 31; // 买价从1档~N档,不会存在第2档有数据,而第1档无的情况,如果为0,必须填0(资管港股及参考行情除外)
  4412. repeated uint64 AskPriceArray = 32; // 卖价从1档~N档,不会存在第2档有数据,而第1档无的情况,如果为0,必须填0(资管港股及参考行情除外)
  4413. repeated uint64 BidVolumeArray = 33; // 买量从1档~N档,不会存在第2档有数据,而第1档无的情况,如果为0,必须填0(资管港股及参考行情除外)
  4414. repeated uint64 AskVolumeArray = 34; // 卖量从1档~N档,不会存在第2档有数据,而第1档无的情况,如果为0,必须填0(资管港股及参考行情除外)
  4415. repeated uint64 BidOrderIDArray = 35; // 买挂牌单号1~N档
  4416. repeated uint64 AskOrderIDArray = 36; // 卖挂牌单号1~N档
  4417. repeated uint64 CallOptionPremiumsArray = 37; // 认购权利金1~N档
  4418. repeated uint64 PutOptionPremiumsArray = 38; // 认沽权利金1~N档
  4419. optional uint64 IEV = 39; // 参考平衡价
  4420. optional uint64 IEP = 40; // 参考平衡量
  4421. optional string PublicTradeType = 41; // 公开的交易类型
  4422. optional string BidQueueInfo = 42; // 买大利市
  4423. optional string AskQueueInfo = 43; // 卖大利市
  4424. optional uint64 GreyMarketPrice = 44; // 暗盘价
  4425. repeated uint64 BidOrderVolumeArray = 45; // 买单量1~N档
  4426. repeated uint64 AskOrderVolumeArray = 46; // 卖单量1~N档
  4427. optional double PremiumRate = 47; // 权利金费率
  4428. optional uint64 OptionPremium = 48; // 期权权利金
  4429. optional uint64 OptionAskVolume = 49; // 期权卖量
  4430. optional int64 PctChange = 50; // 涨跌百分比
  4431. optional int64 PriceChangeByPreClose = 51; // 涨跌值,相对于昨收
  4432. optional int64 PriceChangeByOpen = 52; // 涨跌值,相对于今开
  4433. }
  4434. // 商品码
  4435. message WareCode {
  4436. optional int32 ExchangeCode = 1; // 交易所数字代码
  4437. optional int32 WareGroupCode = 2; // optionalint32WareGroupCode
  4438. optional string strWare = 3; // 商品代码(内码)
  4439. optional int32 ReckonPriceType = 4; // 获取结算价类型
  4440. optional int32 ReferenceTime = 5; // 时间范围(单位分钟)
  4441. }
  4442. // 实时行情请求
  4443. message RealtimeQuoteReq {
  4444. optional MessageHead Header = 1;
  4445. repeated WareCode Wares = 2; //
  4446. optional int32 RequestType = 3; // 0表示订阅,非0表示取消订阅
  4447. }
  4448. // 实时行情应答
  4449. message RealtimeQuoteRsp {
  4450. optional MessageHead Header = 1; // 消息头
  4451. optional int32 RetCode = 2; // 返回码
  4452. optional string RetDesc = 3; // 描述信息
  4453. repeated RealtimeQuote PriceRecord = 4; // 实时行情推送数据
  4454. }
  4455. // 商品交易状态
  4456. message MarketInfo {
  4457. optional int32 ExchangeCode = 1; // 交易所数字代码
  4458. optional int32 WareGroupCode = 2; // 商品组数字代码
  4459. optional string strWare = 3; // 商品代码(内码)
  4460. optional int32 TradeState = 4; // 交易状态
  4461. optional string TradeTime = 5; // 交易时间安排
  4462. optional string TradeDay = 6; // 交易日
  4463. }
  4464. // 查询历史Tik数据请求
  4465. message QueryHistoryTikReq {
  4466. optional MessageHead Header = 1; // 消息头
  4467. optional QueryReqPageInfo PageInfo = 2; // 查询分页信息
  4468. optional string TradeDay = 3; // 交易日
  4469. optional int32 TradeDayFlag = 4; // 交易日查询标记,不填写默认为=
  4470. optional int32 BeginTikID = 5; // 开始的tik编号
  4471. optional int32 BeginTikIDFlag = 6; // 开始的tik编号查询标记,不填写默认为=
  4472. optional int32 EndTikID = 7; // 结束的tik编号
  4473. optional int32 EndTikIDFlag = 8; // 结束的tik编号查询标记,不填写默认为=
  4474. optional int32 nSourceID = 9; // 行情源编号
  4475. optional int32 nSourceIDFlag = 10; // 行情源编号查询标记,不填写默认为=
  4476. }
  4477. // 查询历史Tik数据请求
  4478. message QueryWareLastTikReq {
  4479. optional MessageHead Header = 1; // 消息头
  4480. optional QueryReqPageInfo PageInfo = 2; // 查询分页信息
  4481. repeated WareCode WareRecord = 3; //
  4482. optional int32 WareRecordFlag = 4; // 查询标记,不填写默认为=
  4483. }
  4484. // MTP查询历史tik数据请求
  4485. message QueryMTPWareLastTikReq {
  4486. optional MessageHead Header = 1; // 消息头
  4487. optional QueryReqPageInfo PageInfo = 2; // 查询分页信息
  4488. optional int32 ReckonType = 3; // 结算类型
  4489. optional int32 ReckonTypeFlag = 4; // 结算类型查询标记,不填写默认为=
  4490. optional int32 Value = 5; // 根据结算类型的含义表示相关数值
  4491. optional int32 ValueFlag = 6; // 根据结算类型的含义表示相关数值查询标记,不填写默认为=
  4492. optional string startTime = 7; // 开始时间=开盘时间
  4493. optional int32 startTimeFlag = 8; // 开始时间=开盘时间查询标记,不填写默认为=
  4494. optional string endTime = 9; // 结束时间=结算时间
  4495. optional int32 endTimeFlag = 10; // 结束时间=结算时间查询标记,不填写默认为=
  4496. repeated string Symbol = 11; // 交易所行情代码+下划线+合约代码,如:101_AU100
  4497. optional int32 SymbolFlag = 12; // 交易所行情代码+下划线+合约代码,如:101_AU100查询标记,不填写默认为=
  4498. }
  4499. // 商品报价
  4500. message ArrayGoodsQuote {
  4501. optional string Symbol = 1; // 商品代码
  4502. repeated RealtimeQuote PriceRecord = 2; //
  4503. }
  4504. // MTP查询历史tik数据响应
  4505. message QueryMTPWareLastTikRsp_ {
  4506. optional int32 ReckonType = 1; // 结算类型
  4507. optional int32 Value = 2; // 根据结算类型的含义表示相关数值
  4508. repeated ArrayGoodsQuote GoodsQuoteTiks = 3; //
  4509. }
  4510. message QueryMTPWareLastTikRsp {
  4511. optional MessageHead Header = 1; // 消息头
  4512. optional int32 RetCode = 2; // 返回码
  4513. optional string RetDesc = 3; // 描述信息
  4514. optional QueryRspPageInfo PageInfo = 4; // 查询结果分页信息
  4515. repeated QueryMTPWareLastTikRsp_ Rsps = 5; // 查询结果集
  4516. }
  4517. // 历史tik查询结果
  4518. message QueryHistoryTikRep {
  4519. repeated RealtimeQuote PriceRecord = 1; //
  4520. }
  4521. // 商品信息
  4522. message WareInfo {
  4523. optional int32 ExchCode = 1; // 交易所代码
  4524. optional string Symbol = 2; //
  4525. }
  4526. // 查询数据请求
  4527. message DaysDataReq {
  4528. optional MessageHead Header = 1;
  4529. repeated WareInfo wareInfo = 2; //
  4530. }
  4531. // 盘面数据
  4532. message DaysData {
  4533. optional int32 ExchCode = 1; // 交易所代码
  4534. optional string Symbol = 2; // 商品代码
  4535. optional string Last = 3; // 最新
  4536. optional string LimitHigh = 4; // 涨停
  4537. optional string LimitLow = 5; // 跌停
  4538. }
  4539. // 盘面数据响应
  4540. message DaysDataRsp {
  4541. optional MessageHead Header = 1; // 消息头
  4542. optional int32 RetCode = 2; // 返回码
  4543. optional string RetDesc = 3; // 描述信息
  4544. repeated DaysData daysData = 4; //
  4545. }
  4546. // 结算价查询
  4547. message SettlePriceReq {
  4548. optional MessageHead Header = 1;
  4549. repeated int32 GoodsIds = 2; // 商品ID
  4550. }
  4551. // 结算价
  4552. message SettlePrice {
  4553. required int32 GoodsId = 1; // 商品ID
  4554. required string TradeDate = 2; // 交易日
  4555. required string Price = 3; // 报价
  4556. }
  4557. // 结算价查询应答
  4558. message SettlePriceRsp {
  4559. optional MessageHead Header = 1; // 消息头
  4560. optional int32 RetCode = 2; // 返回码
  4561. optional string RetDesc = 3; // 描述信息
  4562. repeated SettlePrice SettlePrices = 4; //
  4563. }
  4564. // 行情数据报文
  4565. message Quotation {
  4566. optional uint32 GoodsID = 1; // 商品代码
  4567. optional uint32 QuoterID = 2; // 报价商ID
  4568. optional uint64 Bid = 3; // 买价
  4569. optional uint64 Bid2 = 4; // 买价2
  4570. optional uint64 Bid3 = 5; // 买价3
  4571. optional uint64 Bid4 = 6; // 买价4
  4572. optional uint64 Bid5 = 7; // 买价5
  4573. optional int64 BidVolume = 8; // 买量
  4574. optional int64 BidVolume2 = 9; // 买量2
  4575. optional int64 BidVolume3 = 10; // 买量3
  4576. optional int64 BidVolume4 = 11; // 买量4
  4577. optional int64 BidVolume5 = 12; // 买量5
  4578. optional uint64 Ask = 13; // 卖价
  4579. optional uint64 Ask2 = 14; // 卖价2
  4580. optional uint64 Ask3 = 15; // 卖价3
  4581. optional uint64 Ask4 = 16; // 卖价4
  4582. optional uint64 Ask5 = 17; // 卖价5
  4583. optional int64 AskVolume = 18; // 卖量
  4584. optional int64 AskVolume2 = 19; // 卖量2
  4585. optional int64 AskVolume3 = 20; // 卖量3
  4586. optional int64 AskVolume4 = 21; // 卖量4
  4587. optional int64 AskVolume5 = 22; // 卖量5
  4588. optional uint64 CallOptionPremiums = 23; // 认购权利金
  4589. optional uint64 CallOptionPremiums2 = 24; // 认购权利金2
  4590. optional uint64 CallOptionPremiums3 = 25; // 认购权利金3
  4591. optional uint64 CallOptionPremiums4 = 26; // 认购权利金4
  4592. optional uint64 CallOptionPremiums5 = 27; // 认购权利金5
  4593. optional uint64 PutOptionPremiums = 28; // 认沽权利金
  4594. optional uint64 PutOptionPremiums2 = 29; // 认沽权利金2
  4595. optional uint64 PutOptionPremiums3 = 30; // 认沽权利金3
  4596. optional uint64 PutOptionPremiums4 = 31; // 认沽权利金4
  4597. optional uint64 PutOptionPremiums5 = 32; // 认沽权利金5
  4598. optional string DateTime = 33; // 报价时间
  4599. optional uint64 VaildTime = 34; // 行情有效时间(秒)
  4600. optional uint32 QuoteMinValue = 35; // 报价随机量下限
  4601. optional uint32 QuoteMaxValue = 36; // 报价随机量上限
  4602. optional uint64 ReckonPrice = 37; // 结算价
  4603. optional uint64 Last = 38; // 最新价
  4604. optional uint64 LastVolume = 39; // 最新量
  4605. optional uint64 TopBid = 40; // 最高买价
  4606. optional uint64 BottomAsk = 41; // 最低卖价
  4607. optional int64 BidMove = 42; // 买点差
  4608. optional int64 AskMove = 43; // 卖点差
  4609. optional uint32 QuoteSource = 44; // 报价来源
  4610. optional double PremiumRate = 45; // 权利金费率
  4611. optional uint64 OptionAskVolume = 46; // 期权卖量
  4612. }
  4613. // 结算价行情
  4614. message ReckonQuotation {
  4615. optional uint32 MarketId = 1; // 市场Id
  4616. optional string TradeDate = 2; // 交易日
  4617. optional string GoodsCode = 3; // 商品编码
  4618. optional uint64 ReckonPrice = 4; // 结算价
  4619. optional uint64 PreReckonPrice = 5; // 昨日结算价
  4620. optional uint64 TotalHolderQty = 6; // 总持仓量
  4621. optional uint64 UpLimitPrice = 7; // 涨停价
  4622. optional uint64 DnLimitPrice = 8; // 跌停价
  4623. }
  4624. // 下发结算价信息
  4625. message ReckonPriceQuote {
  4626. optional string GoodsCode = 1; // 商品编码
  4627. optional string TradeDate = 2; // 交易日
  4628. optional string DateTime = 3; // 报价时间
  4629. optional uint64 Last = 4; // 最新价
  4630. optional uint64 ReckonPrice = 5; // 结算价
  4631. optional uint64 PreReckonPrice = 6; // 昨日结算价
  4632. optional uint64 HoldVolume = 7; // 持仓量
  4633. optional uint64 UpLimitPrice = 8; // 涨停价
  4634. optional uint64 DnLimitPrice = 9; // 跌停价
  4635. }
  4636. // 履约交易申请请求
  4637. message PerformanceTradeApplyReq {
  4638. optional MessageHead Header = 1;
  4639. optional int64 PerformancePlanTemplateID = 2; // 履约计划模板ID
  4640. optional uint32 PerformanceType = 3; // 履约类型
  4641. optional uint64 RelatedOrderID = 4; // 关联单号(履约类型的关联单号)
  4642. optional uint64 WRID = 5; // 仓单ID(可为空)
  4643. optional double Amount = 6; // 履约金额
  4644. optional uint64 WRTradeQty = 7; // 仓单交易数量
  4645. optional uint64 WRFreezeQty = 8; // 仓单已冻数量
  4646. optional uint64 BuyAccountID = 9; // 买方账号
  4647. optional uint64 SellAccountID = 10; // 卖方账号
  4648. optional uint64 WRTransferUserID = 11; // 仓单受让用户
  4649. optional double BuyerFreezeAmount = 12; // 买方履约前冻结金额
  4650. optional double SellerFreezeAmount = 13; // 卖方履约前冻结金额
  4651. optional string ShipRemark = 14; // 发货备注
  4652. optional string BuyerInfo = 15; // 买方联络
  4653. optional string SellerInfo = 16; // 卖方联络
  4654. optional uint32 MarketID = 17; // 市场ID
  4655. optional uint64 contractid = 18; // 合同ID
  4656. }
  4657. // 履约交易申请应答
  4658. message PerformanceTradeApplyRsp {
  4659. optional MessageHead Header = 1; // 消息头
  4660. optional int32 RetCode = 2; // 返回码
  4661. optional string RetDesc = 3; // 描述信息
  4662. optional uint64 PerformancePlanID = 4; // 履约计划ID
  4663. optional uint64 RelatedOrderID = 5; // 关联单号(履约类型的关联单号)
  4664. }
  4665. // 履约手动确认请求
  4666. message PerformanceManualConfirmReq {
  4667. optional MessageHead Header = 1;
  4668. optional uint64 PerformancePlanStepID = 2; // 履约计划步骤ID
  4669. optional double OverShortAmount = 3; // 溢短金额
  4670. optional uint32 PerformanceExecuteSide = 4; // 履约步骤执行方1买方2
  4671. optional string StepRemark = 5; // 步骤备注
  4672. optional double OverShortQty = 6; // 溢短数量
  4673. optional double ExpressFee = 7; // 运费金额
  4674. }
  4675. // 履约手动确认应答
  4676. message PerformanceManualConfirmRsp {
  4677. optional MessageHead Header = 1; // 消息头
  4678. optional int32 RetCode = 2; // 返回码
  4679. optional string RetDesc = 3; // 描述信息
  4680. optional uint64 PerformancePlanStepID = 4; // 履约计划步骤ID
  4681. }
  4682. // 延期申请请求
  4683. message PerformanceDelayApplyReq {
  4684. optional MessageHead Header = 1;
  4685. optional uint64 PerformancePlanStepID = 2; // 履约计划步骤ID
  4686. optional uint32 delaydays = 3; // 申请延期天数
  4687. optional uint64 applicant = 4; // 申请人
  4688. optional string applyremark = 5; // 申请备注
  4689. }
  4690. // 延期申请应答
  4691. message PerformanceDelayApplyRsp {
  4692. optional MessageHead Header = 1; // 消息头
  4693. optional int32 RetCode = 2; // 返回码
  4694. optional string RetDesc = 3; // 描述信息
  4695. optional uint64 PerformancePlanStepID = 4; // 履约计划步骤ID
  4696. optional uint64 applicant = 5; // 申请人
  4697. }
  4698. // 延期审核请求
  4699. message PerformanceDelayAuditReq {
  4700. optional MessageHead Header = 1;
  4701. optional uint64 PerformancePlanStepID = 2; // 履约计划步骤ID
  4702. optional uint32 delaystatus = 3; // 延期审核状态(2:审核通过3:审核拒绝)
  4703. optional uint64 auditor = 4; // 审核人
  4704. optional string auditremark = 5; // 审核备注
  4705. optional uint64 AutoID = 6; // 延期申请ID
  4706. }
  4707. // 延期审核应答
  4708. message PerformanceDelayAuditRsp {
  4709. optional MessageHead Header = 1; // 消息头
  4710. optional int32 RetCode = 2; // 返回码
  4711. optional string RetDesc = 3; // 描述信息
  4712. optional uint64 PerformancePlanStepID = 4; // 履约计划步骤ID
  4713. optional uint64 auditor = 5; // 审核人
  4714. }
  4715. // 违约申请请求
  4716. message PerformanceContractedApplyReq {
  4717. optional MessageHead Header = 1;
  4718. optional uint64 PerformancePlanID = 2; // 履约计划ID
  4719. optional uint32 BreachType = 3; // 违约方类型
  4720. optional uint64 Applicant = 4; // 违约申请人
  4721. optional string ApplyRemark = 5; // 申请备注
  4722. optional string Attachment = 6; // 附件
  4723. }
  4724. // 违约申请应答
  4725. message PerformanceContractedApplyRsp {
  4726. optional MessageHead Header = 1; // 消息头
  4727. optional int32 RetCode = 2; // 返回码
  4728. optional string RetDesc = 3; // 描述信息
  4729. optional uint64 PerformancePlanID = 4; // 履约计划ID
  4730. }
  4731. // 违约审核请求
  4732. message PerformanceContractedAuditReq {
  4733. optional MessageHead Header = 1;
  4734. optional uint64 PerformancePlanID = 2; // 履约计划ID
  4735. optional uint64 BreachApplyID = 3; // 违约申请ID
  4736. optional uint32 BreachStatus = 4; // 违约状态(2:审核通过3:审核拒绝)
  4737. optional uint64 Auditor = 5; // 违约审核人
  4738. optional uint32 BreachType = 6; // 违约方类型
  4739. optional string AuditRemark = 7; // 审核备注
  4740. }
  4741. // 违约审核应答
  4742. message PerformanceContractedAuditRsp {
  4743. optional MessageHead Header = 1; // 消息头
  4744. optional int32 RetCode = 2; // 返回码
  4745. optional string RetDesc = 3; // 描述信息
  4746. optional uint64 PerformancePlanID = 4; // 履约计划ID
  4747. optional uint64 BreachApplyID = 5; // 违约申请ID
  4748. }
  4749. // 违约确认请求
  4750. message PerformanceContractedConfirmReq {
  4751. optional MessageHead Header = 1;
  4752. optional uint64 PerformancePlanID = 2; // 履约计划ID
  4753. optional uint64 BreachApplyID = 3; // 违约申请ID
  4754. optional uint64 BuyAccountID = 4; // 买方账号
  4755. optional uint64 SellAccountID = 5; // 卖方账号
  4756. optional double BuyAmount = 6; // 买方应付/应收金额
  4757. optional double SellAmount = 7; // 卖方应付/应收金额
  4758. optional double ExchangeAmount = 8; // 交易所应收金额
  4759. }
  4760. // 违约确认应答
  4761. message PerformanceContractedConfirmRsp {
  4762. optional MessageHead Header = 1; // 消息头
  4763. optional int32 RetCode = 2; // 返回码
  4764. optional string RetDesc = 3; // 描述信息
  4765. optional uint64 PerformancePlanID = 4; // 履约计划ID
  4766. optional uint64 BreachApplyID = 5; // 违约申请ID
  4767. }
  4768. // 履约修改联络信息请求
  4769. message PerformanceModifyContactReq {
  4770. optional MessageHead Header = 1;
  4771. optional uint64 PerformancePlanID = 2; // 履约计划ID
  4772. optional uint64 AccountID = 3; // 账号
  4773. optional string ContactInfo = 4; // 联络信息
  4774. }
  4775. // 履约修改联络信息回应
  4776. message PerformanceModifyContactRsp {
  4777. optional MessageHead Header = 1; // 消息头
  4778. optional int32 RetCode = 2; // 返回码
  4779. optional string RetDesc = 3; // 描述信息
  4780. optional uint64 PerformancePlanID = 4; // 履约计划ID
  4781. optional uint64 AccountID = 5; // 账号
  4782. }
  4783. // 履约现货合同生成请求
  4784. message PerformanceTradeContractReq {
  4785. optional MessageHead Header = 1;
  4786. optional uint64 WRTradeDetailID = 2; // 关联成交单ID
  4787. optional uint64 WRTradeOrderID = 3; // 关联委托单ID
  4788. optional uint32 MarketID = 4; // 市场ID
  4789. optional uint64 BuyAccountID = 5; // 买方资金账号
  4790. optional uint64 SellAccountID = 6; // 卖方资金账号
  4791. optional uint64 WRID = 7; // 关联仓单ID
  4792. optional uint64 WRFactorTypeID = 8; // 仓单要素类型ID
  4793. optional string TradeTime = 9; // 成交时间
  4794. optional double TradePrice = 10; // 成交价格
  4795. optional uint64 TradeQty = 11; // 成交数量
  4796. optional double TradeAmount = 12; // 成交金额
  4797. optional uint64 RealTradeQty = 13; // 实际成交数量(算上溢短)
  4798. optional double RealTradeAmount = 14; // 实际成交金额
  4799. optional double PerformanceAmount = 15; // 履约金额(实际成交金额)
  4800. optional int64 PerformancePlanTemplateID = 16; // 履约计划模板ID
  4801. optional string Attachment1 = 17; // 附件1
  4802. optional string Attachment2 = 18; // 附件2
  4803. optional string Remark = 19; // 备注
  4804. optional uint32 PerformanceWay = 20; // 交货模式-2:分步履约
  4805. optional double BuyReleaseRatio = 21; // 买方释放比率[2:分步履约]
  4806. optional double SellReleaseRatio = 22; // 卖方释放比率[2:分步履约]
  4807. optional uint32 ExecuteMode = 23; // 执行方式[2:分步履约]-1:顺序执行
  4808. optional uint32 ExecuteSide = 24; // 执行方[2:分步履约]-1:买方
  4809. optional uint32 PerformanceType = 25; // 履约类型-2:仓单贸易
  4810. optional double BuyFreezeAmount = 26; // 买方冻结金额[2:分步履约]
  4811. optional double SellFreezeAmount = 27; // 卖方冻结金额[2:分步履约]
  4812. optional uint32 MinQty = 28; // 最小执行量[2:分步履约]
  4813. optional uint32 HoldDays = 29; // 合同期限[2:分步履约]
  4814. }
  4815. // 履约现货合同生成应答
  4816. message PerformanceTradeContractRsp {
  4817. optional MessageHead Header = 1; // 消息头
  4818. optional int32 RetCode = 2; // 返回码
  4819. optional string RetDesc = 3; // 描述信息
  4820. optional uint64 WRTradeDetailID = 4; // 关联成交单ID
  4821. optional uint64 WRTradeOrderID = 5; // 关联委托单ID
  4822. optional uint64 ContractID = 6; // 合同ID
  4823. }
  4824. // 履约执行合同请求
  4825. message PerformanceExecuteContractReq {
  4826. optional MessageHead Header = 1;
  4827. optional uint64 ContractID = 2; // 合同ID
  4828. optional uint64 ExecuteQty = 3; // 执行数量
  4829. optional uint32 ApplyExecuteSide = 4; // 申请执行方-1:买方2:卖方
  4830. }
  4831. // 履约执行合同应答
  4832. message PerformanceExecuteContractRsp {
  4833. optional MessageHead Header = 1; // 消息头
  4834. optional int32 RetCode = 2; // 返回码
  4835. optional string RetDesc = 3; // 描述信息
  4836. optional uint64 ContractID = 4; // 合同ID
  4837. optional uint64 PerformancePlanID = 5; // 履约计划ID
  4838. }
  4839. // 仓单转移请求
  4840. message ReceiptMoveReq {
  4841. optional MessageHead Header = 1;
  4842. optional uint64 RelatedOrderID = 2; // 关联ID(用于重复消息的处理,以及带回给请求方)
  4843. optional uint32 BuyUserID = 3; // 买方用户ID
  4844. optional uint64 BuyAccountID = 4; // 买方账号
  4845. optional uint32 SellUserID = 5; // 卖方用户ID
  4846. optional uint64 SellAccountID = 6; // 卖方账号
  4847. optional uint64 WRID = 7; // 仓单ID
  4848. optional uint64 WRPos = 8; // 仓单头寸
  4849. optional int32 IsFrozen = 9; // 头寸是否已冻结(0:未冻结,非0:已冻结)
  4850. }
  4851. // 仓单转移回应
  4852. message ReceiptMoveRsp {
  4853. optional MessageHead Header = 1; // 消息头
  4854. optional int32 RetCode = 2; // 返回码
  4855. optional string RetDesc = 3; // 描述信息
  4856. optional uint64 RelatedOrderID = 4; // 关联ID(用于重复消息的处理,以及带回给请求方)
  4857. optional uint64 BuyAccountID = 5; // 买方账号
  4858. optional uint64 SellAccountID = 6; // 卖方账号
  4859. }
  4860. // 仓单持仓操作请求
  4861. message WarehouseSiteReq {
  4862. optional MessageHead Header = 1;
  4863. optional uint64 RelatedOrderID = 2; // 关联ID(用于重复消息的处理,以及带回给请求方)
  4864. optional uint32 UserID = 3; // 仓单持仓所属用户(若存在AccountID则此字段被忽略)
  4865. optional uint64 AccountID = 4; // 仓单持仓所属帐户(若无此数据则指定UserID)
  4866. repeated uint64 WRHoldIDs = 5; // 操作仓单持仓ID
  4867. optional uint64 WrID = 6; // 仓单ID,仅仓单持仓ID未指定时使用仓单ID
  4868. optional int32 SourceStatus = 7; // 仓单持仓原状态(用于原状态校验,若不给出,则不进行原状态校验),解冻时忽略此字段,必须校验。
  4869. optional int32 OperationType = 8; // 操作类型(1:冻结,2:履约冻结,3:解冻,4:履约解冻)
  4870. }
  4871. // 仓单持仓操作回应
  4872. message WarehouseSiteRsp {
  4873. optional MessageHead Header = 1; // 消息头
  4874. optional int32 RetCode = 2; // 返回码
  4875. optional string RetDesc = 3; // 描述信息
  4876. optional uint64 RelatedOrderID = 4; // 关联ID(用于重复消息的处理,以及带回给请求方)
  4877. optional int32 OperationType = 5; // 操作类型(1:冻结,2:履约冻结,3:解冻,4:履约解冻)
  4878. }
  4879. // 仓单服务公共协议结构
  4880. message WRCommon {
  4881. optional uint32 UserID = 1; // 用户ID
  4882. optional uint64 RelatedOrderID = 2; // 关联ID
  4883. optional uint32 BusinessID = 3; // 业务ID
  4884. optional uint64 TradeID = 4; // 成交ID
  4885. optional uint64 AccountID = 5; // 账号ID
  4886. }
  4887. // 仓单拆解并冻结库位[仓单生成业务]请求
  4888. message ReceiptSplitReq {
  4889. optional MessageHead Header = 1;
  4890. optional uint64 RelatedOrderID = 2; // 关联ID(用于重复消息的处理,以及带回给请求方)
  4891. optional uint32 UserID = 3; // 用户ID
  4892. optional uint64 AccountID = 4; // 帐户ID
  4893. optional uint32 GoodsID = 5; // 交易合约ID(来源[SplitSrcPosType]是订单仓单头寸时需要,仓单头寸不需要)
  4894. optional uint32 DeliveryGoodsId = 6; // 交割商品ID
  4895. optional uint32 BrandId = 7; // 品牌ID
  4896. optional uint32 QualityID = 8; // 品质ID
  4897. optional uint32 SpecID = 9; // 规格ID
  4898. optional uint32 WarehouseID = 10; // 仓库ID
  4899. optional uint32 DeliveryMonthID = 11; // 月份ID
  4900. optional int32 PosType = 12; // 头寸类型[SplitSrcPosType(1:订单头寸,2:仓单头寸)]
  4901. optional uint64 PosQty = 13; // 操作头寸数量
  4902. optional int32 IsFrozen = 14; // 头寸是否已冻结(0:未冻结,非0:已冻结)
  4903. optional int32 WRTradeType = 15; // 仓单库位关系表中的成交类型
  4904. }
  4905. // 仓单拆解并冻结库位[仓单生成业务]回应
  4906. message ReceiptSplitRsp {
  4907. optional MessageHead Header = 1; // 消息头
  4908. optional int32 RetCode = 2; // 返回码
  4909. optional string RetDesc = 3; // 描述信息
  4910. optional uint64 RelatedOrderID = 4; // 关联ID(用于重复消息的处理,以及带回给请求方)
  4911. optional double RealQty = 5; // 实际操作头寸数量
  4912. optional uint64 WRID = 6; // 新生成的仓单ID
  4913. }
  4914. // 仓单转订单申请请求
  4915. message ReceiptToHoldApplyReq {
  4916. optional MessageHead Header = 1;
  4917. optional uint64 RelatedOrderID = 2; // 关联ID(用于重复消息的处理,以及带回给请求方)
  4918. optional uint32 UserID = 3; // 用户ID
  4919. optional uint64 AccountID = 4; // 帐户ID
  4920. optional uint32 DeliveryGoodsId = 5; // 交割商品ID
  4921. optional uint32 GoodsID = 6; // 交易合约ID
  4922. optional uint32 BrandId = 7; // 品牌ID
  4923. optional uint32 QualityID = 8; // 品质ID
  4924. optional uint32 SpecID = 9; // 规格ID
  4925. optional uint32 WarehouseID = 10; // 仓库ID
  4926. optional uint32 DeliveryMonthID = 11; // 月份ID
  4927. optional uint64 TransferQty = 12; // 申请转换的仓单数量
  4928. optional uint64 RequestorID = 13; // 申请人
  4929. optional string Remark = 14; // 备注
  4930. }
  4931. // 仓单转订单申请回应
  4932. message ReceiptToHoldApplyRsp {
  4933. optional MessageHead Header = 1; // 消息头
  4934. optional int32 RetCode = 2; // 返回码
  4935. optional string RetDesc = 3; // 描述信息
  4936. optional uint64 RelatedOrderID = 4; // 关联ID(用于重复消息的处理,以及带回给请求方)
  4937. }
  4938. // 仓单转订单审核请求
  4939. message ReceiptToHoldVerifyReq {
  4940. optional MessageHead Header = 1;
  4941. optional uint64 RelatedOrderID = 2; // 关联ID(用于重复消息的处理,以及带回给请求方)
  4942. optional uint32 UserID = 3; // 用户ID
  4943. optional uint64 AccountID = 4; // 帐户ID
  4944. optional uint64 RequestID = 5; // 仓单转换申请表中的主键ID
  4945. optional int32 IsPass = 6; // 审核是否通过(非0:通过;0:未通过)
  4946. optional uint64 AuditerID = 7; // 审核人
  4947. optional string AuditDesc = 8; // 审核描述
  4948. }
  4949. // 仓单转订单审核回应
  4950. message ReceiptToHoldVerifyRsp {
  4951. optional MessageHead Header = 1; // 消息头
  4952. optional int32 RetCode = 2; // 返回码
  4953. optional string RetDesc = 3; // 描述信息
  4954. optional uint64 RelatedOrderID = 4; // 关联ID(用于重复消息的处理,以及带回给请求方)
  4955. }
  4956. // 订单转仓单申请请求
  4957. message HoldToReceiptApplyReq {
  4958. optional MessageHead Header = 1;
  4959. optional uint64 RelatedOrderID = 2; // 关联ID(用于重复消息的处理,以及带回给请求方)
  4960. optional uint32 UserID = 3; // 用户ID
  4961. optional uint64 AccountID = 4; // 帐户ID
  4962. optional uint32 DeliveryGoodsId = 5; // 交割商品ID
  4963. optional uint32 GoodsID = 6; // 交易合约ID
  4964. optional uint32 BrandId = 7; // 品牌ID
  4965. optional uint32 QualityID = 8; // 品质ID
  4966. optional uint32 SpecID = 9; // 规格ID
  4967. optional uint32 WarehouseID = 10; // 仓库ID
  4968. optional uint32 DeliveryMonthID = 11; // 月份ID
  4969. optional uint64 TransferQty = 12; // 申请转换的订单仓单数量
  4970. optional uint64 RequestorID = 13; // 申请人
  4971. optional string Remark = 14; // 备注
  4972. }
  4973. // 订单转仓单申请回应
  4974. message HoldToReceiptApplyRsp {
  4975. optional MessageHead Header = 1; // 消息头
  4976. optional int32 RetCode = 2; // 返回码
  4977. optional string RetDesc = 3; // 描述信息
  4978. optional uint64 RelatedOrderID = 4; // 关联ID(用于重复消息的处理,以及带回给请求方)
  4979. }
  4980. // 订单转仓单审核请求
  4981. message HoldToReceiptVerifyReq {
  4982. optional MessageHead Header = 1;
  4983. optional uint64 RelatedOrderID = 2; // 关联ID(用于重复消息的处理,以及带回给请求方)
  4984. optional uint32 UserID = 3; // 用户ID
  4985. optional uint64 AccountID = 4; // 帐户ID
  4986. optional uint64 RequestID = 5; // 仓单转换申请表中的主键ID
  4987. optional int32 IsPass = 6; // 审核是否通过(非0:通过;0:未通过)
  4988. optional uint64 AuditerID = 7; // 审核人
  4989. optional string AuditDesc = 8; // 审核描述
  4990. }
  4991. // 订单转仓单审核回应
  4992. message HoldToReceiptVerifyRsp {
  4993. optional MessageHead Header = 1; // 消息头
  4994. optional int32 RetCode = 2; // 返回码
  4995. optional string RetDesc = 3; // 描述信息
  4996. optional uint64 RelatedOrderID = 4; // 关联ID(用于重复消息的处理,以及带回给请求方)
  4997. }
  4998. // 提货申请请求
  4999. message LadingApplyReq {
  5000. optional MessageHead Header = 1;
  5001. optional WRCommon Common = 2; //
  5002. optional string ReciverName = 3; // 提货人姓名
  5003. optional int32 CardTypeID = 4; // 提货人证件类型
  5004. optional string CardNum = 5; // 提货人证件号码
  5005. optional string PhoneNum = 6; // 提货人联系方式
  5006. optional string Address = 7; // 提货人详细地址
  5007. optional int32 TakeMode = 8; // 提货方式
  5008. optional string TakeRemark = 9; // 提货备注
  5009. repeated NonStandardLading NonStandard = 10; // 非标仓单提货
  5010. repeated LocationOperateInfo LocationOpInfo = 11; // 标准库位ID,如果是标准拆分模式,还需要数量
  5011. optional int32 WRTradeType = 12; // 仓单库位关系表中的成交类型(提货该值为6)
  5012. optional TakeDeliveryDistributeInfo DistributeInfo = 13; // 提货配送表信息
  5013. optional uint64 AccountID = 14; // 账户ID
  5014. }
  5015. // 提货申请回应
  5016. message LadingApplyRsp {
  5017. optional MessageHead Header = 1; // 消息头
  5018. optional int32 RetCode = 2; // 返回码
  5019. optional string RetDesc = 3; // 描述信息
  5020. optional WRCommon Common = 4; //
  5021. optional uint64 TakeOrderID = 5; // 新生成的提货ID,数据库表主键ID
  5022. }
  5023. // 提货审核请求
  5024. message LadingVerifyReq {
  5025. optional MessageHead Header = 1;
  5026. optional WRCommon Common = 2; //
  5027. repeated uint64 WRID = 3; // 新生成的仓单ID
  5028. optional uint64 TakeOrderID = 4; // 新生成的提货ID,数据库表主键ID
  5029. optional int32 IsPass = 5; // 是否通过
  5030. optional uint64 Auditer = 6; // 审核人
  5031. optional string DateTime = 7; // 审核时间(YYYY-MM-DDHH:MM:SS)
  5032. optional string CheckRemark = 8; // 审核备注
  5033. optional uint64 DistributeOrderID = 9; // 配送单号
  5034. optional int32 TakeMode = 10; // 提货方式
  5035. optional uint64 AccountID = 11; // 账户ID
  5036. }
  5037. // 提货审核回应
  5038. message LadingVerifyRsp {
  5039. optional MessageHead Header = 1; // 消息头
  5040. optional int32 RetCode = 2; // 返回码
  5041. optional string RetDesc = 3; // 描述信息
  5042. optional WRCommon Common = 4; //
  5043. optional uint64 TakeOrderID = 5; // 提货ID,数据库表中主键唯一ID
  5044. }
  5045. // 仓单转移到买方--仓单服务内部处理
  5046. message ReceiptMoveToBuyerReq {
  5047. optional MessageHead Header = 1;
  5048. optional uint64 RelatedOrderID = 2; // 关联ID(用于重复消息的处理,以及带回给请求方)
  5049. optional uint64 TradeID = 3; // 当前操作ID
  5050. optional uint32 UserID = 4; // 买方用户ID
  5051. optional uint64 AccountID = 5; // 买方账号
  5052. optional uint64 WRID = 6; // 仓单ID
  5053. optional uint64 WRPos = 7; // 仓单头寸
  5054. optional uint32 SellerID = 8; // 卖方用户
  5055. }
  5056. // 合并仓单持仓请求
  5057. message MergeWRHoldReq {
  5058. optional MessageHead Header = 1;
  5059. optional WRCommon Common = 2; //
  5060. optional int32 Origin = 3; // 指定提取库位的来源,四选一(enumePickupOrigin)
  5061. repeated uint64 WRHoldIDs = 4; // 相同要素的仓单持仓ID(由发起方校验所有仓单持仓均为相同要素,服务端将不做要素判断)
  5062. optional uint64 SourceWRID = 5; // 仓单ID,从仓单中提取仓单持仓,指定提取头寸数量
  5063. optional uint64 ReceiptFactorID = 6; // 仓单要素ID
  5064. optional ReceiptFactor FactorInfo = 7; // 具体仓单要素
  5065. optional int32 PosNum = 8; // 提取头寸数量
  5066. optional int32 LocationStatusSource = 9; // 仓单持仓源状态
  5067. optional int32 LocationStatusResult = 10; // 仓单持仓结果状态(更新)
  5068. optional int32 WRTradeType = 11; // 仓单持仓关系表中的成交类型
  5069. }
  5070. // 合并仓单持仓回应
  5071. message MergeWRHoldRsp {
  5072. optional MessageHead Header = 1; // 消息头
  5073. optional int32 RetCode = 2; // 返回码
  5074. optional string RetDesc = 3; // 描述信息
  5075. optional WRCommon Common = 4; //
  5076. optional uint64 WRID = 5; // 新生成的仓单ID
  5077. }
  5078. // 库位状态更新请求
  5079. message Deprecated_LocationUpdateReq {
  5080. optional MessageHead Header = 1;
  5081. optional WRCommon Common = 2; //
  5082. repeated uint64 LocationIDs = 3; // 操作库位ID
  5083. optional uint64 WrID = 4; // 仓单ID,仅库位ID未指定时使用仓单ID
  5084. optional int32 SourceStatus = 5; // 库位原状态
  5085. optional int32 NewStatus = 6; // 新状态
  5086. }
  5087. // 库位状态更新回应-对应库位操作
  5088. message Deprecated_LocationUpdateRsp {
  5089. optional MessageHead Header = 1; // 消息头
  5090. optional int32 RetCode = 2; // 返回码
  5091. optional string RetDesc = 3; // 描述信息
  5092. optional WRCommon Common = 4; //
  5093. optional int32 SourceStatus = 5; // 库位原状态
  5094. optional int32 NewStatus = 6; // 新状态
  5095. }
  5096. // 仓单持仓转移请求
  5097. message WRHoldMoveReq {
  5098. optional MessageHead Header = 1;
  5099. optional WRCommon Common = 2; //
  5100. optional uint64 DestUserID = 3; // 目标用户ID(库位转移的目标用户)--来源用户填充到Common结构
  5101. optional int32 Origin = 4; // 数据源(enumeLocationMoveOrigin)
  5102. optional uint64 WRID = 5; // 仓单ID(按仓单ID转移,指定头寸数量若数量为0则为全部头寸)
  5103. optional ReceiptFactor Factor = 6; // 仓单要素(按仓单要素转移,需要给出头寸数量)
  5104. optional uint64 FactorID = 7; // 仓单要素ID----未实现
  5105. optional uint64 PosNum = 8; // 头寸数量(指定数据源里面的头寸数量,若为0则为全部)
  5106. optional int32 LocationStatusSource = 9; // 仓单持仓源状态(转移前的库位状态)
  5107. optional int32 LocationStatusResult = 10; // 仓单持仓结果状态(转移后库位更新状态)
  5108. optional int32 WRTradeType = 11; // 仓单持仓关系表中的成交类型
  5109. }
  5110. // 仓单持仓转移回应
  5111. message WRHoldMoveRsp {
  5112. optional MessageHead Header = 1; // 消息头
  5113. optional int32 RetCode = 2; // 返回码
  5114. optional string RetDesc = 3; // 描述信息
  5115. optional WRCommon Common = 4; //
  5116. optional uint64 DestUserID = 5; // 库位目标用户
  5117. optional uint64 WRID = 6; // 结果仓单ID
  5118. }
  5119. // 库位数据
  5120. message WRLocationInfoEx {
  5121. optional uint32 LocationUserID = 1; // 库位持有人
  5122. optional string LocationCode = 2; // 库位编号
  5123. optional double RealQty = 3; // 实际数量
  5124. }
  5125. // 提单数据
  5126. message LadingBillInfoEx {
  5127. optional string LadingBillCode = 1; // 提单编号
  5128. optional uint32 StoreUserID = 2; // 存货人
  5129. optional uint64 LocationCount = 3; // 库位总数
  5130. optional uint64 RealTotalQty = 4; // 总数量(标准数量,变量名就不改了)
  5131. optional string StorageTime = 5; // 入库时间(YYYY-MM-DDHH:MM:SS)
  5132. optional string RelatedPolicy = 6; // 关联保险单
  5133. optional string PolicyDueTime = 7; // 保险到期时间(YYYY-MM-DDHH:MM:SS)
  5134. optional int32 PledgeStatus = 8; // 质押状态-1:未质押
  5135. optional string PledgeRemark = 9; // 质押描述
  5136. repeated WRLocationInfoEx WRLocation = 10; // 库位信息(多个)
  5137. }
  5138. // 仓单数据
  5139. message WRInfoEx {
  5140. optional uint32 WRUserID = 1; // 仓单持有人ID
  5141. optional int32 WrType = 2; // 仓单类型-1
  5142. optional string WRFactorTypeName = 3; // 仓单要素名
  5143. optional uint32 DeliveryGoodsID = 4; // 交割商品ID
  5144. optional uint32 BrandID = 5; // 品牌ID
  5145. optional uint32 QualityID = 6; // 品质ID
  5146. optional uint32 SpecID = 7; // 规格ID
  5147. optional uint32 WarehouseID = 8; // 仓库ID
  5148. optional uint32 MonthID = 9; // 月份ID
  5149. optional uint64 RegQty = 10; // 注册数量
  5150. repeated LadingBillInfoEx LadingBill = 11; // 提单信息(多个)
  5151. optional uint64 WRAccountID = 12; // 仓单持有人账户ID
  5152. }
  5153. // 仓单注册审核已通过
  5154. message ReceiptRegisterSuccessReq {
  5155. optional MessageHead Header = 1;
  5156. optional WRCommon Common = 2; //
  5157. optional uint64 RegisterID = 3; // 仓单注册表中的主键ID
  5158. optional WRInfoEx WR = 4; // 仓单信息
  5159. optional int32 WRTradeType = 5; // 仓单库位关系表中的成交类型
  5160. optional int32 AuditID = 6; // 审核人ID
  5161. }
  5162. // 仓单注册审核已通过
  5163. message ReceiptRegisterSuccessRsp {
  5164. optional MessageHead Header = 1; // 消息头
  5165. optional int32 RetCode = 2; // 返回码
  5166. optional string RetDesc = 3; // 描述信息
  5167. optional WRCommon Common = 4; //
  5168. optional uint64 RegisterID = 5; // 仓单注册表中的主键ID
  5169. }
  5170. // 仓单要素结构
  5171. message ReceiptFactor {
  5172. optional uint32 DeliveryGoodsId = 1; // 交割商品ID
  5173. optional uint32 BrandId = 2; // 品牌ID
  5174. optional uint32 QualityID = 3; // 品质ID
  5175. optional uint32 SpecID = 4; // 规格ID
  5176. optional uint32 WarehouseID = 5; // 仓库ID
  5177. optional uint32 DeliveryMonthID = 6; // 月份ID
  5178. }
  5179. // 非标仓单提货要素
  5180. message NonStandardLading {
  5181. optional ReceiptFactor factor = 1; // 仓单要素
  5182. optional int32 pos = 2; // 数量
  5183. }
  5184. // 提货撤消请求
  5185. message LadingCancelReq {
  5186. optional MessageHead Header = 1;
  5187. optional WRCommon Common = 2; //
  5188. optional uint64 TakeOrderID = 3; // 新生成的提货ID,数据库表主键ID
  5189. optional uint64 DistributeOrderID = 4; // 配送单号
  5190. optional int32 TakeMode = 5; // 提货方式
  5191. optional uint64 AccountID = 6; // 资金账号
  5192. }
  5193. // 提货撤消回应
  5194. message LadingCancelRsp {
  5195. optional MessageHead Header = 1; // 消息头
  5196. optional int32 RetCode = 2; // 返回码
  5197. optional string RetDesc = 3; // 描述信息
  5198. optional WRCommon Common = 4; //
  5199. optional uint64 TakeOrderID = 5; // 新生成的提货ID,数据库表主键ID
  5200. }
  5201. // 仓单注册申请请求
  5202. message ReceiptRegisterReq {
  5203. optional MessageHead Header = 1;
  5204. optional uint32 deliverygoodsid = 2; // 交割商品id
  5205. optional uint32 brandid = 3; // 品牌id
  5206. optional uint32 qualityid = 4; // 品质id
  5207. optional uint32 specid = 5; // 规格id
  5208. optional uint32 warehouseid = 6; // 仓库ID
  5209. optional uint32 deliverymonthid = 7; // 月份ID,即期填0或者不填
  5210. optional int32 wrtype = 8; // 仓单类型-1
  5211. optional uint32 wruserid = 9; // 持有人id(userid)
  5212. optional uint64 qty = 10; // 申请数量
  5213. repeated LadingBillInfoEx LadingBill = 11; // 提单信息(多个)
  5214. optional string requestorid = 12; // 申请人(loginid)
  5215. optional uint64 accountid = 13; // 账户ID
  5216. }
  5217. // 仓单注册申请回应
  5218. message ReceiptRegisterRsp {
  5219. optional MessageHead Header = 1; // 消息头
  5220. optional int32 RetCode = 2; // 返回码
  5221. optional string RetDesc = 3; // 描述信息
  5222. optional uint64 WRRegisterID = 4; // 新生成的申请ID,数据库表主键ID
  5223. }
  5224. // 撤销申请请求
  5225. message DelReceiptRegisterReq {
  5226. optional MessageHead Header = 1;
  5227. optional uint64 WRRegisterID = 2; // 新生成的申请ID,数据库表主键ID
  5228. }
  5229. // 撤销申请回应
  5230. message DelReceiptRegisterRsp {
  5231. optional MessageHead Header = 1; // 消息头
  5232. optional int32 RetCode = 2; // 返回码
  5233. optional string RetDesc = 3; // 描述信息
  5234. }
  5235. // 库位操作信息
  5236. message LocationOperateInfo {
  5237. optional uint64 LocationID = 1; // 库位ID
  5238. optional uint64 OperateQty = 2; // 操作数量
  5239. }
  5240. // 退市订单转仓单请求
  5241. message HoldToReceiptDelistReq {
  5242. optional MessageHead Header = 1;
  5243. optional uint64 RelatedOrderID = 2; // 关联ID(用于重复消息的处理,以及带回给请求方)
  5244. optional uint32 GoodsID = 3; // 交易合约ID
  5245. optional uint64 RequestorID = 4; // 申请人
  5246. optional string Remark = 5; // 备注
  5247. }
  5248. // 退市订单转仓单回应
  5249. message HoldToReceiptDelistRsp {
  5250. optional MessageHead Header = 1; // 消息头
  5251. optional int32 RetCode = 2; // 返回码
  5252. optional string RetDesc = 3; // 描述信息
  5253. optional uint64 RelatedOrderID = 4; // 关联ID(用于重复消息的处理,以及带回给请求方)
  5254. }
  5255. // 提货配送表信息
  5256. message TakeDeliveryDistributeInfo {
  5257. optional int32 LogisticsUserID = 1; // 物流机构用户ID
  5258. optional uint64 LogisticAccountID = 2; // 物流机构资金账户
  5259. optional uint64 TakerAccountID = 3; // 提货人资金账户
  5260. optional string StartAddress = 4; // 出发地
  5261. optional string EndAddress = 5; // 目的地
  5262. optional string GoodsTypeName = 6; // 货物类别
  5263. optional int32 TruckNum = 7; // 需车数
  5264. optional string Contacts = 8; // 联系人
  5265. optional string Phone = 9; // 联系电话
  5266. optional int32 GoodsTypeCode = 10; // 货物类别ID
  5267. optional string ShowupTime = 11; // 到场时间(YYYY-MM-DDHH:MM:SS)
  5268. optional string Remark = 12; // 备注
  5269. }
  5270. // 运费拒绝请求
  5271. message FreightRejectReq {
  5272. optional MessageHead Header = 1;
  5273. optional WRCommon Common = 2; //
  5274. optional uint64 DistributeOrderID = 3; // 配送单号
  5275. }
  5276. // 运费拒绝响应
  5277. message FreightRejectRsp {
  5278. optional MessageHead Header = 1; // 消息头
  5279. optional int32 RetCode = 2; // 返回码
  5280. optional string RetDesc = 3; // 描述信息
  5281. optional WRCommon Common = 4; //
  5282. optional uint64 DistributeOrderID = 5; // 配送单号
  5283. }
  5284. // 运费确认请求
  5285. message FreightConfirmReq {
  5286. optional MessageHead Header = 1;
  5287. optional WRCommon Common = 2; //
  5288. optional uint64 DistributeOrderID = 3; // 配送单号
  5289. optional double Freight = 4; // 运费
  5290. }
  5291. // 运费确认响应
  5292. message FreightConfirmRsp {
  5293. optional MessageHead Header = 1; // 消息头
  5294. optional int32 RetCode = 2; // 返回码
  5295. optional string RetDesc = 3; // 描述信息
  5296. optional WRCommon Common = 4; //
  5297. optional uint64 DistributeOrderID = 5; // 配送单号
  5298. }
  5299. // 收货确认请求
  5300. message ReceiveConfirmReq {
  5301. optional MessageHead Header = 1;
  5302. optional WRCommon Common = 2; //
  5303. optional uint64 DistributeOrderID = 3; // 配送单号
  5304. optional int32 TakeMode = 4; // 提货方式
  5305. optional uint64 TakeOrderID = 5; // 新生成的提货ID,数据库表主键ID
  5306. }
  5307. // 收货确认响应
  5308. message ReceiveConfirmRsp {
  5309. optional MessageHead Header = 1; // 消息头
  5310. optional int32 RetCode = 2; // 返回码
  5311. optional string RetDesc = 3; // 描述信息
  5312. optional WRCommon Common = 4; //
  5313. optional uint64 DistributeOrderID = 5; // 配送单号
  5314. optional uint64 TakeOrderID = 6; // 新生成的提货ID,数据库表主键ID
  5315. }
  5316. // 发货信息请求
  5317. message DeliveryDistributeInfoReq {
  5318. optional MessageHead Header = 1;
  5319. optional WRCommon Common = 2; //
  5320. optional uint64 TakeOrderID = 3; // 提货ID
  5321. optional int32 EnterpriseID = 4; // 申请人用户ID
  5322. optional string EnterpriseName = 5; // 申请人姓名
  5323. optional uint64 DistributeOrderID = 6; // 配送单ID
  5324. optional double Freight = 7; // 运费
  5325. optional TakeDeliveryDistributeInfo DistributeInfo = 8; // 提货配送表信息
  5326. }
  5327. // 发货信息响应
  5328. message DeliveryDistributeInfoRsp {
  5329. optional MessageHead Header = 1; // 消息头
  5330. optional int32 RetCode = 2; // 返回码
  5331. optional string RetDesc = 3; // 描述信息
  5332. optional WRCommon Common = 4; //
  5333. optional uint64 TakeOrderID = 5; // 提货ID
  5334. optional uint64 DistributeOrderID = 6; // 配送单ID
  5335. optional string OutLogisticsID = 7; // 外部物流单号
  5336. }
  5337. // 重新发布请求
  5338. message RetransmitDistributeReq {
  5339. optional MessageHead Header = 1;
  5340. optional WRCommon Common = 2; //
  5341. optional uint64 DistributeOrderID = 3; // 配送单号
  5342. optional int32 TakeMode = 4; // 提货方式
  5343. optional uint64 TakeOrderID = 5; // 新生成的提货ID,数据库表主键ID
  5344. optional int32 IsRetransmit = 6; // 是否重新发送
  5345. }
  5346. // 重新发布响应
  5347. message RetransmitDistributeRsp {
  5348. optional MessageHead Header = 1; // 消息头
  5349. optional int32 RetCode = 2; // 返回码
  5350. optional string RetDesc = 3; // 描述信息
  5351. optional WRCommon Common = 4; //
  5352. optional uint64 DistributeOrderID = 5; // 配送单号
  5353. optional uint64 TakeOrderID = 6; // 新生成的提货ID,数据库表主键ID
  5354. }
  5355. // 提货计划审核通过请求
  5356. message TakePlanReq {
  5357. optional MessageHead Header = 1;
  5358. optional WRCommon Common = 2; //
  5359. optional uint64 TakePlanID = 3; // 计划ID
  5360. optional uint64 ContractID = 4; // 关联合同ID
  5361. optional string TradeDate = 5; // 交易日
  5362. optional uint32 MarketID = 6; // 市场ID
  5363. optional uint32 UserID = 7; // 买方用户ID(收货方)
  5364. optional uint64 AccountID = 8; // 买方资金账号
  5365. optional uint32 BuyUserID = 9; // 买方用户ID(收货方)
  5366. optional uint64 BuyAccountID = 10; // 买方资金账号
  5367. optional uint32 SellUserID = 11; // 卖方用户ID(供货方)
  5368. optional uint64 WRID = 12; // 关联仓单ID
  5369. optional uint64 WRFactorTypeID = 13; // 仓单要素类型ID
  5370. optional uint32 TakeQty = 14; // 提货数量
  5371. optional uint32 RealQty = 15; // 剩余数量
  5372. optional string PlanDate = 16; // 计划日期
  5373. optional uint32 PlanDays = 17; // 计划提货周期(天)
  5374. optional string TakeAddress = 18; // 提货地点
  5375. optional string SellContact = 19; // 堆场管理联系人
  5376. optional string SellContactPhoneNumber = 20; // 堆块管理联系人电话
  5377. optional string TrusteeName = 21; // 受托方名称
  5378. optional string TrustPhoneNumber = 22; // 受托方联系方式
  5379. optional string DeliveryPlace = 23; // 收货地点
  5380. optional string BuyContact = 24; // 现场联系人
  5381. optional string BuyContactPhoneNumber = 25; // 现货联系人电话
  5382. optional uint32 TakePlanMode = 26; // 提货方式
  5383. optional uint32 TakePlanStatus = 27; // 提货计划状态
  5384. optional uint32 HandleStatus = 28; // 处理状态
  5385. optional string ApplyUserID = 29; // 申请人
  5386. optional string AuditUserID = 30; // 审核人
  5387. optional string ApplyDate = 31; // 申请时间
  5388. optional string AuditDate = 32; // 审核时间
  5389. optional string AuditRemark = 33; // 审核备注
  5390. }
  5391. // 提货计划审核通过响应
  5392. message TakePlanRsp {
  5393. optional MessageHead Header = 1; // 消息头
  5394. optional int32 RetCode = 2; // 返回码
  5395. optional string RetDesc = 3; // 描述信息
  5396. optional WRCommon Common = 4; //
  5397. optional uint64 TakePlanID = 5; // 计划ID
  5398. optional uint64 ContractID = 6; // 关联合同ID
  5399. }
  5400. // 仓单贸易浮动价商品配置信息
  5401. message WRGoodsInfo {
  5402. optional uint32 GoodsID = 1; // 配置商品ID
  5403. optional string GoodsCode = 2; // 配置商品代码
  5404. optional double PriceFactor = 3; // 商品价格系数
  5405. optional double PriceMove = 4; // 商品升贴水值
  5406. optional double WeightRatio = 5; // 商品重量系数
  5407. }
  5408. // 仓单贸易挂牌委托请求
  5409. message WRListingOrderReq {
  5410. optional MessageHead Header = 1;
  5411. optional uint32 UserID = 2; // 用户ID
  5412. optional uint64 AccountID = 3; // 资金账号
  5413. optional uint32 IsSpecified = 4; // 是否指定对手
  5414. repeated uint32 MatchUserIDs = 5; // 仓单贸易对手用户ID集合(指定对手时填写)
  5415. optional uint64 OrderQty = 6; // 委托数量
  5416. optional uint32 DeliveryGoodsID = 7; // 交割商品商品ID
  5417. optional uint32 BrandID = 8; // 品牌ID
  5418. optional uint32 QualityID = 9; // 品质ID
  5419. optional uint32 SpecID = 10; // 规格ID
  5420. optional uint32 WarehouseID = 11; // 仓库ID
  5421. optional uint32 DeliveryMonthID = 12; // 月份ID
  5422. optional uint32 WRPriceType = 13; // 价格方式
  5423. optional double FixedPrice = 14; // 固定价格
  5424. repeated WRGoodsInfo WRTradeGoods = 15; // 仓单贸易商品配置集合(浮动价时填写)
  5425. optional double PriceFactor = 16; // 价格系数(浮动价时填写)-[挂牌]
  5426. optional double PriceMove = 17; // 升贴水(浮动价时填写)
  5427. optional uint32 TimevalidType = 18; // 时间有效类型
  5428. optional string ValidTime = 19; // 有效期限
  5429. optional double FirstRatio = 20; // 首付比例
  5430. optional int64 PerformanceTemplateID = 21; // 履约计划模板ID
  5431. optional uint32 OrderSrc = 22; // 委托来源
  5432. optional string ClientSerialNo = 23; // 客户端流水号
  5433. optional string ClientOrderTime = 24; // 客户端委托时间
  5434. optional uint32 ClientType = 25; // 终端类型
  5435. optional uint64 OperatorID = 26; // 操作员账号ID
  5436. optional uint32 BuyOrSell = 27; // 买卖方向
  5437. optional uint32 PriceDisplayMode = 28; // 浮动价显示方式
  5438. optional uint32 CanBargain = 29; // 挂牌是否可议价0:不可1:可-摘牌是否议价
  5439. optional string Attachment1 = 30; // 附件1
  5440. optional string Attachment2 = 31; // 附件2
  5441. optional string Remark = 32; // 备注
  5442. optional uint64 ApplyID = 33; // 申请ID
  5443. }
  5444. // 仓单贸易挂牌委托响应
  5445. message WRListingOrderRsp {
  5446. optional MessageHead Header = 1; // 消息头
  5447. optional int32 RetCode = 2; // 返回码
  5448. optional string RetDesc = 3; // 描述信息
  5449. optional uint32 UserID = 4; // 用户ID
  5450. optional uint64 AccountID = 5; // 资金账号
  5451. optional uint64 WRTradeOrderID = 6; // 仓单贸易委托单ID
  5452. optional uint64 FreezeQty = 7; // 冻结数量
  5453. optional string OrderTime = 8; // 接收委托交易的时间
  5454. optional string ClientSerialNo = 9; // 客户端流水号
  5455. }
  5456. // 挂牌撤单请求
  5457. message WRListingCancelOrderReq {
  5458. optional MessageHead Header = 1;
  5459. optional uint32 UserID = 2; // 用户ID
  5460. optional uint64 AccountID = 3; // 资金账号
  5461. optional uint64 OldWRTradeOrderID = 4; // 目标仓单贸易委托单ID
  5462. optional uint32 OrderSrc = 5; // 委托来源
  5463. optional string ClientSerialNo = 6; // 客户端流水号
  5464. optional string ClientOrderTime = 7; // 客户端委托时间
  5465. optional uint32 ClientType = 8; // 终端类型
  5466. optional uint64 OperatorID = 9; // 操作员账号ID
  5467. optional uint32 BuyOrSell = 10; // 买卖方向
  5468. }
  5469. // 挂牌撤单应答
  5470. message WRListingCancelOrderRsp {
  5471. optional MessageHead Header = 1; // 消息头
  5472. optional int32 RetCode = 2; // 返回码
  5473. optional string RetDesc = 3; // 描述信息
  5474. optional uint64 WRTradeCancelID = 4; // 仓单贸易撤单号
  5475. optional uint64 OldWRTradeOrderID = 5; // 目标仓单贸易委托单ID
  5476. optional uint32 UserID = 6; // 用户ID
  5477. optional uint64 AccountID = 7; // 资金账号
  5478. optional uint64 CancelQty = 8; // 撤单数量
  5479. optional string OrderTime = 9; // 接受撤单的时间
  5480. optional string ClientSerialNo = 10; // 客户端流水号
  5481. }
  5482. // 摘牌委托请求
  5483. message WRDelistingOrderReq {
  5484. optional MessageHead Header = 1;
  5485. optional uint32 UserID = 2; // 用户ID
  5486. optional uint64 AccountID = 3; // 资金账号
  5487. optional uint64 RelatedWRTradeOrderID = 4; // 关联委托单号(摘牌委托关联挂牌委托单ID)
  5488. optional uint32 WRTransferUserID = 5; // 仓单受让用户
  5489. optional uint64 OrderQty = 6; // 委托数量
  5490. optional uint32 OrderSrc = 7; // 委托来源
  5491. optional string ClientSerialNo = 8; // 客户端流水号
  5492. optional string ClientOrderTime = 9; // 客户端委托时间
  5493. optional uint32 ClientType = 10; // 终端类型
  5494. optional uint64 OperatorID = 11; // 操作员账号ID
  5495. optional uint32 BuyOrSell = 12; // 买卖方向
  5496. optional uint64 ApplyID = 13; // 申请ID
  5497. }
  5498. // 摘牌委托应答
  5499. message WRDelistingOrderRsp {
  5500. optional MessageHead Header = 1; // 消息头
  5501. optional int32 RetCode = 2; // 返回码
  5502. optional string RetDesc = 3; // 描述信息
  5503. optional uint32 UserID = 4; // 用户ID
  5504. optional uint64 AccountID = 5; // 资金账号
  5505. optional uint64 WRTradeOrderID = 6; // 仓单贸易委托单ID
  5506. optional uint64 RelatedWRTradeOrderID = 7; // 关联委托单号(摘牌委托关联挂牌委托单ID)
  5507. optional double FreezeAmount = 8; // 冻结货款
  5508. optional string OrderTime = 9; // 接收委托交易的时间
  5509. optional string ClientSerialNo = 10; // 客户端流水号
  5510. }
  5511. // 指定对手变更请求
  5512. message WRChangeListingMatchDetailReq {
  5513. optional MessageHead Header = 1;
  5514. optional uint32 UserID = 2; // 用户ID
  5515. optional uint64 RelatedWRTradeOrderID = 3; // 关联委托单号
  5516. repeated uint32 MatchUserIDs = 4; // 仓单贸易对手用户ID集合
  5517. }
  5518. // 管理端议价委托请求
  5519. message WRManageProtoOrderReq {
  5520. optional MessageHead Header = 1;
  5521. optional uint32 UserID = 2; // 用户ID
  5522. optional uint64 WRBargainID = 3; // 议价申请ID
  5523. optional uint64 AccountID = 4; // 资金账号
  5524. optional string ApplyPrice = 5; // 协议价格
  5525. optional uint64 RelatedOrderID = 6; // 议价关联挂牌委托单号
  5526. optional uint32 WRTransferUserID = 7; // 仓单受让用户
  5527. optional uint64 ApplyQty = 8; // 议价数量
  5528. optional uint32 OrderSrc = 9; // 委托来源
  5529. optional string ClientSerialNo = 10; // 客户端流水号
  5530. optional string ClientOrderTime = 11; // 客户端委托时间
  5531. optional uint32 ClientType = 12; // 终端类型
  5532. optional uint64 OperatorID = 13; // 操作员账号ID
  5533. optional uint32 BuyOrSell = 14; // 买卖方向:关联挂牌委托单相反方向
  5534. }
  5535. // 管理端议价委托应答
  5536. message WRManageProtoOrderRsp {
  5537. optional MessageHead Header = 1; // 消息头
  5538. optional int32 RetCode = 2; // 返回码
  5539. optional string RetDesc = 3; // 描述信息
  5540. optional uint32 UserID = 4; // 用户ID
  5541. optional uint64 AccountID = 5; // 资金账号
  5542. optional uint64 WRTradeOrderID = 6; // 摘牌委托单ID
  5543. optional string OrderTime = 7; // 接收委托交易的时间
  5544. optional string ClientSerialNo = 8; // 客户端流水号
  5545. }
  5546. // 卖方挂牌上架请求
  5547. message ListingStockSaleReq {
  5548. optional MessageHead Header = 1;
  5549. optional uint32 UserID = 2; // 用户ID
  5550. optional uint64 AccountID = 3; // 资金账号
  5551. optional uint32 DeliveryGoodsID = 4; // 交割商品商品ID
  5552. optional uint32 OrderSrc = 5; // 委托来源
  5553. optional string ClientSerialNo = 6; // 客户端流水号
  5554. optional string ClientOrderTime = 7; // 客户端委托时间
  5555. optional uint32 ClientType = 8; // 终端类型
  5556. optional uint64 OperatorID = 9; // 操作员账号ID
  5557. }
  5558. // 卖方挂牌上架应答
  5559. message ListingStockSaleRsp {
  5560. optional MessageHead Header = 1; // 消息头
  5561. optional int32 RetCode = 2; // 返回码
  5562. optional string RetDesc = 3; // 描述信息
  5563. optional uint32 UserID = 4; // 用户ID
  5564. optional uint64 AccountID = 5; // 资金账号
  5565. optional string OrderTime = 6; // 接收委托交易的时间
  5566. optional string ClientSerialNo = 7; // 客户端流水号
  5567. }
  5568. // 现货挂牌提货请求
  5569. message ListingStockTakeReq {
  5570. optional MessageHead Header = 1;
  5571. optional uint32 UserID = 2; // 用户ID
  5572. optional uint64 AccountID = 3; // 资金账号
  5573. optional uint32 DeliveryGoodsID = 4; // 交割商品商品ID
  5574. optional uint32 OrderSrc = 5; // 委托来源
  5575. optional string ClientSerialNo = 6; // 客户端流水号
  5576. optional string ClientOrderTime = 7; // 客户端委托时间
  5577. optional uint32 ClientType = 8; // 终端类型
  5578. }
  5579. // 现货挂牌提货应答
  5580. message ListingStockTakeRsp {
  5581. optional MessageHead Header = 1; // 消息头
  5582. optional int32 RetCode = 2; // 返回码
  5583. optional string RetDesc = 3; // 描述信息
  5584. optional uint32 UserID = 4; // 用户ID
  5585. optional uint64 AccountID = 5; // 资金账号
  5586. optional string OrderTime = 6; // 接收委托交易的时间
  5587. optional string ClientSerialNo = 7; // 客户端流水号
  5588. }
  5589. // 合同激活请求
  5590. message ContractActivationReq {
  5591. optional MessageHead Header = 1;
  5592. optional uint64 ExtBusinessID = 2; // 外部业务流水号
  5593. optional uint64 SCFContractID = 3; // SCF合同ID
  5594. optional int32 SCFContractType = 4; // 合同类型
  5595. optional uint64 LenderAccountID = 5; // 贷款方资金账号
  5596. repeated uint64 wrholdids = 6; // 仓单持仓ID集合
  5597. optional uint64 WRFactorTypeID = 7; // 仓单要素类型ID
  5598. optional uint64 DeliveryGoodsID = 8; // 交割商品ID
  5599. optional uint64 BrandID = 9; // 品牌ID
  5600. optional uint64 QualityID = 10; // 品质ID
  5601. optional uint64 SpecID = 11; // 规格ID
  5602. optional uint64 WarehouseID = 12; // 仓库ID
  5603. optional uint64 DeliveryMonthID = 13; // 月份ID
  5604. optional double WRCurAmount = 14; // 仓单持有估值
  5605. repeated ContractEstimateConfig estimate_config = 15; // 估值配置
  5606. optional double price_move = 16; // 估值升贴水
  5607. }
  5608. // 合同激活应答
  5609. message ContractActivationRsp {
  5610. optional MessageHead Header = 1; // 消息头
  5611. optional int32 RetCode = 2; // 返回码
  5612. optional string RetDesc = 3; // 描述信息
  5613. optional uint64 SCFContractID = 4; // SCF合同ID
  5614. optional uint64 SCFTicketID = 5; // 供应链金融流水ID
  5615. optional uint64 ExtBusinessID = 6; // 外部业务流水号
  5616. optional int32 Status = 7; // 状态
  5617. }
  5618. // 合同确认请求
  5619. message ContractConfirmReq {
  5620. optional MessageHead Header = 1;
  5621. optional uint64 ExtBusinessID = 2; // 外部业务流水号
  5622. optional uint64 SCFContractID = 3; // SCF合同ID
  5623. optional uint64 BorrowerAccountID = 4; // 借款方资金账号
  5624. optional uint64 WRFactorTypeID = 5; // 仓单要素类型ID
  5625. optional uint64 WRPositionQty = 6; // 仓单头寸数量
  5626. repeated ContractEstimateConfig estimate_config = 7; // 估值配置
  5627. optional double price_move = 8; // 估值升贴水
  5628. }
  5629. // 合同确认应答
  5630. message ContractConfirmRsp {
  5631. optional MessageHead Header = 1; // 消息头
  5632. optional int32 RetCode = 2; // 返回码
  5633. optional string RetDesc = 3; // 描述信息
  5634. optional uint64 SCFContractID = 4; // SCF合同ID
  5635. optional uint64 SCFTicketID = 5; // 供应链金融流水ID
  5636. optional uint64 ExtBusinessID = 6; // 外部业务流水号
  5637. optional int32 Status = 7; // 状态
  5638. }
  5639. // 手动结息请求
  5640. message ManualInterestSettlementReq {
  5641. optional MessageHead Header = 1;
  5642. optional uint64 ExtBusinessID = 2; // 外部业务流水号
  5643. optional uint64 SCFContractID = 3; // SCF合同ID
  5644. optional int32 SCFContractType = 4; // 合同类型
  5645. }
  5646. // 手动结息应答
  5647. message ManualInterestSettlementRsp {
  5648. optional MessageHead Header = 1; // 消息头
  5649. optional int32 RetCode = 2; // 返回码
  5650. optional string RetDesc = 3; // 描述信息
  5651. optional uint64 SCFContractID = 4; // SCF合同ID
  5652. optional uint64 SCFTicketID = 5; // 供应链金融流水ID
  5653. optional uint64 ExtBusinessID = 6; // 外部业务流水号
  5654. optional int32 Status = 7; // 状态
  5655. }
  5656. // 仓单回购请求
  5657. message WarehouseRepurchaseReq {
  5658. optional MessageHead Header = 1;
  5659. optional uint64 ExtBusinessID = 2; // 外部业务流水号
  5660. optional uint64 SCFContractID = 3; // SCF合同ID
  5661. optional int32 SCFContractType = 4; // 合同类型
  5662. optional uint64 WRPositionQty = 5; // 仓单头寸数量
  5663. }
  5664. // 仓单回购应答
  5665. message WarehouseRepurchaseRsp {
  5666. optional MessageHead Header = 1; // 消息头
  5667. optional int32 RetCode = 2; // 返回码
  5668. optional string RetDesc = 3; // 描述信息
  5669. optional uint64 SCFContractID = 4; // SCF合同ID
  5670. optional uint64 SCFTicketID = 5; // 供应链金融流水ID
  5671. optional uint64 ExtBusinessID = 6; // 外部业务流水号
  5672. optional int32 Status = 7; // 状态
  5673. }
  5674. // 支付欠款请求
  5675. message PaymentArrearsReq {
  5676. optional MessageHead Header = 1;
  5677. optional uint64 ExtBusinessID = 2; // 外部业务流水号
  5678. optional uint64 SCFContractID = 3; // SCF合同ID
  5679. optional int32 SCFContractType = 4; // 合同类型
  5680. }
  5681. // 支付欠款应答
  5682. message PaymentArrearsRsp {
  5683. optional MessageHead Header = 1; // 消息头
  5684. optional int32 RetCode = 2; // 返回码
  5685. optional string RetDesc = 3; // 描述信息
  5686. optional uint64 SCFContractID = 4; // SCF合同ID
  5687. optional uint64 SCFTicketID = 5; // 供应链金融流水ID
  5688. optional uint64 ExtBusinessID = 6; // 外部业务流水号
  5689. optional int32 Status = 7; // 状态
  5690. }
  5691. // 违约确认请求
  5692. message SCFBreachConfirmReq {
  5693. optional MessageHead Header = 1;
  5694. optional uint64 ExtBusinessID = 2; // 外部业务流水号
  5695. optional uint64 SCFContractID = 3; // SCF合同ID
  5696. optional int32 SCFContractType = 4; // 合同类型
  5697. }
  5698. // 违约确认应答
  5699. message SCFBreachConfirmRsp {
  5700. optional MessageHead Header = 1; // 消息头
  5701. optional int32 RetCode = 2; // 返回码
  5702. optional string RetDesc = 3; // 描述信息
  5703. optional uint64 SCFContractID = 4; // SCF合同ID
  5704. optional uint64 SCFTicketID = 5; // 供应链金融流水ID
  5705. optional uint64 ExtBusinessID = 6; // 外部业务流水号
  5706. optional int32 BreachStatus = 7; // 违约状态
  5707. optional int32 Status = 8; // 状态
  5708. }
  5709. // 违约处理请求
  5710. message SCFBreachHandleReq {
  5711. optional MessageHead Header = 1;
  5712. optional uint64 ExtBusinessID = 2; // 外部业务流水号
  5713. optional uint64 SCFContractID = 3; // SCF合同ID
  5714. optional int32 SCFContractType = 4; // 合同类型
  5715. optional double BreachAmount = 5; // 违约金额
  5716. }
  5717. // 违约处理应答
  5718. message SCFBreachHandleRsp {
  5719. optional MessageHead Header = 1; // 消息头
  5720. optional int32 RetCode = 2; // 返回码
  5721. optional string RetDesc = 3; // 描述信息
  5722. optional uint64 SCFContractID = 4; // SCF合同ID
  5723. optional uint64 SCFTicketID = 5; // 供应链金融流水ID
  5724. optional uint64 ExtBusinessID = 6; // 外部业务流水号
  5725. optional int32 BreachStatus = 7; // 违约状态
  5726. optional int32 Status = 8; // 状态
  5727. }
  5728. // 关闭合同请求
  5729. message CloseContractReq {
  5730. optional MessageHead Header = 1;
  5731. optional uint64 ExtBusinessID = 2; // 外部业务流水号
  5732. optional uint64 SCFContractID = 3; // SCF合同ID
  5733. optional int32 SCFContractType = 4; // 合同类型
  5734. }
  5735. // 关闭合同应答
  5736. message CloseContractRsp {
  5737. optional MessageHead Header = 1; // 消息头
  5738. optional int32 RetCode = 2; // 返回码
  5739. optional string RetDesc = 3; // 描述信息
  5740. optional uint64 SCFContractID = 4; // SCF合同ID
  5741. optional uint64 SCFTicketID = 5; // 供应链金融流水ID
  5742. optional uint64 ExtBusinessID = 6; // 外部业务流水号
  5743. optional int32 Status = 7; // 状态
  5744. }
  5745. // 增加合作方资金请求
  5746. message AddPartnerFundReq {
  5747. optional MessageHead Header = 1;
  5748. optional uint64 ExtBusinessID = 2; // 外部业务流水号
  5749. optional uint64 SCFContractID = 3; // SCF合同ID
  5750. optional int32 SCFContractType = 4; // 合同类型
  5751. optional double AddAmount = 5; // 增加金额
  5752. }
  5753. // 增加合作方资金应答
  5754. message AddPartnerfundRsp {
  5755. optional MessageHead Header = 1; // 消息头
  5756. optional int32 RetCode = 2; // 返回码
  5757. optional string RetDesc = 3; // 描述信息
  5758. optional uint64 SCFContractID = 4; // SCF合同ID
  5759. optional uint64 SCFTicketID = 5; // 供应链金融流水ID
  5760. optional uint64 ExtBusinessID = 6; // 外部业务流水号
  5761. optional int32 Status = 7; // 状态
  5762. }
  5763. // 手动还款请求
  5764. message ManualRepayReq {
  5765. optional MessageHead Header = 1;
  5766. optional uint64 ExtBusinessID = 2; // 外部业务流水号
  5767. optional uint64 SCFContractID = 3; // SCF合同ID
  5768. optional int32 SCFContractType = 4; // 合同类型
  5769. optional double RepayAmount = 5; // 还款金额
  5770. }
  5771. // 手动还款应答
  5772. message ManualRepayRsp {
  5773. optional MessageHead Header = 1; // 消息头
  5774. optional int32 RetCode = 2; // 返回码
  5775. optional string RetDesc = 3; // 描述信息
  5776. optional uint64 SCFContractID = 4; // SCF合同ID
  5777. optional uint64 SCFTicketID = 5; // 供应链金融流水ID
  5778. optional uint64 ExtBusinessID = 6; // 外部业务流水号
  5779. optional int32 Status = 7; // 状态
  5780. }
  5781. // 支付保证金请求
  5782. message PaymentMarginReq {
  5783. optional MessageHead Header = 1;
  5784. optional uint64 ExtBusinessID = 2; // 外部业务流水号
  5785. optional uint64 SCFContractID = 3; // SCF合同ID
  5786. optional int32 SCFContractType = 4; // 合同类型
  5787. }
  5788. // 支付保证金应答
  5789. message PaymentMarginRsp {
  5790. optional MessageHead Header = 1; // 消息头
  5791. optional int32 RetCode = 2; // 返回码
  5792. optional string RetDesc = 3; // 描述信息
  5793. optional uint64 SCFContractID = 4; // SCF合同ID
  5794. optional uint64 SCFTicketID = 5; // 供应链金融流水ID
  5795. optional uint64 ExtBusinessID = 6; // 外部业务流水号
  5796. optional int32 Status = 7; // 状态
  5797. }
  5798. // 确认放款请求
  5799. message ConfirmLoanReq {
  5800. optional MessageHead Header = 1;
  5801. optional uint64 ExtBusinessID = 2; // 外部业务流水号
  5802. optional uint64 SCFContractID = 3; // SCF合同ID
  5803. optional int32 SCFContractType = 4; // 合同类型
  5804. }
  5805. // 确认放款应答
  5806. message ConfirmLoanRsp {
  5807. optional MessageHead Header = 1; // 消息头
  5808. optional int32 RetCode = 2; // 返回码
  5809. optional string RetDesc = 3; // 描述信息
  5810. optional uint64 SCFContractID = 4; // SCF合同ID
  5811. optional uint64 SCFTicketID = 5; // 供应链金融流水ID
  5812. optional uint64 ExtBusinessID = 6; // 外部业务流水号
  5813. optional int32 Status = 7; // 状态
  5814. }
  5815. // 合同注销请求
  5816. message ContractLoginoutReq {
  5817. optional MessageHead Header = 1;
  5818. optional uint64 ExtBusinessID = 2; // 外部业务流水号
  5819. optional uint64 SCFContractID = 3; // SCF合同ID
  5820. optional int32 SCFContractType = 4; // 合同类型
  5821. }
  5822. // 合同注销应答
  5823. message ContractLoginountRsp {
  5824. optional MessageHead Header = 1; // 消息头
  5825. optional int32 RetCode = 2; // 返回码
  5826. optional string RetDesc = 3; // 描述信息
  5827. optional uint64 SCFContractID = 4; // SCF合同ID
  5828. optional uint64 SCFTicketID = 5; // 供应链金融流水ID
  5829. optional uint64 ExtBusinessID = 6; // 外部业务流水号
  5830. optional int32 Status = 7; // 状态
  5831. }
  5832. // 合同状态修改请求
  5833. message ContractStatusModifyReq {
  5834. optional MessageHead Header = 1;
  5835. optional uint64 ExtBusinessID = 2; // 外部业务流水号
  5836. optional uint64 SCFContractID = 3; // SCF合同ID
  5837. optional int32 SCFContractType = 4; // 合同类型
  5838. optional int32 ContractBeforeStatus = 5; // 合同原来状态(不能为激活之后状态)
  5839. optional int32 ScfContractStatus = 6; // 合同原来状态(不能为激活之后状态)
  5840. }
  5841. // 合同状态修改应答
  5842. message ContractStatusModifyRsp {
  5843. optional MessageHead Header = 1; // 消息头
  5844. optional int32 RetCode = 2; // 返回码
  5845. optional string RetDesc = 3; // 描述信息
  5846. optional uint64 SCFContractID = 4; // SCF合同ID
  5847. optional uint64 SCFTicketID = 5; // 供应链金融流水ID
  5848. optional uint64 ExtBusinessID = 6; // 外部业务流水号
  5849. optional int32 Status = 7; // 状态
  5850. }
  5851. // 合同估值配置
  5852. message ContractEstimateConfig {
  5853. optional uint64 scfcontractid = 1; // SCF合同ID(310+Unix秒时间戳(10位)+xxxxxx)
  5854. optional uint64 scfgoodsid = 2; // SCF商品ID
  5855. optional double scfgoodsratio = 3; // 商品系数
  5856. optional double pricemove = 4; // 商品升贴水值
  5857. optional double weightratio = 5; // 重量系数
  5858. optional string updatetime = 6; // 更新时间
  5859. }
  5860. // 渠道账户信息
  5861. message ChannelAccountInfo {
  5862. optional string BrokerID = 1; // 经纪公司代码
  5863. optional string AccountID = 2; // 投资者帐号
  5864. optional string AccountPwd = 3; // 账号密码
  5865. }
  5866. // 账户资金信息
  5867. message ChannelAccountMoneyInfo {
  5868. optional string BrokerID = 1; // 经纪公司代码
  5869. optional string InvestorID = 2; // 投资者帐号
  5870. optional double PreBalance = 3; // 上次结算准备金
  5871. optional double PreMargin = 4; // 上次占用的保证金
  5872. optional double InterestBase = 5; // 利息基数
  5873. optional double Interest = 6; // 利息收入
  5874. optional double Deposit = 7; // 入金金额
  5875. optional double Withdraw = 8; // 出金金额
  5876. optional double FrozenMargin = 9; // 冻结的保证金
  5877. optional double FrozenCash = 10; // 冻结的资金
  5878. optional double FrozenCommission = 11; // 冻结的手续费
  5879. optional double CurrMargin = 12; // 当前保证金总额
  5880. optional double CashIn = 13; // 资金差额
  5881. optional double Commission = 14; // 手续费
  5882. optional double CloseProfit = 15; // 平仓盈亏
  5883. optional double PositionProfit = 16; // 持仓盈亏
  5884. optional double Balance = 17; // 期货结算准备金
  5885. optional double Available = 18; // 可用资金
  5886. optional double WithdrawQuota = 19; // 可取资金
  5887. optional double Reserve = 20; // 基本准备金
  5888. optional string TradingDay = 21; // 交易日
  5889. optional int32 SettlementID = 22; // 结算编号
  5890. optional double ExchangeMargin = 23; // 交易所保证金
  5891. optional double DeliveryMargin = 24; // 投资者交割保证金
  5892. optional double ExchangeDeliveryMargin = 25; // 交易所交割保证金
  5893. }
  5894. // 持仓头寸
  5895. message ChannelPositionInfo {
  5896. optional string InstrumentID = 1; // 合约代码
  5897. optional string BrokerID = 2; // 经纪公司代码
  5898. optional string InvestorID = 3; // 投资者代码
  5899. optional uint32 PosiDirection = 4; // 持仓多空方向PositionDirection
  5900. optional uint32 HedgeFlag = 5; // 投机套保标志HedgeFlagType
  5901. optional uint32 PositionDate = 6; // 持仓日期PositionDateType
  5902. optional int32 YdPosition = 7; // 上日持仓
  5903. optional int32 Position = 8; // 持仓
  5904. optional int32 LongFrozen = 9; // 多头冻结
  5905. optional int32 ShortFrozen = 10; // 空头冻结
  5906. optional int32 OpenVolume = 11; // 开仓量
  5907. optional int32 CloseVolume = 12; // 平仓量
  5908. optional double OpenAmount = 13; // 开仓金额
  5909. optional double CloseAmount = 14; // 平仓金额
  5910. optional double PositionCost = 15; // 持仓成本
  5911. optional double UseMargin = 16; // 占用的保证金
  5912. optional double FrozenMargin = 17; // 冻结的保证金
  5913. optional double FrozenCash = 18; // 冻结的资金
  5914. optional double FrozenCommission = 19; // 冻结的手续费
  5915. optional double CashIn = 20; // 资金差额
  5916. optional double Commission = 21; // 手续费
  5917. optional double CloseProfit = 22; // 平仓盈亏
  5918. optional double PositionProfit = 23; // 持仓盈亏
  5919. optional double PreSettlementPrice = 24; // 上次结算价
  5920. optional double SettlementPrice = 25; // 本次结算价
  5921. optional string TradingDay = 26; // 交易日
  5922. optional double OpenCost = 27; // 开仓成本
  5923. optional double ExchangeMargin = 28; // 交易所保证金
  5924. optional double CloseProfitByDate = 29; // 逐日盯市平仓盈亏
  5925. optional double CloseProfitByTrade = 30; // 逐笔对冲平仓盈亏
  5926. optional int32 TodayPosition = 31; // 今日持仓
  5927. }
  5928. // 持仓明细
  5929. message ChannelPositionDetailInfo {
  5930. optional string InstrumentID = 1; // 合约代码
  5931. optional string BrokerID = 2; // 经纪公司代码
  5932. optional string InvestorID = 3; // 投资者代码
  5933. optional uint32 HedgeFlag = 4; // 投机套保标志HedgeFlagType
  5934. optional uint32 Direction = 5; // 买卖方向
  5935. optional string OpenDate = 6; // 开仓日期
  5936. optional string TradeID = 7; // 成交编号
  5937. optional int32 Volume = 8; // 数量
  5938. optional double OpenPrice = 9; // 开仓价
  5939. optional string TradingDay = 10; // 交易日
  5940. optional int32 SettlementID = 11; // 结算编号
  5941. optional string ExchangeID = 12; // 交易所代码
  5942. optional double CloseProfitByDate = 13; // 逐日盯市平仓盈亏
  5943. optional double CloseProfitByTrade = 14; // 逐笔对冲平仓盈亏
  5944. optional double PositionProfitByDate = 15; // 逐日盯市持仓盈亏
  5945. optional double PositionProfitByTrade = 16; // 逐笔对冲持仓盈亏
  5946. optional double Margin = 17; // 投资者保证金
  5947. optional double ExchMargin = 18; // 交易所保证金
  5948. optional double LastSettlementPrice = 19; // 昨结算价
  5949. optional double SettlementPrice = 20; // 结算价
  5950. optional int32 CloseVolume = 21; // 平仓量
  5951. optional double CloseAmount = 22; // 平仓金额
  5952. }
  5953. // 报单信息
  5954. message ChannelOrderInfo {
  5955. required string InstrumentID = 1; // 合约代码
  5956. optional uint32 OrderPriceType = 2; // 报单价格条件OrderPriceType
  5957. optional uint32 Direction = 3; // 买卖方向
  5958. optional uint32 OffsetFlag = 4; // 开平标志OffsetFlag
  5959. optional double LimitPrice = 5; // 价格
  5960. optional int32 VolumeTotalOriginal = 6; // 数量
  5961. optional uint32 TimeCondition = 7; // 有效期类型TimeConditionType
  5962. optional uint32 HedgeFlag = 8; // 投机套保标志HedgeFlagType
  5963. optional string ExchangeID = 9; // 交易所代码
  5964. optional int32 ClientOrderID = 10; // 客户端报单单号
  5965. optional int32 MhpOrderID = 11; // 接口平台报单单号
  5966. optional string ChannelOrderSysID = 12; // 渠道系统单号
  5967. optional int32 VolumeTraded = 13; // 今成交数量
  5968. optional int32 VolumeTotal = 14; // 剩余数量
  5969. optional string InsertDate = 15; // 报单日期
  5970. optional string InsertTime = 16; // 委托时间
  5971. optional string CancelTime = 17; // 撤销时间
  5972. optional uint32 OrderStatus = 18; // 报单状态MhpOrderStatusType
  5973. optional bytes StatusMsg = 19; // 状态信息
  5974. required string InvestorID = 20; // 投资者代码
  5975. optional string TradingDay = 21; // 交易日
  5976. }
  5977. // 成交信息
  5978. message ChannelTradeInfo {
  5979. optional string InvestorID = 1; // 投资者代码
  5980. optional string InstrumentID = 2; // 合约代码
  5981. optional string ExchangeID = 3; // 交易所代码
  5982. optional uint32 HedgeFlag = 4; // 投机套保标志HedgeFlagType
  5983. optional uint32 Direction = 5; // 买卖方向
  5984. optional uint32 OffsetFlag = 6; // 开平标志OffsetFlag
  5985. optional double Price = 7; // 价格
  5986. optional int32 Volume = 8; // 数量
  5987. optional string TradeDate = 9; // 成交时期
  5988. optional string TradeTime = 10; // 成交时间
  5989. optional string TradingDay = 11; // 交易日
  5990. optional string ChannelTradeID = 12; // 渠道成交编号
  5991. optional string ChannelOrderSysID = 13; // 渠道系统单号
  5992. optional int32 MhpOrderID = 14; // 接口平台报单单号
  5993. optional int32 ClientOrderID = 15; // 客户端报单单号
  5994. }
  5995. // 合约信息
  5996. message ChannelInstrumentInfo {
  5997. optional string InstrumentID = 1; // 合约代码
  5998. optional string ProductID = 2; // 产品代码
  5999. optional string ExchangeID = 3; // 交易所代码
  6000. optional int32 ChannelID = 4; // 交易所代码
  6001. }
  6002. // 通用请求
  6003. message ChannelRequestInfo {
  6004. optional int32 RequestID = 1; // 请求编号
  6005. optional uint32 InterfaceID = 2; // 通道编号ChannelIDType
  6006. optional string RequestDate = 3; // 请求日期(YYYYMMDD)
  6007. optional string RequestTime = 4; // 请求时间(HH:MM:SS)
  6008. optional string LoginID = 5; // 平台登录账号
  6009. }
  6010. // 通用应答
  6011. message ChannelResponseInfo {
  6012. required int32 RspCode = 1; // 返回码
  6013. optional bytes RspText = 2; // 返回信息
  6014. optional int32 RequestID = 3; // 请求编号
  6015. optional uint32 IsLast = 4; // 是否为本次请求的最后一条应答
  6016. }
  6017. // 登录请求
  6018. message ChannelReqLogin {
  6019. optional ChannelRequestInfo ReqInfo = 1; //
  6020. required string LoginID = 2; // 平台登录帐号
  6021. required string LoginPwd = 3; // 平台登录密码
  6022. required ChannelAccountInfo Account = 4; // 渠道账户信息
  6023. }
  6024. // 登录应答
  6025. message ChannelRspLogin {
  6026. required ChannelResponseInfo RspInfo = 1; //
  6027. }
  6028. // 登出请求
  6029. message ChannelReqLogout {
  6030. optional ChannelRequestInfo ReqInfo = 1; //
  6031. required string LoginID = 2; // 登录帐号
  6032. }
  6033. // 登出应答
  6034. message ChannelRspLogout {
  6035. required ChannelResponseInfo RspInfo = 1; //
  6036. }
  6037. // 订阅行情请求
  6038. message ChannelReqSubscribeQuote {
  6039. optional ChannelRequestInfo ReqInfo = 1; //
  6040. repeated string InstrumentCodes = 2; //
  6041. }
  6042. // 订阅行情应答
  6043. message ChannelRspSubscribeQuote {
  6044. required ChannelResponseInfo RspInfo = 1; //
  6045. repeated ChannelRealQuotation LastQuotes = 2; //
  6046. }
  6047. // 实时行情数据包结构
  6048. message ChannelRealQuotation {
  6049. optional string strName = 1; // 商品名称
  6050. optional string strWare = 2; // 商品代码(内码)
  6051. optional string strSettlementGroupID = 3; // 结算组编号
  6052. optional string strSettlementID = 4; // 结算编号
  6053. optional string strLast = 5; // 最新价
  6054. optional string strLastVolume = 6; // 最新量
  6055. optional string strLastTurnover = 7; // 最新成交金额
  6056. optional string strLastLot = 8; // 最新成交笔数
  6057. optional string strTotalVolume = 9; // 总成交量
  6058. optional string strTotalTurnover = 10; // 总成交金额
  6059. optional string strTotalLot = 11; // 总成交手数
  6060. optional string strPreClose = 12; // 昨收
  6061. optional string strOpen = 13; // 开盘价
  6062. optional string strHigh = 14; // 最高价
  6063. optional string strLow = 15; // 最低价
  6064. optional string strClose = 16; // 今收
  6065. optional string strLifeHigh = 17; // 历史最高
  6066. optional string strLifeLow = 18; // 历史最低
  6067. optional string strPreSettle = 19; // 昨结算
  6068. optional string strSettle = 20; // 今结算
  6069. optional string strAverage = 21; // 均价
  6070. optional string strHighLimit = 22; // 涨停价
  6071. optional string strLowLimit = 23; // 跌停价
  6072. optional string strPriceEarningsRatio1 = 24; // 市盈率1
  6073. optional string strPriceEarningsRatio2 = 25; // 市盈率2
  6074. optional string strChange = 26; // 涨跌幅,与上一口价比较
  6075. optional string strChangeSinceOpen = 27; // 涨跌幅,与开盘时的价格比较
  6076. optional string strPctChange = 28; // 涨跌百分比
  6077. optional string strPreOpenInterest = 29; // 昨日持仓量
  6078. optional string strOpenInterest = 30; // 持仓量
  6079. optional string strPreDelta = 31; // 昨日虚实度
  6080. optional string strDelta = 32; // 虚实度
  6081. optional string strDate = 33; // 日期
  6082. optional string strTime = 34; // 时间
  6083. optional string strBid = 35; // 买一
  6084. optional string strBid2 = 36; // 买二
  6085. optional string strBid3 = 37; // 买三
  6086. optional string strBid4 = 38; // 买四
  6087. optional string strBid5 = 39; // 买五
  6088. optional string strBidVolume = 40; // 买一
  6089. optional string strBidVolume2 = 41; // 买二
  6090. optional string strBidVolume3 = 42; // 买三
  6091. optional string strBidVolume4 = 43; // 买四
  6092. optional string strBidVolume5 = 44; // 买五
  6093. optional string strAsk = 45; // 卖一
  6094. optional string strAsk2 = 46; // 卖二
  6095. optional string strAsk3 = 47; // 卖三
  6096. optional string strAsk4 = 48; // 卖四
  6097. optional string strAsk5 = 49; // 卖五
  6098. optional string strAskVolume = 50; // 卖一
  6099. optional string strAskVolume2 = 51; // 卖二
  6100. optional string strAskVolume3 = 52; // 卖三
  6101. optional string strAskVolume4 = 53; // 卖四
  6102. optional string strAskVolume5 = 54; // 卖五
  6103. optional int32 lCount = 55; // 价格计数器
  6104. optional int32 iOrderID = 56; // 在商品列表中,按输入次序得到的编号
  6105. optional int32 lRadix = 57; // 小数的位数
  6106. optional string strRemark = 58; // 价格备注
  6107. optional string strAskHigh = 59; // 最高卖出价
  6108. optional string strAskLow = 60; // 最低卖出价
  6109. optional string strAskPreClose = 61; // 昨收卖出价
  6110. optional string strAskOpen = 62; // 开盘卖出价
  6111. optional int32 iBitNumbers = 63; // 价格所占字节长度
  6112. optional int32 nSourceID = 64; // 行情源编号
  6113. optional int32 nWareGroupID = 65; // 商品组代码
  6114. optional int32 nExchangeID = 66; // 交易所代码
  6115. optional int32 nSourceStepPrice = 67; // 在行情处理逻辑中的位置
  6116. optional int32 lLastTime = 68; // 更新时间
  6117. optional string strBidQueueInfo = 69; // 买-订单信息(大力士)
  6118. optional string strAskQueueInfo = 70; // 卖-订单信息(大力士)
  6119. optional string strTotalOpenInterest = 71; // 总持仓量
  6120. optional string strStrike = 72; // 行使价
  6121. optional string strCalculatedOpen = 73; // 拟定开盘价CalculatedOpen
  6122. optional string strBidOpen = 74; // 开盘买入价
  6123. optional string strBidClose = 75; // 收盘买入价
  6124. optional string strPreTotalTurnover = 76; // 昨日总金额
  6125. optional string strTradeDelete = 77; // 成交撤销价
  6126. optional string strTradeDeleteVolume = 78; // 成交撤销量
  6127. optional string strEAS = 79; // 预计平均结算价estimatedaverage
  6128. optional string strAskClose = 80; // 收盘卖出价
  6129. optional string strPublicTradeType = 81; // 公开的交易类型
  6130. optional string strIEP = 82; // IndicativeEquilibriumPrice,
  6131. optional string strIEV = 83; // IndicativeEquilibriumVolume,
  6132. optional string strGreyMarketPrice = 84; // greymarketprice
  6133. optional string strBidOrder = 85; // 买一的订单数量
  6134. optional string strBidOrder2 = 86; // 买二的订单数量
  6135. optional string strBidOrder3 = 87; // 买三的订单数量
  6136. optional string strBidOrder4 = 88; // 买四的订单数量
  6137. optional string strBidOrder5 = 89; // 买五的订单数量
  6138. optional string strAskOrder = 90; // 卖一的订单数量
  6139. optional string strAskOrder2 = 91; // 卖二的订单数量
  6140. optional string strAskOrder3 = 92; // 卖三的订单数量
  6141. optional string strAskOrder4 = 93; // 卖四的订单数量
  6142. optional string strAskOrder5 = 94; // 卖五的订单数量
  6143. optional int32 nID = 95; // 数据报文编号
  6144. }
  6145. // 报单录入
  6146. message ChannelReqInputOrder {
  6147. optional ChannelRequestInfo ReqInfo = 1; //
  6148. optional string BrokerID = 2; // 经纪公司代码
  6149. optional string InvestorID = 3; // 投资者代码
  6150. optional string InstrumentID = 4; // 合约代码
  6151. optional uint32 OrderPriceType = 5; // 报单价格条件OrderPriceType
  6152. optional uint32 Direction = 6; // 买卖方向
  6153. optional uint32 OffsetFlag = 7; // 开平标志OffsetFlag
  6154. optional double LimitPrice = 8; // 价格
  6155. optional int32 VolumeTotalOriginal = 9; // 数量
  6156. optional uint32 TimeCondition = 10; // 有效期类型TimeConditionType
  6157. optional uint32 HedgeFlag = 11; // 投机套保标志HedgeFlagType
  6158. required int32 ClientOrderID = 12; // 客户端报单编号
  6159. }
  6160. // 报单录入应答
  6161. message ChannelRspInputOrder {
  6162. required ChannelResponseInfo RspInfo = 1; //
  6163. required int32 ClientOrderID = 2; // 客户端报单编号
  6164. optional int32 MhpOrderID = 3; // 接口平台单号
  6165. }
  6166. // 修改报单
  6167. message ChannelReqOrderAction {
  6168. optional ChannelRequestInfo ReqInfo = 1; //
  6169. optional string BrokerID = 2; // 经纪公司代码
  6170. optional string InvestorID = 3; // 投资者代码
  6171. optional string InstrumentID = 4; // 合约代码
  6172. optional int32 ClientOrderID = 5; // 客户端报单编号
  6173. optional int32 MhpOrderID = 6; // 接口平台单号
  6174. optional string ActionFlag = 7; // 操作标志
  6175. optional double LimitPrice = 8; // 价格
  6176. optional int32 VolumeChange = 9; // 数量变化
  6177. optional string ExchangeID = 10; // 交易所代码
  6178. }
  6179. // 修改报单应答
  6180. message ChannelRspOrderAction {
  6181. required ChannelResponseInfo RspInfo = 1; //
  6182. optional int32 ClientOrderID = 2; // 客户端报单编号
  6183. }
  6184. // 查询资金账户请求
  6185. message ChannelReqQryTradingAccount {
  6186. optional ChannelRequestInfo ReqInfo = 1; //
  6187. required string InvestorID = 2; // 帐号
  6188. optional string BrokerID = 3; // 经纪公司代码
  6189. }
  6190. // 查询资金账户应答
  6191. message ChannelRspQryTradingAccount {
  6192. required ChannelResponseInfo RspInfo = 1; //
  6193. optional ChannelAccountMoneyInfo MoneyInfo = 2; //
  6194. }
  6195. // 查询持仓请求
  6196. message ChannelReqQryPosition {
  6197. optional ChannelRequestInfo ReqInfo = 1; //
  6198. required string InvestorID = 2; // 帐号
  6199. optional string BrokerID = 3; // 经纪公司代码
  6200. optional string InstrumentID = 4; // 合约代码
  6201. }
  6202. // 查询持仓应答
  6203. message ChannelRspQryPosition {
  6204. required ChannelResponseInfo RspInfo = 1; //
  6205. repeated ChannelPositionInfo Position = 2; //
  6206. }
  6207. // 查询持仓明细请求
  6208. message ChannelReqQryPositionDetail {
  6209. optional ChannelRequestInfo ReqInfo = 1; //
  6210. required string InvestorID = 2; // 帐号
  6211. optional string BrokerID = 3; // 经纪公司代码
  6212. optional string InstrumentID = 4; // 合约代码
  6213. }
  6214. // 查询持仓明细应答
  6215. message ChannelRspQryPositionDetail {
  6216. required ChannelResponseInfo RspInfo = 1; //
  6217. repeated ChannelPositionDetailInfo PositionDetail = 2; //
  6218. }
  6219. // 查询报单请求
  6220. message ChannelReqQryOrder {
  6221. optional ChannelRequestInfo ReqInfo = 1; //
  6222. required string InvestorID = 2; // 帐号
  6223. optional string BrokerID = 3; // 经纪公司代码
  6224. optional string InstrumentID = 4; // 合约代码
  6225. optional int32 ClientOrderID = 5; // 客户端单号
  6226. optional int32 MhpOrderID = 6; // 平台单号
  6227. optional string ChannelOrderSysID = 7; // 渠道系统单号
  6228. }
  6229. // 查询报单应答
  6230. message ChannelRspQryOrder {
  6231. required ChannelResponseInfo RspInfo = 1; //
  6232. repeated ChannelOrderInfo Order = 2; //
  6233. }
  6234. // 查询成交请求
  6235. message ChannelReqQryTrade {
  6236. optional ChannelRequestInfo ReqInfo = 1; //
  6237. required string InvestorID = 2; // 帐号
  6238. optional string BrokerID = 3; // 经纪公司代码
  6239. optional string InstrumentID = 4; // 合约代码
  6240. }
  6241. // 查询成交应答
  6242. message ChannelRspQryTrade {
  6243. required ChannelResponseInfo RspInfo = 1; //
  6244. repeated ChannelTradeInfo Trade = 2; //
  6245. }
  6246. // 查询合约请求
  6247. message ChannelReqQryInstrument {
  6248. optional ChannelRequestInfo ReqInfo = 1; //
  6249. required string LoginID = 2; // 平台登录帐号
  6250. }
  6251. // 查询合约应答
  6252. message ChannelRspQryInstrument {
  6253. required ChannelResponseInfo RspInfo = 1; //
  6254. repeated ChannelInstrumentInfo Instruments = 2; //
  6255. }
  6256. // 委托单状态变更通知
  6257. message ChannelNoticeOrder {
  6258. required ChannelOrderInfo order = 1; //
  6259. }
  6260. // 单据成交通知
  6261. message ChannelNOticeTrade {
  6262. required ChannelTradeInfo trade = 1; //
  6263. }
  6264. // 短信发送请求
  6265. message ShortMsgSendReq {
  6266. optional MessageHead Header = 1;
  6267. optional int32 MsgType = 2; // 消息类型(1短信2邮件)
  6268. required int32 TemplateID = 3; // 短信模版Id(1:网上开户验证模版1,2:网上开户验证模版2,3:网上开户审核通过模版1,4:网上开户审核通过模版2,5:网上开户审核失败模版,6:提示风险模板,7:追加风险模,8:斩仓风险模板
  6269. required int32 Priority = 4; // 短信优先级(1预约,2正常,3紧急)
  6270. optional string ScheduledTime = 5; // 预约时间,立即发送时为空
  6271. repeated string RecvPhone = 6; // 一或多个接收手机号
  6272. repeated string ParamValues = 7; // 有序文本参数值集合
  6273. optional string AreaCode = 8; // 机构代码
  6274. optional string Email = 9; // 邮件地址
  6275. repeated string FilePaths = 10; // 邮件附件地址
  6276. }
  6277. // 短信发送应答
  6278. message ShortMsgSendRsp {
  6279. optional MessageHead Header = 1; // 消息头
  6280. optional int32 RetCode = 2; // 返回码
  6281. optional string RetDesc = 3; // 描述信息
  6282. repeated string FailedPhone = 4; // 失败手机号列表
  6283. }
  6284. // 营销策略暂停请求
  6285. message MsStrategyPauseReq {
  6286. optional MessageHead Header = 1;
  6287. optional uint64 MarketingStrategyID = 2; // 营销策略ID
  6288. optional int32 IsStop = 3; // 临时停用状态
  6289. }
  6290. // 营销策略暂停应答
  6291. message MsStrategyPauseRsp {
  6292. optional MessageHead Header = 1; // 消息头
  6293. optional int32 RetCode = 2; // 返回码
  6294. optional string RetDesc = 3; // 描述信息
  6295. optional uint64 MarketingStrategyID = 4; // 营销策略ID
  6296. }
  6297. // 发货申请
  6298. message MsInvoiceOrderReq {
  6299. optional MessageHead Header = 1;
  6300. optional uint64 InvoiceOrderID = 2; // 发货单号
  6301. optional uint64 ReceiverUserID = 3; // 收货人ID
  6302. optional uint64 ReceiverAccountID = 4; // 收货人资金账号
  6303. optional uint64 ShipperUserID = 5; // 发货人ID
  6304. optional uint64 ShipperAccountID = 6; // 发货人资金账号
  6305. optional int32 ApplyType = 7; // 申请类型
  6306. optional uint32 PickupMode = 8; // 提货模式
  6307. repeated MsInvoiceOrderDetail DeliverGoodsInfo = 9; // 发货明细
  6308. optional uint64 ShipQty = 10; // 发货总数量
  6309. optional string ReceiverAddress = 11; // 发货地址
  6310. optional string ExpressInfo = 12; // 快递信息
  6311. optional int32 ReceiptStatus = 13; // 发票状态
  6312. optional int32 ReceiptType = 14; // 发票类型
  6313. optional string UserName = 15; // 户名
  6314. optional string TaxpayerID = 16; // 纳税人识别号
  6315. optional string ContactInfo = 17; // 联系方式
  6316. optional string Remark = 18; // 备注
  6317. optional uint64 SpecUserID = 19; // 特许经销商ID
  6318. optional int32 VersionFlag = 20; // 版本标记.新版本填1,旧版本填0或者不填.
  6319. optional string receiptcode = 21; // 发票代码
  6320. optional string receiptamount = 22; // 发票金额
  6321. optional string receiptdate = 23; // 开票日期
  6322. optional string receiptbank = 24; // 发票开户行[发票类型:企业]
  6323. optional string receiptaccount = 25; // 发票帐号[发票类型:企业]
  6324. optional string address = 26; // 地址[发票类型:企业]
  6325. optional string idnum = 27; // 身份证号码[发票类型:个人]
  6326. }
  6327. // 发货单明细
  6328. message MsInvoiceOrderDetail {
  6329. optional uint32 ShipGoodsID = 1; // 发货商品ID
  6330. optional int64 ShipQty = 2; // 发货数量
  6331. }
  6332. // 发货申请应答
  6333. message MsInvoiceOrderRsp {
  6334. optional MessageHead Header = 1; // 消息头
  6335. optional int32 RetCode = 2; // 返回码
  6336. optional string RetDesc = 3; // 描述信息
  6337. optional uint64 AccountId = 4; // 账号
  6338. }
  6339. // 发货确认请求
  6340. message MsInvoiceConfirmReq {
  6341. optional MessageHead Header = 1;
  6342. optional uint64 InvoiceOrderID = 2; // 发货单号
  6343. optional uint32 Status = 3; // 状态(1审核通过,2审核拒绝)
  6344. optional string Remark = 4; // 备注
  6345. }
  6346. // 发货确认应答
  6347. message MsInvoiceConfirmRsp {
  6348. optional MessageHead Header = 1; // 消息头
  6349. optional int32 RetCode = 2; // 返回码
  6350. optional string RetDesc = 3; // 描述信息
  6351. optional uint64 InvoiceOrderID = 4; // 发货单号
  6352. }
  6353. // 中远发货配置信息
  6354. message ZYShipperConfigInfo {
  6355. optional int32 ApplyType = 1; // 申请类型
  6356. optional uint32 PickupMode = 2; // 提货模式
  6357. optional string ReceiverAddress = 3; // 发货地址
  6358. optional string ExpressInfo = 4; // 快递信息
  6359. optional uint32 ReceiptStatus = 5; // 发票状态
  6360. optional uint32 ReceiptType = 6; // 发票类型
  6361. optional string UserName = 7; // 户名
  6362. optional string TaxpayerID = 8; // 纳税人识别号
  6363. optional string ContactInfo = 9; // 联系方式
  6364. repeated MsInvoiceOrderDetail DeliverGoodsInfo = 10; // 发货明细
  6365. optional string receiptcode = 11; // 发票代码
  6366. optional string receiptamount = 12; // 发票金额
  6367. optional string receiptdate = 13; // 开票日期
  6368. optional string receiptbank = 14; // 发票开户行[发票类型:企业]
  6369. optional string receiptaccount = 15; // 发票帐号[发票类型:企业]
  6370. optional string address = 16; // 地址[发票类型:企业]
  6371. optional string idnum = 17; // 身份证号码[发票类型:个人]
  6372. }
  6373. // 订单行权请求
  6374. message MsOrderExerciseReq {
  6375. optional MessageHead Header = 1;
  6376. optional uint64 ReceiverUserID = 2; // 收货人ID
  6377. optional uint64 ReceiverAccountID = 3; // 收货人资金账号
  6378. optional uint64 ShipperUserID = 4; // 发货人ID
  6379. optional uint64 ShipperAccountID = 5; // 发货人资金账号
  6380. optional double Premium = 6; // 权利金
  6381. optional double ExercisePrice = 7; // 行权价
  6382. optional int32 HolderQty = 8; // 持仓数量
  6383. optional double AgreeUnit = 9; // 持仓商品合约单位
  6384. optional uint64 RelatedID = 10; // 关联单号
  6385. optional int32 ShipperConfigType = 11; // 发货配置类型
  6386. optional bytes ShipperConfigInfo = 12; // 发货配置信息
  6387. optional int32 VersionFlag = 13; // 版本标记(1,新版本;0或无值,旧版本)
  6388. optional uint64 RelatedTradeID = 14; // 关联持仓单号
  6389. optional uint32 OptionType = 15; // 期权类型(1:认购2:认沽)
  6390. optional double MarketPrice = 16; // 市场价
  6391. }
  6392. // 订单行权应答
  6393. message MsOrderExerciseRsp {
  6394. optional MessageHead Header = 1; // 消息头
  6395. optional int32 RetCode = 2; // 返回码
  6396. optional string RetDesc = 3; // 描述信息
  6397. optional uint64 AccountId = 4; // 账号
  6398. optional uint64 RelatedID = 5; // 关联单号
  6399. }
  6400. // 提货申请
  6401. message MsLadingOrderReq {
  6402. optional MessageHead Header = 1;
  6403. optional uint64 LadingUserID = 2; // 提货人用户ID
  6404. optional uint64 LadingAccountID = 3; // 提货人资金账号
  6405. optional uint64 ShipperUserID = 4; // 发货人ID
  6406. optional uint64 ShipperAccountID = 5; // 发货人资金账号
  6407. optional int32 ApplyType = 6; // 申请类型
  6408. repeated MsInvoiceOrderDetail DeliverGoodsInfo = 7; // 发货明细
  6409. optional uint64 ShipQty = 8; // 发货总数量
  6410. optional string ReceiverAddress = 9; // 发货地址
  6411. optional string ExpressInfo = 10; // 快递信息
  6412. optional uint32 ReceiptStatus = 11; // 发票状态
  6413. optional int32 ReceiptType = 12; // 发票类型
  6414. optional string UserName = 13; // 户名
  6415. optional string TaxpayerID = 14; // 纳税人识别号
  6416. optional string ContactInfo = 15; // 联系方式
  6417. optional string Remark = 16; // 备注
  6418. optional int32 PickupMode = 17; // 提货模式-1:券提货
  6419. optional uint64 SpecUserID = 18; // 特许经销商ID
  6420. optional int32 VersionFlag = 19; // 版本标记.新版本填1,旧版本填0或者不填.
  6421. optional string receiptcode = 20; // 发票代码
  6422. optional string receiptamount = 21; // 发票金额
  6423. optional string receiptdate = 22; // 开票日期
  6424. optional string receiptbank = 23; // 发票开户行[发票类型:企业]
  6425. optional string receiptaccount = 24; // 发票帐号[发票类型:企业]
  6426. optional string address = 25; // 地址[发票类型:企业]
  6427. optional string idnum = 26; // 身份证号码[发票类型:个人]
  6428. }
  6429. // 提货申请应答
  6430. message MsLadingOrderRsp {
  6431. optional MessageHead Header = 1; // 消息头
  6432. optional int32 RetCode = 2; // 返回码
  6433. optional string RetDesc = 3; // 描述信息
  6434. optional uint64 AccountId = 4; // 账号
  6435. }
  6436. // 发票请求
  6437. message MarkingReciptReq {
  6438. optional MessageHead Header = 1;
  6439. optional uint64 ReqTicket = 2; // 请求流水号:可选,有则会在应答报文带回
  6440. required uint64 InvoiceOrderID = 3; // 发票关联的发货单ID:必填
  6441. required string TradeDate = 4; // 发票关联的交易日:必填
  6442. required int32 ReceiptStatus = 5; // 发票状态:必填(2:申请;3:审核通过;4:审核拒绝)
  6443. required int32 ReceiptType = 6; // 关联的发票类型:必填(1:个人2:企业)
  6444. optional string UserName = 7; // 户名:申请时必填
  6445. optional string TaxpayerID = 8; // 纳税人识别号:申请时,若是企业必填
  6446. optional string ContactInfo = 9; // 联系方式:申请时建议填写
  6447. optional string Remark = 10; // 备注:可选
  6448. optional string Address = 11; // 地址
  6449. optional string IDNum = 12; // 身份证号码
  6450. optional string receiptbank = 13; // 发票开户行[发票类型:企业]
  6451. optional string receiptaccount = 14; // 发票帐号[发票类型:企业]
  6452. }
  6453. // 发票应答
  6454. message MarkingReciptRsp {
  6455. optional MessageHead Header = 1; // 消息头
  6456. optional int32 RetCode = 2; // 返回码
  6457. optional string RetDesc = 3; // 描述信息
  6458. optional uint64 ReqTicket = 4; // 请求流水号(请求报文中的流水)
  6459. required uint64 InvoiceOrderID = 5; // 发票关联的发货单ID:必填
  6460. required int32 Status = 6; // 处理状态(0:成功;其他为失败,参考营销服务错误码)
  6461. optional string Remark = 7; // 备注
  6462. }
  6463. // 卷转积分请求
  6464. message MsCoupon2ScoreReq {
  6465. optional MessageHead Header = 1;
  6466. optional uint64 RelatedID = 2; // 请求流水号
  6467. optional uint32 UserID = 3; // 用户ID
  6468. optional int32 IsTurnScore = 4; // 是否转积分
  6469. optional string Remark = 5; // 备注:可选
  6470. }
  6471. // 卷转积分应答
  6472. message MsCoupon2ScoreRsp {
  6473. optional MessageHead Header = 1; // 消息头
  6474. optional int32 RetCode = 2; // 返回码
  6475. optional string RetDesc = 3; // 描述信息
  6476. optional uint64 RelatedID = 4; // 请求流水号
  6477. optional uint32 UserID = 5; // 用户ID
  6478. optional string Remark = 6; // 备注
  6479. }
  6480. // 赠送红包应答
  6481. message GiveScoreRsp {
  6482. optional MessageHead Header = 1; // 消息头
  6483. optional int32 RetCode = 2; // 返回码
  6484. optional string RetDesc = 3; // 描述信息
  6485. optional uint64 Exchticket = 4; // 流水号ID
  6486. }
  6487. // 确认行权审核请求
  6488. message MsOrderExerciseAuditReq {
  6489. optional MessageHead Header = 1;
  6490. optional uint64 InvoiceOrderID = 2; // 行权单号
  6491. optional uint32 Status = 3; // 状态(1审核通过,2审核拒绝)
  6492. optional string Remark = 4; // 备注
  6493. }
  6494. // 确认行权审核应答
  6495. message MsOrderExerciseAuditRsp {
  6496. optional MessageHead Header = 1; // 消息头
  6497. optional int32 RetCode = 2; // 返回码
  6498. optional string RetDesc = 3; // 描述信息
  6499. optional uint64 InvoiceOrderID = 4; // 行权单号
  6500. }
  6501. // 获取积分请求
  6502. message FetchScoreReq {
  6503. optional MessageHead Header = 1;
  6504. optional uint64 ClientSerialID = 2; // 客户端唯一ID
  6505. optional uint32 UserID = 3; // 获取积分用户ID
  6506. optional uint32 FromUserID = 4; // 积分源用户ID
  6507. optional uint32 ScoreType = 5; // 积分类型
  6508. optional uint32 ScoreNum = 6; // 积分数量
  6509. optional string ResponseTopic = 7; // 积分回应主题
  6510. optional uint32 ValidType = 8; // 积分时间有效类型
  6511. optional string ExpireDate = 9; // 积分到期时间
  6512. optional uint32 RelatedOrderType = 10; // 积分关联单类型
  6513. optional uint64 RelationOrderID = 11; // 积分关联单号
  6514. optional uint32 MarketingStrategyID = 12; // 积分营销策略ID
  6515. optional uint32 BusinessCode = 13; // 积分获取类型
  6516. }
  6517. // 获取积分应答
  6518. message FetchScoreRsp {
  6519. optional MessageHead Header = 1; // 消息头
  6520. optional int32 RetCode = 2; // 返回码
  6521. optional string RetDesc = 3; // 描述信息
  6522. optional uint64 ClientSerialID = 4; // 客户端唯一ID
  6523. }
  6524. // 积分消费请求
  6525. message ConsumeScoreReq {
  6526. optional MessageHead Header = 1;
  6527. optional uint64 ClientSerialID = 2; // 客户端唯一ID
  6528. optional uint32 UserID = 3; // 消费积分用户ID
  6529. optional uint32 ToUserID = 4; // 积分目的用户ID
  6530. optional uint32 ScoreType = 5; // 积分类型
  6531. optional uint32 ScoreNum = 6; // 积分数量
  6532. optional uint64 RelationOrderID = 7; // 积分关联单号
  6533. optional string ResponseTopic = 8; // 积分回应主题
  6534. optional uint32 OperatorType = 9; // 操作类型(1、增加;2、减少)
  6535. }
  6536. // 积分消费应答
  6537. message ConsumeScoreRsp {
  6538. optional MessageHead Header = 1; // 消息头
  6539. optional int32 RetCode = 2; // 返回码
  6540. optional string RetDesc = 3; // 描述信息
  6541. optional uint64 ClientSerialID = 4; // 客户端唯一ID
  6542. }
  6543. // 积分合消审核
  6544. message CloseDownScoreReq {
  6545. optional MessageHead Header = 1;
  6546. optional uint64 ClientSerialID = 2; // 客户端唯一ID
  6547. optional uint64 BuyBackReqId = 3; // 回购申请ID
  6548. optional uint32 UserID = 4; // 回购积分用户ID
  6549. optional uint32 FromUserID = 5; // 积分源用户ID
  6550. optional uint32 Auditer = 6; // 审核人
  6551. optional string AuditRemark = 7; // 审核备注
  6552. optional uint32 ScoreType = 8; // 积分类型
  6553. optional uint32 ScoreNum = 9; // 积分数量
  6554. optional uint64 RelationOrderID = 10; // 积分关联单号
  6555. optional string ResponseTopic = 11; // 积分回应主题
  6556. }
  6557. // 积分合消审核回应
  6558. message CloseDownScoreRsp {
  6559. optional MessageHead Header = 1; // 消息头
  6560. optional int32 RetCode = 2; // 返回码
  6561. optional string RetDesc = 3; // 描述信息
  6562. optional uint64 ClientSerialID = 4; // 客户端唯一ID
  6563. }
  6564. // 积分合消申请
  6565. message AppCloseDownScoreReq {
  6566. optional MessageHead Header = 1;
  6567. optional uint64 ClientSerialID = 2; // 客户端唯一ID
  6568. optional uint64 BuyBackReqId = 3; // 回购申请ID
  6569. optional uint32 ReqUserId = 4; // 申请用户ID
  6570. optional uint64 ReqAccountId = 5; // 申请用户资金账户
  6571. optional uint32 ProviderUserId = 6; // 积分服务商用户ID
  6572. optional uint64 ProviderAccountId = 7; // 积分服务商资金账户
  6573. optional uint32 ScoreTypeID = 8; // 积分类型ID
  6574. optional int32 Score = 9; // 积分数量
  6575. optional double Amount = 10; // 金额
  6576. optional int32 ReqStatus = 11; // 申请状态
  6577. optional string ResponseTopic = 12; // 积分回应主题
  6578. }
  6579. // 积分合消申请回应
  6580. message AppCloseDownScoreRsp {
  6581. optional MessageHead Header = 1; // 消息头
  6582. optional int32 RetCode = 2; // 返回码
  6583. optional string RetDesc = 3; // 描述信息
  6584. optional uint64 ClientSerialID = 4; // 客户端唯一ID
  6585. }
  6586. // 积分撤销
  6587. message CancelScoreReq {
  6588. optional MessageHead Header = 1;
  6589. optional uint64 ClientSerialID = 2; // 客户端唯一ID
  6590. optional uint64 BuyBackReqId = 3; // 回购申请ID
  6591. optional uint32 UserID = 4; // 撤销回购积分用户ID
  6592. optional uint32 FromUserID = 5; // 积分源用户ID
  6593. optional uint32 ScoreType = 6; // 积分类型
  6594. optional uint32 ScoreNum = 7; // 积分数量
  6595. optional string ResponseTopic = 8; // 积分回应主题
  6596. }
  6597. // 积分撤销回应
  6598. message CancelScoreRsp {
  6599. optional MessageHead Header = 1; // 消息头
  6600. optional int32 RetCode = 2; // 返回码
  6601. optional string RetDesc = 3; // 描述信息
  6602. optional uint64 ClientSerialID = 4; // 客户端唯一ID
  6603. }
  6604. // 积分清理请求
  6605. message ClearScoreReq {
  6606. optional MessageHead Header = 1;
  6607. optional uint64 ClientSerialID = 2; // 客户端唯一ID
  6608. optional uint32 UserID = 3; // 积分用户ID
  6609. optional uint32 ScoreType = 4; // 积分类型
  6610. optional uint32 ScoreNum = 5; // 积分数量
  6611. optional string ResponseTopic = 6; // 积分回应主题
  6612. }
  6613. // 积分清理应答
  6614. message ClearScoreRsp {
  6615. optional MessageHead Header = 1; // 消息头
  6616. optional int32 RetCode = 2; // 返回码
  6617. optional string RetDesc = 3; // 描述信息
  6618. optional uint64 ClientSerialID = 4; // 客户端唯一ID
  6619. optional uint32 UserID = 5; // 积分用户ID
  6620. }
  6621. // 积分获取通知
  6622. message GetScoreRsp {
  6623. optional MessageHead Header = 1; // 消息头
  6624. optional int32 RetCode = 2; // 返回码
  6625. optional string RetDesc = 3; // 描述信息
  6626. optional uint32 UserID = 4; // 获取积分用户ID
  6627. optional uint32 ScoreType = 5; // 积分类型
  6628. optional uint32 ScoreNum = 6; // 积分数量
  6629. optional uint32 ValidType = 7; // 积分时间有效类型
  6630. optional string ExpireDate = 8; // 积分到期时间
  6631. optional uint64 TradeID = 9; // 积分明细流水号
  6632. }
  6633. // 积分减少请求
  6634. message ReduceScoreReq {
  6635. optional MessageHead Header = 1;
  6636. optional uint64 ClientSerialID = 2; // 客户端唯一ID
  6637. optional uint32 UserID = 3; // 积分减少用户ID
  6638. optional uint32 ToUserID = 4; // 积分增加用户ID
  6639. optional uint32 ScoreType = 5; // 积分类型
  6640. optional uint32 ScoreNum = 6; // 积分数量
  6641. optional uint64 RelationOrderID = 7; // 积分关联单号
  6642. optional string ResponseTopic = 8; // 积分回应主题
  6643. }
  6644. // 积分减少应答
  6645. message ReduceScoreRsp {
  6646. optional MessageHead Header = 1; // 消息头
  6647. optional int32 RetCode = 2; // 返回码
  6648. optional string RetDesc = 3; // 描述信息
  6649. optional uint64 ClientSerialID = 4; // 客户端唯一ID
  6650. }
  6651. // 新增修改收货地址请求
  6652. message UserReceiveInfoReq {
  6653. optional MessageHead Header = 1;
  6654. optional uint64 ClientSerialID = 2; // 客户端唯一ID
  6655. optional uint32 UserID = 3; // 用户ID
  6656. optional string ReceiverName = 4; // 提货人姓名
  6657. optional uint32 CardTypeID = 5; // 证件类型
  6658. optional string CardNum = 6; // 证件号码
  6659. optional string PhoneNum = 7; // 提货人联系方式
  6660. optional uint32 CountryID = 8; // 国家
  6661. optional uint32 ProvinceID = 9; // 省
  6662. optional uint32 CityID = 10; // 市
  6663. optional uint32 DistrictID = 11; // 地区
  6664. optional string Address = 12; // 提货人详细地址
  6665. optional string TakeRemark = 13; // 提货备注
  6666. optional uint64 ReceiveInfoId = 14; // 修改时填收货地址id
  6667. }
  6668. // 新增修改收货地址请求响应
  6669. message UserReceiveInfoRsp {
  6670. optional MessageHead Header = 1; // 消息头
  6671. optional int32 RetCode = 2; // 返回码
  6672. optional string RetDesc = 3; // 描述信息
  6673. optional uint64 ReceiveInfoId = 4; // 响应返回autoid
  6674. }
  6675. // 删除收货地址请求
  6676. message DelUserReceiveInfoReq {
  6677. optional MessageHead Header = 1;
  6678. optional uint64 ReceiveInfoId = 2; // 收货地址id
  6679. }
  6680. // 删除收货地址请求响应
  6681. message DelUserReceiveInfoRsp {
  6682. optional MessageHead Header = 1; // 消息头
  6683. optional int32 RetCode = 2; // 返回码
  6684. optional string RetDesc = 3; // 描述信息
  6685. }
  6686. // 新增修改用户发票信息请求
  6687. message UserReceiptInfoReq {
  6688. optional MessageHead Header = 1;
  6689. optional uint64 ClientSerialID = 2; // 客户端唯一ID
  6690. optional uint32 UserID = 3; // 用户ID
  6691. optional string UserName = 4; // 发票抬头姓名
  6692. optional uint32 ReceiptType = 5; // 发票类型
  6693. optional string TaxpayerID = 6; // 纳税人识别号
  6694. optional string ContactInfo = 7; // 联系方式
  6695. optional uint64 ReceiptInfoId = 8; // 修改时填用户发票信息id
  6696. optional string ReceiptBank = 9; // 发票开户行[发票类型:企业]
  6697. optional string ReceiptAccount = 10; // 发票帐号[发票类型:企业]
  6698. optional string Address = 11; // 地址[发票类型:企业]
  6699. optional string IDNum = 12; // 身份证号码[发票类型:个人]
  6700. }
  6701. // 新增修改用户发票信息请求响应
  6702. message UserReceiptInfoRsp {
  6703. optional MessageHead Header = 1; // 消息头
  6704. optional int32 RetCode = 2; // 返回码
  6705. optional string RetDesc = 3; // 描述信息
  6706. optional uint64 ReceiptInfoId = 4; // 响应返回发票信息id
  6707. }
  6708. // 删除用户发票信息请求
  6709. message DelUserReceiptInfoReq {
  6710. optional MessageHead Header = 1;
  6711. optional uint64 ReceiptInfoId = 2; // 删除发票信息id
  6712. }
  6713. // 删除用户发票信息请求响应
  6714. message DelUserReceiptInfoRsp {
  6715. optional MessageHead Header = 1; // 消息头
  6716. optional int32 RetCode = 2; // 返回码
  6717. optional string RetDesc = 3; // 描述信息
  6718. }
  6719. // 投资者销户申请请求
  6720. message InvestorDelReq {
  6721. optional MessageHead Header = 1;
  6722. optional uint64 UserID = 2; // 用户ID
  6723. optional string ImageUrl = 3; // 图片地址
  6724. }
  6725. // 投资者销户申请请求响应
  6726. message InvestorDelRsp {
  6727. optional MessageHead Header = 1; // 消息头
  6728. optional int32 RetCode = 2; // 返回码
  6729. optional string RetDesc = 3; // 描述信息
  6730. }
  6731. // 交收服务商签约请求
  6732. message ProviderUserSignReq {
  6733. optional MessageHead Header = 1;
  6734. optional uint64 ProviderUserID = 2; // 交收服务商ID
  6735. optional uint64 InvestorUserID = 3; // 用户ID
  6736. }
  6737. // 交收服务商签约响应
  6738. message ProviderUserSignRsp {
  6739. optional MessageHead Header = 1; // 消息头
  6740. optional int32 RetCode = 2; // 返回码
  6741. optional string RetDesc = 3; // 描述信息
  6742. optional string ContractName = 4; // 协议文件名
  6743. }
  6744. // 预售集采申请档位价格
  6745. message PreSaleApplyPrice {
  6746. optional uint32 Stepindex = 1; // 档位序号
  6747. optional uint32 Qty = 2; // 档位数量
  6748. optional double Price = 3; // 档位价格
  6749. }
  6750. // 预售集采申请请求
  6751. message PreSaleApplyReq {
  6752. optional MessageHead Header = 1;
  6753. optional uint64 Selleruserid = 2; // 申请人
  6754. optional uint64 Selleraccountid = 3; // 申请资金账户
  6755. optional uint64 MarketId = 4; // 市场ID
  6756. optional string GoodsName = 5; // 商品名称
  6757. optional string Unit = 6; // 单位
  6758. optional uint32 Applyqty = 7; // 申请数量
  6759. optional string Goodspicurl = 8; // 商品图片地址
  6760. optional string Goodsdesc = 9; // 商品介绍
  6761. optional string Startday = 10; // 开始日期(YYYYMMDD)
  6762. optional string Endday = 11; // 结束日期(YYYYMMDD)
  6763. optional uint32 Steppricetype = 12; // 阶梯价类型1:量增价减
  6764. repeated PreSaleApplyPrice PriceList = 13; // 档位价格
  6765. optional uint64 ApplyId = 14; // 申请ID,修改时填写
  6766. optional uint32 Decimalplace = 15; // 价格小数位最多为4
  6767. }
  6768. // 预售集采申请应答
  6769. message PreSaleApplyRsp {
  6770. optional MessageHead Header = 1; // 消息头
  6771. optional int32 RetCode = 2; // 返回码
  6772. optional string RetDesc = 3; // 描述信息
  6773. optional string ApplyID = 4; // 申请ID
  6774. }
  6775. // 终端竞拍申请注销请求
  6776. message AuctionApplyCancelClientReq {
  6777. optional MessageHead Header = 1;
  6778. optional uint64 ApplyID = 2; // 申请ID
  6779. optional string ClientSerialNo = 3; // 客户端流水号
  6780. }
  6781. // 终端竞拍申请注销应答
  6782. message AuctionApplyCancelClientRsp {
  6783. optional MessageHead Header = 1; // 消息头
  6784. optional int32 RetCode = 2; // 返回码
  6785. optional string RetDesc = 3; // 描述信息
  6786. optional string ClientSerialNo = 4; // 客户端流水号
  6787. }
  6788. // 竞拍申请请求
  6789. message AuctionApplyOrderReq {
  6790. optional MessageHead Header = 1;
  6791. optional uint64 WRUserID = 2; // 申请人用户ID
  6792. optional uint64 WRAccountID = 3; // 资金账号ID
  6793. optional uint32 MarketID = 4; // 市场ID
  6794. optional string GoodsName = 5; // 拍品名称
  6795. optional uint64 WRFactorTypeID = 6; // 仓单要素类型ID
  6796. optional uint64 ApplyQty = 7; // 申请数量
  6797. optional double StartPrice = 8; // 起拍价
  6798. optional double FloorPrice = 9; // 底价
  6799. optional string StartTime = 10; // 开始时间
  6800. optional string EndTime = 11; // 结束时间
  6801. optional string AuctionDesc = 12; // 拍品描述
  6802. optional uint32 CutInterval = 13; // 延时周期-[降价式]
  6803. optional double PriceStep = 14; // 价格幅度[降价式、竞价式]
  6804. optional uint32 DecimalPlace = 15; // 报价小数位
  6805. optional string Uint = 16; // 单位
  6806. optional string GoodsPicUrl = 17; // 商品介绍图片
  6807. optional uint32 PriceMode = 18; // 价格类型
  6808. optional string ClientSerialNo = 19; // 客户端流水号
  6809. optional string StartTradeDate = 20; // 起拍交易日
  6810. optional uint32 HasWr = 21; // 是否有仓单0否1是
  6811. optional string Appraisal = 22; // 鉴定书
  6812. optional double Highestprice = 23; // 最高价
  6813. optional uint64 Deliverygoodsid = 24; // 交割商品
  6814. optional uint64 Brandid = 25; // 品牌
  6815. optional uint64 Qualityid = 26; // 品质
  6816. optional uint64 Specid = 27; // 升贴水
  6817. optional uint64 Warehouseid = 28; // 仓库
  6818. optional uint64 Deliverymonthid = 29; // 交收月
  6819. }
  6820. // 竞拍申请应答
  6821. message AuctionApplyOrderRsp {
  6822. optional MessageHead Header = 1; // 消息头
  6823. optional int32 RetCode = 2; // 返回码
  6824. optional string RetDesc = 3; // 描述信息
  6825. optional uint64 ApplyID = 4; // 申请ID
  6826. optional string ClientSerialNo = 5; // 客户端流水号
  6827. }
  6828. // 中远发货单确认收货请求
  6829. message InvoiceOrderRevedReq {
  6830. optional MessageHead Header = 1;
  6831. optional uint64 InvoiceOrderID = 2; // 发货单号ID
  6832. optional uint32 Status = 3; // 1-已收货(暂留无用)
  6833. optional string ClientSerialNo = 4; // 客户端流水号(暂留无用)
  6834. }
  6835. // 中远发货单确认收货响应
  6836. message InvoiceOrderRevedRsp {
  6837. optional MessageHead Header = 1; // 消息头
  6838. optional int32 RetCode = 2; // 返回码
  6839. optional string RetDesc = 3; // 描述信息
  6840. }
  6841. // 预售集采申请撤销请求
  6842. message PreSaleApplyCancelReq {
  6843. optional MessageHead Header = 1;
  6844. optional uint64 ApplyID = 2; // 申请ID
  6845. optional uint32 CancelType = 3; // 撤销类型1撤回2注销
  6846. }
  6847. // 预售集采申请撤销应答
  6848. message PreSaleApplyCancelRsp {
  6849. optional MessageHead Header = 1; // 消息头
  6850. optional int32 RetCode = 2; // 返回码
  6851. optional string RetDesc = 3; // 描述信息
  6852. }
  6853. // 竞拍申请修改请求
  6854. message AuctionApplyOrderEditReq {
  6855. optional MessageHead Header = 1;
  6856. optional uint64 ApplyID = 2; // 申请ID--荷兰式改价2时
  6857. optional uint64 WRUserID = 3; // 申请人用户ID
  6858. optional uint64 WRAccountID = 4; // 资金账号ID
  6859. optional uint32 MarketID = 5; // 市场ID
  6860. optional string GoodsName = 6; // 拍品名称
  6861. optional uint64 WRFactorTypeID = 7; // 仓单要素类型ID
  6862. optional uint64 ApplyQty = 8; // 申请数量
  6863. optional double StartPrice = 9; // 起拍价
  6864. optional double FloorPrice = 10; // 底价
  6865. optional string StartTime = 11; // 开始时间
  6866. optional string EndTime = 12; // 结束时间
  6867. optional string AuctionDesc = 13; // 拍品描述
  6868. optional uint32 CutInterval = 14; // 延时周期-[降价式]
  6869. optional double PriceStep = 15; // 价格幅度[降价式、竞价式]
  6870. optional uint32 DecimalPlace = 16; // 报价小数位
  6871. optional string Uint = 17; // 单位
  6872. optional string GoodsPicUrl = 18; // 商品介绍图片
  6873. optional string ClientSerialNo = 19; // 客户端流水号
  6874. optional string StartTradeDate = 20; // 起拍交易日
  6875. optional uint32 HasWr = 21; // 是否有仓单0否1是
  6876. optional string Appraisal = 22; // 鉴定书
  6877. optional double Highestprice = 23; // 最高价
  6878. optional uint64 Deliverygoodsid = 24; // 交割商品
  6879. optional uint64 Brandid = 25; // 品牌
  6880. optional uint64 Qualityid = 26; // 品质
  6881. optional uint64 Specid = 27; // 升贴水
  6882. optional uint64 Warehouseid = 28; // 仓库
  6883. optional uint64 Deliverymonthid = 29; // 交收月
  6884. optional uint32 PriceMode = 30; // 价格类型
  6885. optional uint32 ChangeType = 31; // 变动类型修改鉴定书时1荷兰式改价2
  6886. }
  6887. // 竞拍申请修改应答
  6888. message AuctionApplyOrderEditRsp {
  6889. optional MessageHead Header = 1; // 消息头
  6890. optional int32 RetCode = 2; // 返回码
  6891. optional string RetDesc = 3; // 描述信息
  6892. optional uint64 ApplyID = 4; // 申请ID
  6893. optional string ClientSerialNo = 5; // 客户端流水号
  6894. }
  6895. // 设置默认收货地址请求
  6896. message UserReceiveIsDefaultReq {
  6897. optional MessageHead Header = 1;
  6898. optional uint64 AutoId = 2; // 提货地址ID
  6899. optional uint64 UserId = 3; // 用户ID
  6900. }
  6901. // 设置默认收货地址应答
  6902. message UserReceiveIsDefaultRsp {
  6903. optional MessageHead Header = 1; // 消息头
  6904. optional int32 RetCode = 2; // 返回码
  6905. optional string RetDesc = 3; // 描述信息
  6906. optional uint64 AutoId = 4; // 提货地址ID
  6907. }
  6908. // 波动率商品配置通知
  6909. message VolatilityGoodsConfigNtf {
  6910. optional MessageHead Header = 1; // 消息头
  6911. optional string GoodsCode = 2; // string 代码-系统自动生成波动率设置记录代码
  6912. optional int32 FromField = 3; // int32 行情取价方式-1:最新价
  6913. optional string ExhqCode = 4; // string 交易所代码
  6914. optional string GoodShqCode = 5; // string 外部商品代码
  6915. optional double PreReckonPrice = 6; // double 昨结价
  6916. optional string ClearTime = 7; // string 清盘时间(HHmm)--已不需要
  6917. optional int32 IsDelete = 8; // int32 是否删除1-是2-否
  6918. optional int32 GoodsID = 9; // int32 内部交易商品id
  6919. }
  6920. // 期权报价修改报价商升贴水通知
  6921. message ModifyQuoterPriceMoveValueNtf {
  6922. optional MessageHead Header = 1; // 消息头
  6923. optional uint64 GoodsId = 2; // uint64 商品ID
  6924. optional string GoodsCode = 3; // string 商品代码
  6925. optional double PriceMoveValue = 4; // double 升贴水
  6926. optional double HqConvertRatio = 5; // double 行情转换系数
  6927. optional uint32 PriceMoveAlgorithm = 6; // uint32 升贴水收取方式
  6928. optional string Exchid = 7; // string 内部交易所代码
  6929. optional uint64 BuyPtsub = 8; // uint64 买点差
  6930. optional uint64 SellPtsub = 9; // uint64 卖点差
  6931. optional uint64 FilterpStub = 10; // uint64 滤价点差
  6932. }
  6933. // 用户收货信息表
  6934. message ReceiverInfo {
  6935. optional uint64 AutoID = 1; // ID
  6936. optional uint64 UserID = 2; // 用户
  6937. optional string ReceiverName = 3; // 收货人
  6938. optional uint32 CardTypeID = 4; // 证件类型
  6939. optional string CardNum = 5; // 证件号码
  6940. optional string PhoneNum = 6; // 联系电话
  6941. optional string Address = 7; // 地址
  6942. optional string TakeRemark = 8; // 提货备注
  6943. optional string AccountName = 9; // 账户名
  6944. optional uint64 CountryID = 10; // 国家代码
  6945. optional uint64 ProvinceID = 11; // 省级代码
  6946. optional uint64 CityID = 12; // 城市代码
  6947. optional uint64 DistrictID = 13; // 地区代码
  6948. optional uint32 IsDefault = 14; // 是否默认
  6949. optional string CountryName = 15; // 国家名称
  6950. optional string CountryCode = 16; // 国家代码
  6951. optional string CountryPCode = 17; //
  6952. optional string ProvinceName = 18; // 省份名称
  6953. optional string ProvinceCode = 19; // 省份代码
  6954. optional string ProvincePCode = 20; //
  6955. optional string CityName = 21; // 城市名称
  6956. optional string CityCode = 22; // 城市代码
  6957. optional string CityPCode = 23; //
  6958. optional string DistrictName = 24; // 地区名称
  6959. optional string DistrictCode = 25; // 地区代码
  6960. optional string DistrictPCode = 26; //
  6961. }
  6962. // 查询用户收货信息表
  6963. message SearchReceiverReq {
  6964. optional MessageHead Header = 1;
  6965. optional uint64 UserID = 2; // 用户ID
  6966. }
  6967. // 查询用户收货信息表
  6968. message SearchReceiverRsp {
  6969. optional MessageHead Header = 1; // 消息头
  6970. optional int32 RetCode = 2; // 返回码
  6971. optional string RetDesc = 3; // 描述信息
  6972. optional uint64 UserID = 4; // 用户ID
  6973. repeated ReceiverInfo InfoList = 5; // 用户收货信息
  6974. }
  6975. // 交易协议
  6976. message TradeTransferInfo {
  6977. optional uint64 UserID = 1; // 用户ID
  6978. optional uint32 IsContract = 2; // 是否已签约0否1是
  6979. optional uint32 ContractType = 3; // 签约类型
  6980. optional string ContractDate = 4; // 签约时间
  6981. repeated string ContractName = 5; // 协议内容/PDF名称
  6982. }
  6983. // 查询交易协议请求
  6984. message TradeTransferReq {
  6985. optional MessageHead Header = 1;
  6986. optional uint64 UserID = 2; // 用户ID
  6987. }
  6988. // 查询交易协议应答
  6989. message TradeTransferRsp {
  6990. optional MessageHead Header = 1; // 消息头
  6991. optional int32 RetCode = 2; // 返回码
  6992. optional string RetDesc = 3; // 描述信息
  6993. optional uint64 UserID = 4; // 用户ID
  6994. repeated TradeTransferInfo ContractInfo = 5; // 协议内容
  6995. }
  6996. // 投资者交易协议签约请求
  6997. message SuerTradeTransferReq {
  6998. optional MessageHead Header = 1;
  6999. optional uint64 UserID = 2; // 用户ID
  7000. }
  7001. // 投资者交易协议签约应答
  7002. message SuerTradeTransferRsp {
  7003. optional MessageHead Header = 1; // 消息头
  7004. optional int32 RetCode = 2; // 返回码
  7005. optional string RetDesc = 3; // 描述信息
  7006. optional uint64 UserID = 4; // 用户ID
  7007. optional string PdfName = 5; // PDF名称
  7008. }
  7009. // 终端竞拍申请注销(7)请求
  7010. message AuctionApplyDeleteClientReq {
  7011. optional MessageHead Header = 1;
  7012. optional uint64 ApplyID = 2; // 申请ID
  7013. optional string ClientSerialNo = 3; // 客户端流水号
  7014. }
  7015. // 终端竞拍申请注销(7)应答
  7016. message AuctionApplyDeleteClientRsp {
  7017. optional MessageHead Header = 1; // 消息头
  7018. optional int32 RetCode = 2; // 返回码
  7019. optional string RetDesc = 3; // 描述信息
  7020. optional string ClientSerialNo = 4; // 客户端流水号
  7021. }
  7022. // 发布通知公告请求
  7023. message ManageNotifyInfo {
  7024. optional uint64 Userid = 1; // 接收人
  7025. optional string Title = 2; // 标题
  7026. optional string Context = 3; // 通知内容
  7027. optional uint32 NotifyDay = 4; // 有效时间(天)可以不填默认7
  7028. }
  7029. // 发布通知公告请求
  7030. message ManageNotifyReq {
  7031. optional MessageHead Header = 1;
  7032. repeated ManageNotifyInfo NotifyInfo = 2; // 公告内容
  7033. }
  7034. // 发布通知公告应答
  7035. message ManageNotifyRsp {
  7036. optional MessageHead Header = 1; // 消息头
  7037. optional int32 RetCode = 2; // 返回码
  7038. optional string RetDesc = 3; // 描述信息
  7039. }
  7040. // 重置密码检验
  7041. message ResetPasswordCheckReq {
  7042. optional MessageHead Header = 1;
  7043. required uint32 PwdType = 2; // 账户类型(1-登录账户2-资金账户)
  7044. required string AccountId = 3; // 账户(登录帐号或资金账号)
  7045. optional string Mobile = 4; // 手机号
  7046. optional string VerCode = 5; // 验证码
  7047. }
  7048. // 重置密码检验应答
  7049. message ResetPasswordCheckRsp {
  7050. optional MessageHead Header = 1; // 消息头
  7051. optional int32 RetCode = 2; // 返回码
  7052. optional string RetDesc = 3; // 描述信息
  7053. optional uint32 IsAuth = 4; // 是否已实名认证(1是)
  7054. optional string VerCode = 5; // 验证码
  7055. optional uint32 IsSign = 6; // 是否已签约(1是)
  7056. }
  7057. // 重置密码
  7058. message ResetPasswordkReq {
  7059. optional MessageHead Header = 1;
  7060. required uint32 PwdType = 2; // 账户类型(1-登录账户2-资金账户)
  7061. required string AccountId = 3; // 账户(登录帐号或资金账号)
  7062. required string Mobile = 4; // 手机号
  7063. required string VerCode = 5; // 验证码
  7064. optional string BankAccountNo = 6; // 签约银行卡号
  7065. optional string CardNum = 7; // 证件号码
  7066. }
  7067. // 重置密码应答
  7068. message ResetPasswordRsp {
  7069. optional MessageHead Header = 1; // 消息头
  7070. optional int32 RetCode = 2; // 返回码
  7071. optional string RetDesc = 3; // 描述信息
  7072. optional string NewPwd = 4; // 重置后密码
  7073. }
  7074. // 招标申请请求
  7075. message TenderApplyReq {
  7076. optional MessageHead Header = 1;
  7077. optional uint64 TenderUserID = 2; // 招标方用户ID
  7078. optional string TenderNum = 3; // 招标编号
  7079. optional string TenderTitle = 4; // 招标主题
  7080. optional string TenderGoods = 5; // 招标标的
  7081. optional uint32 TenderType = 6; // 招标类型1:公开招标2:指定招标
  7082. repeated string UserName = 7; // tendertype=2时填写,审核时根据名称确认
  7083. optional uint32 GradeType = 8; // 评分类型1:现场评分2:在线评分
  7084. optional string TenderFile = 9; // 招标文件
  7085. optional string OpenDate = 10; // 开标日期
  7086. optional string TenderContact = 11; // 招标联系人
  7087. optional string TenderTelphone = 12; // 招标联系电话
  7088. optional uint32 MarketID = 13; // 市场ID
  7089. optional uint32 ApplyStatus = 14; // 申请状态1:未提交10:待审核
  7090. optional string ClientSerialNo = 15; // 客户端流水号
  7091. optional uint64 TenderAccountID = 16; // 招标方资金账户ID,
  7092. optional uint32 TenderApplyID = 17; // 招标申请ID,申请撤回后修改再提交一定要填写
  7093. }
  7094. // 招标申请请求响应
  7095. message TenderApplyRsp {
  7096. optional MessageHead Header = 1; // 消息头
  7097. optional int32 RetCode = 2; // 返回码
  7098. optional string RetDesc = 3; // 描述信息
  7099. optional uint64 ApplyID = 4; // 申请ID
  7100. }
  7101. // 招标申请撤回请求
  7102. message TenderApplyBackReq {
  7103. optional MessageHead Header = 1;
  7104. optional uint64 ApplyID = 2; // 申请ID
  7105. }
  7106. // 招标申请撤回请求响应
  7107. message TenderApplyBackRsp {
  7108. optional MessageHead Header = 1; // 消息头
  7109. optional int32 RetCode = 2; // 返回码
  7110. optional string RetDesc = 3; // 描述信息
  7111. }
  7112. // 投标申请请求
  7113. message BidApplyReq {
  7114. optional MessageHead Header = 1;
  7115. optional uint64 BidUserID = 2; // 投标方用户ID
  7116. optional uint32 ApplyID = 3; // 招标申请ID
  7117. optional uint32 GoodsID = 4; // 招标信息ID
  7118. optional string Contact = 5; // 联系人
  7119. optional string Telphone = 6; // 固定电话(加密)
  7120. optional string Mobile = 7; // 手机(加密)
  7121. optional string Email = 8; // 电子邮件(加密)
  7122. optional string Address = 9; // 投标方地址
  7123. optional string BidFile = 10; // 投标文件
  7124. optional uint32 ApplyStatus = 11; // 申请状态-1:未提交
  7125. optional string ClientSerialNo = 12; // 客户端流水号
  7126. optional uint64 BidAccountID = 13; // 投标方资金账户ID
  7127. optional uint32 BidApplyID = 14; // 投标申请ID,申请撤回后修改再提交一定要填写
  7128. }
  7129. // 投标申请请求
  7130. message BidApplyRsp {
  7131. optional MessageHead Header = 1; // 消息头
  7132. optional int32 RetCode = 2; // 返回码
  7133. optional string RetDesc = 3; // 描述信息
  7134. optional uint64 ApplyID = 4; // 申请ID
  7135. }
  7136. // 投标申请撤回请求
  7137. message BidApplyBackReq {
  7138. optional MessageHead Header = 1;
  7139. optional uint64 ApplyID = 2; // 申请ID
  7140. }
  7141. // 投标申请撤回请求响应
  7142. message BidApplyBackRsp {
  7143. optional MessageHead Header = 1; // 消息头
  7144. optional int32 RetCode = 2; // 返回码
  7145. optional string RetDesc = 3; // 描述信息
  7146. }
  7147. // 议价申请请求
  7148. message WrBargainApplyReq {
  7149. optional MessageHead Header = 1;
  7150. optional uint64 WRTradeOrderID = 2; // 关联委托单ID
  7151. optional string UserID = 3; // 摘牌人用户ID
  7152. optional string AccountID = 4; // 摘牌资金账号
  7153. optional string BuyOrSell = 5; // 摘牌方向
  7154. optional uint64 ApplyQty = 6; // 摘牌数量
  7155. optional string ApplyPrice = 7; // 申请价格
  7156. optional string ApplyRemark = 8; // 申请备注
  7157. }
  7158. // 议价申请响应
  7159. message WrBargainApplyRsp {
  7160. optional MessageHead Header = 1; // 消息头
  7161. optional int32 RetCode = 2; // 返回码
  7162. optional string RetDesc = 3; // 描述信息
  7163. optional uint64 WrBargainID = 4; // 申请ID
  7164. }
  7165. // 议价申请撤回请求
  7166. message WrBargainBackReq {
  7167. optional MessageHead Header = 1;
  7168. optional uint64 WrBargainID = 2; // 申请ID
  7169. }
  7170. // 议价申请撤回请求响应
  7171. message WrBargainBackRsp {
  7172. optional MessageHead Header = 1; // 消息头
  7173. optional int32 RetCode = 2; // 返回码
  7174. optional string RetDesc = 3; // 描述信息
  7175. }
  7176. // 议价申请拒绝请求
  7177. message WrBargainNoAgreeReq {
  7178. optional MessageHead Header = 1;
  7179. optional uint64 WrBargainID = 2; // 申请ID
  7180. optional uint64 ConfirmQty = 3; // 可接受数量(拒绝时填写)
  7181. optional double ConfirmPrice = 4; // 可接受价格(拒绝时填写)
  7182. optional string ConfirmRemark = 5; // 确认备注
  7183. }
  7184. // 议价申请拒绝响应
  7185. message WrBargainNoAgreeRsp {
  7186. optional MessageHead Header = 1; // 消息头
  7187. optional int32 RetCode = 2; // 返回码
  7188. optional string RetDesc = 3; // 描述信息
  7189. }
  7190. // 修改用户是否需要发票请求
  7191. message UserInfoNeedInvoiceReq {
  7192. optional MessageHead Header = 1;
  7193. optional uint64 UserID = 2; // 用户ID
  7194. optional uint32 NeedInvoice = 3; // 是否需要发票,0:不需要,1:需要
  7195. }
  7196. // 修改用户是否需要发票响应
  7197. message UserInfoNeedInvoiceRsp {
  7198. optional MessageHead Header = 1; // 消息头
  7199. optional int32 RetCode = 2; // 返回码
  7200. optional string RetDesc = 3; // 描述信息
  7201. optional uint64 UserID = 4; // 用户ID
  7202. }
  7203. // 提货计划申请
  7204. message TakeWRPlanReq {
  7205. optional MessageHead Header = 1;
  7206. optional uint64 UserID = 2; // 用户ID
  7207. optional uint64 ContractID = 3; // 合同ID
  7208. optional string PlanDate = 4; // 计划日期(yyyy-MM-ddHH:mm:ss)
  7209. optional uint32 PlanDays = 5; // 计划提货周期(天)
  7210. optional string TakeAddress = 6; // 提货地点
  7211. optional string SellContact = 7; // 堆场管理联系人
  7212. optional string SellContactPhoneNumber = 8; // 堆块管理联系人电话
  7213. optional string TrusteeName = 9; // 受托方名称
  7214. optional string TrustPhoneNumber = 10; // 受托方联系方式
  7215. optional string DeliveryPlace = 11; // 收货地点
  7216. optional string BuyContact = 12; // 现场联系人
  7217. optional string BuyContactPhoneNumber = 13; // 现场联系人电话
  7218. optional uint32 TakePlanMode = 14; // 提货方式-1:FOB(自提)
  7219. }
  7220. // 提货计划申请应答
  7221. message TakeWRPlanRsp {
  7222. optional MessageHead Header = 1; // 消息头
  7223. optional int32 RetCode = 2; // 返回码
  7224. optional string RetDesc = 3; // 描述信息
  7225. optional uint64 TakePlanID = 4; // 计划ID
  7226. }
  7227. // 提货计划撤销
  7228. message TakeWRPlanRebackReq {
  7229. optional MessageHead Header = 1;
  7230. optional uint64 TakePlanID = 2; // 计划ID/提货单ID
  7231. optional uint32 BackType = 3; // 1提货计划2
  7232. }
  7233. // 提货计划撤销应答
  7234. message TakeWRPlanRebackRsp {
  7235. optional MessageHead Header = 1; // 消息头
  7236. optional int32 RetCode = 2; // 返回码
  7237. optional string RetDesc = 3; // 描述信息
  7238. optional uint64 TakePlanID = 4; // 计划ID
  7239. }
  7240. // 提货单司机信息
  7241. message TakeDetailDriverInfo {
  7242. optional string DriverName = 1; // 司机名称
  7243. optional string DriverPhoneNumber = 2; // 司机电话
  7244. optional string DriverCardNumber = 3; // 司机身份证
  7245. optional string DriverCarPlate = 4; // 司机车牌
  7246. }
  7247. // 提货单申请
  7248. message TakeWRPlanDetailReq {
  7249. optional MessageHead Header = 1;
  7250. optional uint64 TakePlanD = 2; // 提货计划ID
  7251. optional uint64 DetailQty = 3; // 提货单数量
  7252. optional string DetailDate = 4; // 提货单日期(yyyy-MM-dd)
  7253. optional uint32 EffectiveDays = 5; // 有效期(天)
  7254. optional uint32 TakePlanMode = 6; // 提货方式-1:FOB(自提)
  7255. repeated TakeDetailDriverInfo DriverInfo = 7; // 提货单司机信息
  7256. }
  7257. // 提货单申请应答
  7258. message TakeWRPlanDetailRsp {
  7259. optional MessageHead Header = 1; // 消息头
  7260. optional int32 RetCode = 2; // 返回码
  7261. optional string RetDesc = 3; // 描述信息
  7262. optional uint64 DetailID = 4; // 提货单ID
  7263. }
  7264. // 提货单确认收货
  7265. message TakeSureReq {
  7266. optional MessageHead Header = 1;
  7267. optional uint64 DetailID = 2; // 提货单ID
  7268. }
  7269. // 提货单确认收货
  7270. message TakeSureRsp {
  7271. optional MessageHead Header = 1; // 消息头
  7272. optional int32 RetCode = 2; // 返回码
  7273. optional string RetDesc = 3; // 描述信息
  7274. optional uint64 DetailID = 4; // 提货单ID
  7275. }
  7276. // 现货单据录入请求
  7277. message ErmsContractInfoReq {
  7278. optional MessageHead Header = 1;
  7279. optional uint64 ClientSerialID = 2; // 客户端唯一ID
  7280. optional uint64 LoginId = 3; // 客户端登录账号
  7281. optional uint64 ContractId = 4; // 合同ID(修改时必填,添加时不用填写)
  7282. optional uint32 ContractType = 5; // 合同类型
  7283. optional string ContractNo = 6; // 合同编号
  7284. optional string CustomerName = 7; // 供应商名称
  7285. optional string SignDate = 8; // 签订日期(YYYYMMDD)
  7286. optional string ContractAttachment = 9; // 合同附件
  7287. optional uint64 UserId = 10; // 组织机构ID
  7288. optional uint64 AccountId = 11; // 资金账号ID
  7289. optional uint64 WrFactoryId = 12; // 交割要素ID
  7290. optional uint64 DeliveryGoodsId = 13; // 现货品种ID
  7291. optional uint64 BrandId = 14; // 品牌ID
  7292. optional uint64 QualityId = 15; // 品质ID
  7293. optional uint64 SpecId = 16; // 规格ID
  7294. optional uint64 WarehouseId = 17; // 仓库ID
  7295. optional uint64 DeliveryMonthId = 18; // 交收月ID
  7296. optional string ProductName = 19; // 产品名称
  7297. optional uint64 ContractQty = 20; // 合同数量
  7298. optional double ContractAmount = 21; // 合同总金额
  7299. optional string Remark = 22; // 备注
  7300. }
  7301. // 现货单据录入应答
  7302. message ErmsContractInfoRsp {
  7303. optional MessageHead Header = 1; // 消息头
  7304. optional int32 RetCode = 2; // 返回码
  7305. optional string RetDesc = 3; // 描述信息
  7306. optional uint64 ClientSerialID = 4; // 客户端唯一ID
  7307. optional uint64 ContractId = 5; // 合同ID
  7308. }
  7309. // 外部单据录入请求
  7310. message UpdatePositionApplyReq {
  7311. optional MessageHead Header = 1;
  7312. optional uint64 ClientSerialID = 2; // 客户端唯一ID
  7313. optional uint64 LoginId = 3; // 客户端登录账号
  7314. optional uint64 ApplyId = 4; // 申请ID(修改时必填,添加时不用填写)
  7315. optional uint64 GoodsId = 5; // 合约ID
  7316. optional uint64 AccountId = 6; // 资金账号ID
  7317. optional uint32 BuyOrSell = 7; // 买卖方向,0:买,1:卖
  7318. optional uint32 BuildType = 8; // 开平,1:建仓,2:平仓
  7319. optional uint32 CloseType = 9; // 平仓方式,0:无,1:平今,2:平昨
  7320. optional double Price = 10; // 合约价格
  7321. optional double Qty = 11; // 合约数量
  7322. optional uint32 ApplyStatus = 12; // 申请状态
  7323. optional string Remark = 13; // 备注
  7324. }
  7325. // 外部单据录入应答
  7326. message UpdatePositionApplyRsp {
  7327. optional MessageHead Header = 1; // 消息头
  7328. optional int32 RetCode = 2; // 返回码
  7329. optional string RetDesc = 3; // 描述信息
  7330. optional uint64 ClientSerialID = 4; // 客户端唯一ID
  7331. optional uint64 ApplyId = 5; // 合同ID
  7332. }
  7333. // 场外期权录入请求
  7334. message OptionHolderDetailReq {
  7335. optional MessageHead Header = 1;
  7336. optional uint64 ClientSerialID = 2; // 客户端唯一ID
  7337. optional uint64 LoginId = 3; // 客户端登录账号
  7338. optional uint64 TradeId = 4; // 成交单号
  7339. optional uint32 BuyOrSell = 5; // 买卖方向,0:买,1:卖
  7340. optional uint64 MarketId = 6; // 市场ID
  7341. optional uint64 TargetGoodsId = 7; // 标的合约ID
  7342. optional uint64 AccountId = 8; // 资金账号
  7343. optional uint32 ExerciseType = 9; // 行权类型-1:欧式期权2:美式期权
  7344. optional uint32 ExpireType = 10; // 行权日类型-1:滚动行权
  7345. optional uint32 ExpireCycle = 11; // 行权周期(天)
  7346. optional string ExpireDate = 12; // 行权日期(YYYYMMDD)
  7347. optional uint32 OptionType = 13; // 期权类型-1:认购(看涨)
  7348. optional double HolderQty = 14; // 已对冲数量[场外期(单向)]
  7349. optional double OpenPrice = 15; // 行权价格
  7350. optional double Premium = 16; // 权利金单价
  7351. }
  7352. // 场外期权录入应答
  7353. message OptionHolderDetailRsp {
  7354. optional MessageHead Header = 1; // 消息头
  7355. optional int32 RetCode = 2; // 返回码
  7356. optional string RetDesc = 3; // 描述信息
  7357. optional uint64 ClientSerialID = 4; // 客户端唯一ID
  7358. optional uint32 BuyOrSell = 5; // 买卖方向,0:买,1:卖
  7359. optional uint64 TradeId = 6; // 成交单号
  7360. }
  7361. // 仓单回购录入估值列表
  7362. message EstimateConfig {
  7363. optional uint64 GoodsId = 1; // 商品ID
  7364. optional double GoodsRatio = 2; // 商品系数
  7365. optional double WeightRatio = 3; // 重量系数
  7366. optional double PriceMove = 4; // 商品升贴水值
  7367. }
  7368. // 仓单回购录入请求
  7369. message SCFContractEstimateReq {
  7370. optional MessageHead Header = 1;
  7371. optional uint64 ClientSerialID = 2; // 客户端唯一ID
  7372. optional uint64 LoginId = 3; // 客户端登录账号
  7373. optional uint64 ScfContractId = 4; // 合同单号(修改时必填写,添加时不用填写)
  7374. optional uint32 ContractDirection = 5; // 合同方向类型,1:双向,2:单向(贷方),3:单向(借方)
  7375. optional uint32 ScfContractType = 6; // 合同类型-1:仓单回购
  7376. optional uint64 MarketId = 7; // 市场ID
  7377. optional uint64 LenderUserId = 8; // 贷款方用户ID
  7378. optional uint64 LenderAccountId = 9; // 贷款方资金账号
  7379. optional uint64 BorrowerUserId = 10; // 借款用户ID
  7380. optional uint64 BorrowerAccountId = 11; // 借款方资金账号
  7381. optional double MarginRatio = 12; // 保证金比例
  7382. optional double LenderAmount = 13; // 贷款金额
  7383. optional double WRInitAmount = 14; // 货款金额
  7384. optional uint32 IsAutoLoan = 15; // 放款方式,0:手动,1:自动
  7385. optional string DeadLine = 16; // 回购截止日期
  7386. optional uint32 InterestRateMode = 17; // 利率类型,1:年利率,2:日利率
  7387. optional double InterestRate = 18; // 利率值
  7388. optional uint32 InterestSettleMode = 19; // 结息方式,1:按日结息,2:按周结息,3:按月结息
  7389. optional uint32 InterestSettleValue = 20; // 结息方式值(金融机构利率配置表配置值)
  7390. optional string ScfContractTmpContent = 21; // 合同模板内容
  7391. optional double RecoverRiskRate = 22; // 追缴风险率
  7392. optional uint64 WRQty = 23; // 数量
  7393. optional uint64 DeliveryGoodsId = 24; // 交收商品
  7394. optional double PriceMove = 25; // 升贴水
  7395. optional uint64 BrandId = 26; // 品牌编号
  7396. optional uint64 QualityId = 27; // 品质编号
  7397. optional uint64 SpecId = 28; // 规格编号
  7398. optional uint64 WarehouseId = 29; // 仓库编号
  7399. optional uint32 InterestMinLen = 30; // 最少计息时长
  7400. optional uint32 ContractStatus = 31; // 合同状态-1:待确认
  7401. repeated EstimateConfig EstimateConfigList = 32; // 商品估值列表
  7402. }
  7403. // 仓单回购录入应答
  7404. message SCFContractEstimateRsp {
  7405. optional MessageHead Header = 1; // 消息头
  7406. optional int32 RetCode = 2; // 返回码
  7407. optional string RetDesc = 3; // 描述信息
  7408. optional uint64 ClientSerialID = 4; // 客户端唯一ID
  7409. optional uint64 ScfContractId = 5; // 合同编号
  7410. }
  7411. // 登录账号绑定登录代码请求
  7412. message LoginAccountUpdateCodeReq {
  7413. optional MessageHead Header = 1;
  7414. optional uint64 ClientSerialID = 2; // 客户端唯一ID
  7415. optional uint64 LoginId = 3; // 客户端登录账号
  7416. optional string LoginCode = 4; // 登录代码
  7417. }
  7418. // 登录账号绑定登录代码应答
  7419. message LoginAccountUpdateCodeRsp {
  7420. optional MessageHead Header = 1; // 消息头
  7421. optional int32 RetCode = 2; // 返回码
  7422. optional string RetDesc = 3; // 描述信息
  7423. optional uint64 ClientSerialID = 4; // 客户端唯一ID
  7424. optional uint64 LoginId = 5; // 客户端登录账号
  7425. }
  7426. // 用户支付信息请求
  7427. message UserPayInfoReq {
  7428. optional MessageHead Header = 1;
  7429. optional uint64 ClientSerialID = 2; // 客户端唯一ID
  7430. optional uint64 LoginId = 3; // 客户端登录账号
  7431. optional uint32 PayInfoId = 4; // 自增id(修改、删除时必填)
  7432. optional uint32 UserId = 5; // 用户id
  7433. optional string PayModel = 6; // 支付方式
  7434. optional string PayInfo = 7; // 支付信息
  7435. optional string OptType = 8; // 操作类型1新增2修改3删除
  7436. }
  7437. // 用户支付信息应答
  7438. message UserPayInfoRsp {
  7439. optional MessageHead Header = 1; // 消息头
  7440. optional int32 RetCode = 2; // 返回码
  7441. optional string RetDesc = 3; // 描述信息
  7442. optional uint64 ClientSerialID = 4; // 客户端唯一ID
  7443. optional uint64 LoginId = 5; // 客户端登录账号
  7444. optional uint32 PayInfoId = 6; // 自增id(新增时返回)
  7445. optional string OptType = 7; // 操作类型1新增2修改3删除
  7446. }
  7447. // 单据录入撤销请求
  7448. message RepealApplyReq {
  7449. optional MessageHead Header = 1;
  7450. optional uint64 ClientSerialID = 2; // 客户端唯一ID
  7451. optional uint64 LoginId = 3; // 客户端登录账号
  7452. optional uint32 OptId = 4; // 操作id
  7453. optional uint32 OptStatus = 5; // 操作状态(填空字符串时由客户端默认处理)
  7454. optional string OptType = 6; // 操作类型1现货单据录入撤销2外部单据录入撤销3场外期权录入撤销
  7455. }
  7456. // 单据录入撤销应答
  7457. message RepealApplyRsp {
  7458. optional MessageHead Header = 1; // 消息头
  7459. optional int32 RetCode = 2; // 返回码
  7460. optional string RetDesc = 3; // 描述信息
  7461. optional uint64 ClientSerialID = 4; // 客户端唯一ID
  7462. optional uint64 LoginId = 5; // 客户端登录账号
  7463. optional string OptType = 6; // 操作类型1现货单据录入撤销2外部单据录入撤销3场外期权录入撤销
  7464. }
  7465. // 提货单确认收货请求
  7466. message TakeConfirmReq {
  7467. optional MessageHead Header = 1;
  7468. optional uint64 ClientSerialID = 2; // 客户端唯一ID
  7469. optional uint64 TakeOrderID = 3; // 提货单号
  7470. }
  7471. // 提货单确认收货应答
  7472. message TakeConfirmRsp {
  7473. optional MessageHead Header = 1; // 消息头
  7474. optional int32 RetCode = 2; // 返回码
  7475. optional string RetDesc = 3; // 描述信息
  7476. optional uint64 ClientSerialID = 4; // 客户端唯一ID
  7477. optional uint64 TakeOrderID = 5; // 提货单号
  7478. }
  7479. // 通知公告已读请求
  7480. message MsgReceiverReadedReq {
  7481. optional MessageHead Header = 1;
  7482. optional uint64 ClientSerialID = 2; // 客户端唯一ID
  7483. optional uint64 AutoID = 3; // 消息ID
  7484. optional uint32 ManagerID = 4; // 用户ID
  7485. optional uint32 ReceiverType = 5; // 接收用户类型-1:管理端用户
  7486. }
  7487. // 通知公告已读应答
  7488. message MsgReceiverReadedRsp {
  7489. optional MessageHead Header = 1; // 消息头
  7490. optional int32 RetCode = 2; // 返回码
  7491. optional string RetDesc = 3; // 描述信息
  7492. optional uint64 ClientSerialID = 4; // 客户端唯一ID
  7493. optional uint64 AutoID = 5; // 消息ID
  7494. }
  7495. // 交易商头像请求
  7496. message DealerHeadReq {
  7497. optional MessageHead Header = 1;
  7498. optional uint64 ClientSerialID = 2; // 客户端唯一ID
  7499. optional uint64 UserId = 3; // 用户ID
  7500. optional string HeadUrl = 4; // 头像地址
  7501. optional uint32 OptType = 5; // 操作类型1新增2修改3删除
  7502. }
  7503. // 交易商头像应答
  7504. message DealerHeadRsp {
  7505. optional MessageHead Header = 1; // 消息头
  7506. optional int32 RetCode = 2; // 返回码
  7507. optional string RetDesc = 3; // 描述信息
  7508. optional uint64 ClientSerialID = 4; // 客户端唯一ID
  7509. }
  7510. // 用户商品收藏请求
  7511. message UserProductReq {
  7512. optional MessageHead Header = 1;
  7513. optional uint64 ClientSerialID = 2; // 客户端唯一ID
  7514. optional uint64 UserId = 3; // 用户ID
  7515. optional uint64 GoodsID = 4; // 商品ID
  7516. optional uint64 MarketID = 5; // 市场ID
  7517. optional uint32 OptType = 6; // 操作类型1新增2修改3删除
  7518. }
  7519. // 用户商品收藏应答
  7520. message UserProductRsp {
  7521. optional MessageHead Header = 1; // 消息头
  7522. optional int32 RetCode = 2; // 返回码
  7523. optional string RetDesc = 3; // 描述信息
  7524. optional uint64 ClientSerialID = 4; // 客户端唯一ID
  7525. }
  7526. // 订单收货信息请求
  7527. message AuctionOrderReq {
  7528. optional MessageHead Header = 1;
  7529. optional uint64 ClientSerialID = 2; // 客户端唯一ID
  7530. optional uint64 TradeID = 3; // 成交单ID
  7531. optional string ReciverName = 4; // 收货人姓名
  7532. optional uint32 CardTypeID = 5; // 收货人证件类型
  7533. optional string CardNum = 6; // 收货人证件号码
  7534. optional string PhoneNum = 7; // 收货人联系方式
  7535. optional string Address = 8; // 收货人详细地址
  7536. }
  7537. // 订单收货信息应答
  7538. message AuctionOrderRsp {
  7539. optional MessageHead Header = 1; // 消息头
  7540. optional int32 RetCode = 2; // 返回码
  7541. optional string RetDesc = 3; // 描述信息
  7542. optional uint64 ClientSerialID = 4; // 客户端唯一ID
  7543. }
  7544. // 提货单确认收货请求
  7545. message TakeConfirmSZDZReq {
  7546. optional MessageHead Header = 1;
  7547. optional uint64 ClientSerialID = 2; // 客户端唯一ID
  7548. optional uint64 TakeOrderID = 3; // 提货单号
  7549. }
  7550. // 提货单确认收货应答
  7551. message TakeConfirmSZDZRsp {
  7552. optional MessageHead Header = 1; // 消息头
  7553. optional int32 RetCode = 2; // 返回码
  7554. optional string RetDesc = 3; // 描述信息
  7555. optional uint64 ClientSerialID = 4; // 客户端唯一ID
  7556. optional uint64 TakeOrderID = 5; // 提货单号
  7557. }
  7558. // 确认提货请求
  7559. message TakeAuctionOrderReq {
  7560. optional MessageHead Header = 1;
  7561. optional uint64 ClientSerialID = 2; // 客户端唯一ID
  7562. optional uint64 TradeId = 3; // 成交单号
  7563. }
  7564. // 确认提货应答
  7565. message TakeAuctionOrderRsp {
  7566. optional MessageHead Header = 1; // 消息头
  7567. optional int32 RetCode = 2; // 返回码
  7568. optional string RetDesc = 3; // 描述信息
  7569. optional uint64 ClientSerialID = 4; // 客户端唯一ID
  7570. }
  7571. // 外部开户请求
  7572. message ExtOpenAccountReq {
  7573. optional MessageHead Header = 1;
  7574. optional string ExchTransID = 2; // 交易ID
  7575. optional string FUserID = 3; // 用户代码
  7576. optional double InMoney = 4; // 入金金额
  7577. optional uint32 ExtFIsTrustee = 5; // 是否是投顾0客户,1投顾
  7578. optional string UserName = 6; // 用户名称
  7579. }
  7580. // 外部开户应答
  7581. message ExtOpenAccountRsp {
  7582. optional MessageHead Header = 1; // 消息头
  7583. optional int32 RetCode = 2; // 返回码
  7584. optional string RetDesc = 3; // 描述信息
  7585. optional string ExchTransID = 4; // 交易ID
  7586. optional string FUserID = 5; // 用户代码
  7587. optional string TradeAccountNo = 6; // 交易系统的登录账号
  7588. optional string TradePwd = 7; // 登录密码
  7589. }
  7590. // 外部托管请求
  7591. message ExtTrusteeReq {
  7592. optional MessageHead Header = 1;
  7593. optional string ExchTransID = 2; // 交易ID
  7594. optional string FUserID = 3; // 用户代码
  7595. optional uint32 IsTrusteeship = 4; // 0-否1-是
  7596. }
  7597. // 外部托管响应
  7598. message ExtTrusteeRsp {
  7599. optional MessageHead Header = 1; // 消息头
  7600. optional int32 RetCode = 2; // 返回码
  7601. optional string RetDesc = 3; // 描述信息
  7602. optional string ExchTransID = 4; // 交易ID
  7603. optional string FUserID = 5; // 用户代码
  7604. optional uint32 IsTrusteeship = 6; // 0-否1-是
  7605. }
  7606. // 外部注销请求
  7607. message ExtLogoutReq {
  7608. optional MessageHead Header = 1;
  7609. optional string ExchTransID = 2; // 交易ID
  7610. optional string FUserID = 3; // 用户代码
  7611. }
  7612. // 外部注销响应
  7613. message ExtLogoutRsp {
  7614. optional MessageHead Header = 1; // 消息头
  7615. optional int32 RetCode = 2; // 返回码
  7616. optional string RetDesc = 3; // 描述信息
  7617. optional string ExchTransID = 4; // 交易ID
  7618. optional string FUserID = 5; // 用户代码
  7619. }
  7620. // 外部投顾与客户关系请求
  7621. message ExtTrusteeRelationShipReq {
  7622. optional MessageHead Header = 1;
  7623. optional string ExchTransID = 2; // 交易ID
  7624. optional string FUserID = 3; // 用户代码
  7625. repeated ArrayFTouGuClientInfo FTouGuClientInfo = 4; // 投顾与客户关系
  7626. optional uint32 IdRelation = 5; // 0关联1
  7627. }
  7628. // 外部投顾与客户关系响应
  7629. message ExtTrusteeRelationShipRsp {
  7630. optional MessageHead Header = 1; // 消息头
  7631. optional int32 RetCode = 2; // 返回码
  7632. optional string RetDesc = 3; // 描述信息
  7633. optional string ExchTransID = 4; // 交易ID
  7634. optional string FUserID = 5; // 用户代码
  7635. }
  7636. // 投顾与客户关系
  7637. message ArrayFTouGuClientInfo {
  7638. optional string FUserID = 1; // 用户代码
  7639. }
  7640. // 外部冻结解冻请求
  7641. message ExtFreezeUserReq {
  7642. optional MessageHead Header = 1;
  7643. optional string ExchTransID = 2; // 交易ID
  7644. optional string FUserID = 3; // 用户代码
  7645. optional uint32 Isfrozen = 4; // 0解冻1冻结
  7646. }
  7647. // 外部冻结解冻响应
  7648. message ExtFreezeUserRsp {
  7649. optional MessageHead Header = 1; // 消息头
  7650. optional int32 RetCode = 2; // 返回码
  7651. optional string RetDesc = 3; // 描述信息
  7652. optional string ExchTransID = 4; // 交易ID
  7653. optional string FUserID = 5; // 用户代码
  7654. }
  7655. // 参与竞拍请求
  7656. message PartakeAuctionOrderReq {
  7657. optional MessageHead Header = 1;
  7658. optional uint64 ApplyID = 2; // 申请ID
  7659. optional uint64 GoodsID = 3; // 拍品ID
  7660. optional uint32 DeliveryGoodsID = 4; // 交割商品商品ID
  7661. optional uint64 AccountID = 5; // 资金账号
  7662. optional uint32 BuyOrSell = 6; // 买卖方向
  7663. optional uint32 OrderSrc = 7; // 委托来源
  7664. optional string ClientSerialNo = 8; // 终端流水号
  7665. optional string ClientOrderTime = 9; // 终端委托时间
  7666. optional uint32 ClientType = 10; // 终端类型
  7667. }
  7668. // 参与竞拍应答
  7669. message PartakeAuctionOrderRsp {
  7670. optional MessageHead Header = 1; // 消息头
  7671. optional int32 RetCode = 2; // 返回码
  7672. optional string RetDesc = 3; // 描述信息
  7673. optional uint64 OrderID = 4; // 委托单ID
  7674. optional uint64 ApplyID = 5; // 申请ID
  7675. optional uint64 GoodsID = 6; // 拍品ID
  7676. optional double FreezeMargin = 7; // 冻结保证金
  7677. optional string ClientSerialNo = 8; // 客户端流水号
  7678. }
  7679. // 竞拍报价请求
  7680. message AuctionQuoteOrderReq {
  7681. optional MessageHead Header = 1;
  7682. optional uint64 RelatedOrderID = 2; // 关联参与竞拍委托ID
  7683. optional uint64 ApplyID = 3; // 申请ID
  7684. optional uint64 GoodsID = 4; // 拍品ID
  7685. optional uint64 AccountID = 5; // 资金账号
  7686. optional uint32 BuyOrSell = 6; // 买卖方向
  7687. optional uint32 OrderQty = 7; // 委托数量
  7688. optional double CurPrice = 8; // 当前价格
  7689. optional double PriceStep = 9; // 价格幅度(降价式、竞价式)
  7690. optional uint32 StepRatio = 10; // 价格幅度系数
  7691. optional double OrderPrice = 11; // 报价价格
  7692. optional uint32 OrderSrc = 12; // 委托来源
  7693. optional string ClientSerialNo = 13; // 终端流水号
  7694. optional string ClientOrderTime = 14; // 终端委托时间
  7695. optional uint32 GroupID = 15; // 场次ID
  7696. }
  7697. // 竞拍报价应答
  7698. message AuctionQuoteOrderRsp {
  7699. optional MessageHead Header = 1; // 消息头
  7700. optional int32 RetCode = 2; // 返回码
  7701. optional string RetDesc = 3; // 描述信息
  7702. optional uint64 RelatedOrderID = 4; // 关联参与竞拍委托ID
  7703. optional uint64 ApplyID = 5; // 申请ID
  7704. optional uint64 GoodsID = 6; // 拍品ID
  7705. optional string ClientSerialNo = 7; // 客户端流水号
  7706. }
  7707. // 竞拍违约处理请求
  7708. message AuctionBreachReq {
  7709. optional MessageHead Header = 1;
  7710. optional uint64 TradeID = 2; // 成交ID
  7711. optional double BuyAmount = 3; // 买方应付/应收金额
  7712. optional double SellAmount = 4; // 卖方应付/应收金额
  7713. optional double ExchangeAmount = 5; // 交易所方应收金额
  7714. }
  7715. // 竞拍违约处理应答
  7716. message AuctionBreachRsp {
  7717. optional MessageHead Header = 1; // 消息头
  7718. optional int32 RetCode = 2; // 返回码
  7719. optional string RetDesc = 3; // 描述信息
  7720. optional uint64 TradeID = 4; // 成交ID
  7721. }
  7722. // 竞拍审核请求
  7723. message AuctionCheckOrderReq {
  7724. optional MessageHead Header = 1;
  7725. optional uint64 GoodsID = 2; // 拍品ID
  7726. optional string GoodsCode = 3; // 拍品代码
  7727. optional string GoodsName = 4; // 拍品名称
  7728. optional uint64 ApplyID = 5; // 申请ID
  7729. optional uint64 WRUserID = 6; // 申请人用户ID
  7730. optional uint64 WRAccountID = 7; // 资金账号ID
  7731. optional uint32 MarketID = 8; // 市场ID
  7732. optional uint32 BuyOrSell = 9; // 方向
  7733. optional uint64 WRFactorTypeID = 10; // 仓单要素类型ID
  7734. optional uint32 DeliveryGoodsID = 11; // 交割商品ID
  7735. optional uint32 BrandID = 12; // 品牌ID
  7736. optional uint32 QualityID = 13; // 品质ID
  7737. optional uint32 SpecID = 14; // 规格ID
  7738. optional uint32 WarehouseID = 15; // 仓库ID
  7739. optional uint32 DeliveryMonthID = 16; // 月份ID
  7740. optional uint64 ApplyQty = 17; // 申请数量
  7741. optional uint32 AcutionStatus = 18; // 竞拍状态
  7742. optional double StartPrice = 19; // 起拍价
  7743. optional double FloorPrice = 20; // 底价
  7744. optional string StartTradeDate = 21; // 起拍交易日
  7745. optional string StartTime = 22; // 开始时间
  7746. optional string EndTime = 23; // 结束时间
  7747. optional string AuctionDesc = 24; // 拍品描述
  7748. optional double Margin = 25; // 买方保证金设置值
  7749. optional uint32 CutInterval = 26; // 延时周期-[降价式]
  7750. optional double PriceStep = 27; // 价格幅度[降价式、竞价式]
  7751. optional double TradePrice = 28; // 成交价
  7752. optional uint64 TradeQty = 29; // 成交数量
  7753. optional uint64 QuoteNum = 30; // 出价次数
  7754. optional string CreateTime = 31; // 创建时间
  7755. optional string UpdateTime = 32; // 更新时间
  7756. optional uint32 DecimalPlace = 33; // 报价小数位
  7757. optional uint32 FeeAlgorithm = 34; // 买方手续费收取方式
  7758. optional double ExchageChargeValue = 35; // 买方手续费设置值(交易所收)
  7759. optional uint32 FeeAlgorithm2 = 36; // 卖方手续费收取方式
  7760. optional double ExchageChargeValue2 = 37; // 卖方手续费设置值(交易所收)
  7761. optional uint32 FeeAlgorithm3 = 38; // 流拍手续费收取方式
  7762. optional double ExchageChargeValue3 = 39; // 流拍卖方手续费设置值(交易所收)
  7763. optional double FailCharge = 40; // 流拍手续费
  7764. optional string Unit = 41; // 单位
  7765. optional string GoodsPicUrl = 42; // 商品介绍图片
  7766. optional uint32 BuyMarginAlgorithm = 43; // 买方保证金方式
  7767. optional uint32 SellMarginAlgorithm = 44; // 卖方保证金方式
  7768. optional double SellMarginValue = 45; // 卖方保证金设置值
  7769. optional uint32 PerformanceMode = 46; // 履约方式
  7770. optional int32 PerformanceTemplateID = 47; // 履约计划模板ID
  7771. optional uint32 BuyFirstMarginAlgorithm = 48; // 买方出价保证金方式
  7772. optional double BuyFirstMarginValue = 49; // 买方出价保证金值
  7773. optional string ClientSerialNo = 50; // 客户端流水号
  7774. optional uint32 PriceMode = 51; // 价格类型
  7775. optional uint32 HasWR = 52; // 是否有仓单
  7776. optional double HighestPrice = 53; // 最高价
  7777. optional double RebateRatio = 54; // 返利比率
  7778. optional string Appraisal = 55; // 鉴定书
  7779. optional uint32 GroupID = 56; // 竞拍场次ID
  7780. optional double MemberChargeValue = 57; // 买方手续费设置值(会员收)
  7781. optional double MemberChargeValue2 = 58; // 卖方手续费设置值(会员收)
  7782. optional double MemberChargeValue3 = 59; // 流拍卖方手续费设置值(会员收)
  7783. optional uint32 PerformanceWay = 60; // 交货模式-2:分步履约
  7784. optional double BuyReleaseRatio = 61; // 买方释放比率[2:分步履约]
  7785. optional double SellReleaseRatio = 62; // 卖方释放比率[2:分步履约]
  7786. optional uint32 ExecuteMode = 63; // 执行方式[2:分步履约]-1:顺序执行
  7787. optional uint32 ExecuteSide = 64; // 执行方[2:分步履约]-1:买方
  7788. optional uint32 MinQty = 65; // 最小执行量[2:分步履约]
  7789. optional uint32 HoldDays = 66; // 合同期限[2:分步履约]
  7790. }
  7791. // 竞拍审核应答
  7792. message AuctionCheckOrderRsp {
  7793. optional MessageHead Header = 1; // 消息头
  7794. optional int32 RetCode = 2; // 返回码
  7795. optional string RetDesc = 3; // 描述信息
  7796. optional uint64 ApplyID = 4; // 申请ID
  7797. optional uint64 GoodsID = 5; // 拍品ID
  7798. optional double FreezeMargin = 6; // 冻结保证金
  7799. optional string ClientSerialNo = 7; // 客户端流水号
  7800. }
  7801. // 竞拍申请注销请求
  7802. message AuctionApplyCancelReq {
  7803. optional MessageHead Header = 1;
  7804. optional uint64 GoodsID = 2; // 拍品ID
  7805. optional string ClientSerialNo = 3; // 客户端流水号
  7806. }
  7807. // 竞拍申请注销应答
  7808. message AuctionApplyCancelRsp {
  7809. optional MessageHead Header = 1; // 消息头
  7810. optional int32 RetCode = 2; // 返回码
  7811. optional string RetDesc = 3; // 描述信息
  7812. optional string ClientSerialNo = 4; // 客户端流水号
  7813. }
  7814. // 竞拍修改审核后的拍品请求
  7815. message AuctionModifyOrderInfoReq {
  7816. optional MessageHead Header = 1;
  7817. optional uint64 GoodsID = 2; // 拍品ID
  7818. optional string StartTradeDate = 3; // 起拍交易日
  7819. optional string StartTime = 4; // 开始时间
  7820. optional string EndTime = 5; // 结束时间
  7821. optional string ClientSerialNo = 6; // 客户端流水号
  7822. optional double FloorPrice = 7; // 底价
  7823. optional double StartPrice = 8; // 起拍价
  7824. optional uint32 Cutinterval = 9; // 降价周期-[降价式]
  7825. optional double PriceStep = 10; // 价格幅度[降价式、竞价式];[荷兰式]:大钟转一圈的价格,10的幂次方
  7826. optional uint32 ModifyType = 11; // 修改类型(默认为0),改价时填1
  7827. }
  7828. // 竞拍修改审核后的拍品应答
  7829. message AuctionModifyOrderInfoRsp {
  7830. optional MessageHead Header = 1; // 消息头
  7831. optional int32 RetCode = 2; // 返回码
  7832. optional string RetDesc = 3; // 描述信息
  7833. optional string ClientSerialNo = 4; // 客户端流水号
  7834. }
  7835. // 竞拍拍品流拍请求
  7836. message AuctionNoBeatReq {
  7837. optional MessageHead Header = 1;
  7838. optional uint64 GoodsID = 2; // 拍品ID
  7839. optional uint32 GroupID = 3; // 场次ID
  7840. optional string ClientSerialNo = 4; // 客户端流水号
  7841. }
  7842. // 竞拍拍品流拍应答
  7843. message AuctionNoBeatRsp {
  7844. optional MessageHead Header = 1; // 消息头
  7845. optional int32 RetCode = 2; // 返回码
  7846. optional string RetDesc = 3; // 描述信息
  7847. optional string ClientSerialNo = 4; // 客户端流水号
  7848. }
  7849. // 荷兰式按场次参与竞拍请求
  7850. message PartakeGroupAuctionOrderReq {
  7851. optional MessageHead Header = 1;
  7852. optional uint64 AccountID = 2; // 资金账号
  7853. optional uint32 GroupID = 3; // 场次ID
  7854. optional uint32 UserID = 4; // 申请人用户ID
  7855. optional uint32 OrderSrc = 5; // 委托来源
  7856. optional string ClientSerialNo = 6; // 终端流水号
  7857. optional string ClientOrderTime = 7; // 终端委托时间(预留)
  7858. optional uint32 ClientType = 8; // 终端类型
  7859. }
  7860. // 荷兰式按场次参与竞拍应答
  7861. message PartakeGroupAuctionOrderRsp {
  7862. optional MessageHead Header = 1; // 消息头
  7863. optional int32 RetCode = 2; // 返回码
  7864. optional string RetDesc = 3; // 描述信息
  7865. optional uint64 OrderID = 4; // 委托单ID(预留)
  7866. optional double FreezeMargin = 5; // 冻结保证金
  7867. optional string ClientSerialNo = 6; // 客户端流水号
  7868. }
  7869. // 金点拍用户抽奖请求
  7870. message JdpUserLotteryReq {
  7871. optional MessageHead Header = 1;
  7872. optional uint32 UserID = 2; // 用户ID
  7873. optional string LotteryTime = 3; // 抽奖时间
  7874. optional string ClientSerialNo = 4; // 客户端流水号
  7875. }
  7876. // 金点拍用户抽奖响应
  7877. message JdpUserLotteryRsp {
  7878. optional MessageHead Header = 1; // 消息头
  7879. optional int32 RetCode = 2; // 返回码
  7880. optional string RetDesc = 3; // 描述信息
  7881. optional uint32 UserID = 4; // 用户ID
  7882. optional string ClientSerialNo = 5; // 客户端流水号
  7883. optional uint32 IsWinner = 6; // 是否中奖-0:否
  7884. optional uint32 PrizeRank = 7; // 奖品等级
  7885. }
  7886. // JD购买能量值请求
  7887. message JdTransferManaPointReq {
  7888. optional MessageHead Header = 1;
  7889. optional uint32 UserID = 2; // 用户ID
  7890. optional uint64 AccountID = 3; // 资金账户ID
  7891. optional uint32 OutGoodsID = 4; // 转出商品ID
  7892. optional uint32 ChangeValue = 5; // 转换JD值
  7893. optional string ClientSerialNo = 6; // 客户端流水号
  7894. optional string Remark = 7; // 备注
  7895. }
  7896. // JD购买能量值响应
  7897. message JdTransferManaPointRsp {
  7898. optional MessageHead Header = 1; // 消息头
  7899. optional int32 RetCode = 2; // 返回码
  7900. optional string RetDesc = 3; // 描述信息
  7901. optional uint32 UserID = 4; // 用户ID
  7902. optional string ClientSerialNo = 5; // 客户端流水号
  7903. }
  7904. // PD购买体力值请求
  7905. message PdTransferHealthPointReq {
  7906. optional MessageHead Header = 1;
  7907. optional uint32 UserID = 2; // 用户ID
  7908. optional uint64 AccountID = 3; // 资金账户ID
  7909. optional uint32 OutGoodsID = 4; // 转出商品ID
  7910. optional uint32 ChangeValue = 5; // 转换PD值
  7911. optional string ClientSerialNo = 6; // 客户端流水号
  7912. optional string Remark = 7; // 备注
  7913. }
  7914. // PD购买体力值响应
  7915. message PdTransferHealthPointRsp {
  7916. optional MessageHead Header = 1; // 消息头
  7917. optional int32 RetCode = 2; // 返回码
  7918. optional string RetDesc = 3; // 描述信息
  7919. optional uint32 UserID = 4; // 用户ID
  7920. optional string ClientSerialNo = 5; // 客户端流水号
  7921. }
  7922. // JD转换PD请求
  7923. message JdTransferPdReq {
  7924. optional MessageHead Header = 1;
  7925. optional uint32 UserID = 2; // 用户ID
  7926. optional uint64 AccountID = 3; // 资金账户ID
  7927. optional uint32 OutGoodsID = 4; // 转出商品ID
  7928. optional uint32 InGoodsID = 5; // 转入商品ID
  7929. optional uint32 ChangeValue = 6; // 转换JD值
  7930. optional string ClientSerialNo = 7; // 客户端流水号
  7931. optional string Remark = 8; // 备注
  7932. optional string Password = 9; // 资金密码
  7933. }
  7934. // JD转换PD响应
  7935. message JdTransferPdRsp {
  7936. optional MessageHead Header = 1; // 消息头
  7937. optional int32 RetCode = 2; // 返回码
  7938. optional string RetDesc = 3; // 描述信息
  7939. optional uint32 UserID = 4; // 用户ID
  7940. optional string ClientSerialNo = 5; // 客户端流水号
  7941. }
  7942. // 金点拍拍得者获取抽奖号码请求
  7943. message JdpPdzGetJoinNumReq {
  7944. optional MessageHead Header = 1;
  7945. optional uint64 AccountID = 2; // 账户ID
  7946. optional uint32 UserID = 3; // 用户ID
  7947. optional uint32 PdGoodsID = 4; // 拍点商品ID
  7948. optional string ClientSerialNo = 5; // 客户端流水号
  7949. }
  7950. // 金点拍拍得者获取抽奖号码响应
  7951. message JdpPdzGetJoinNumRsp {
  7952. optional MessageHead Header = 1; // 消息头
  7953. optional int32 RetCode = 2; // 返回码
  7954. optional string RetDesc = 3; // 描述信息
  7955. optional uint64 AccountID = 4; // 账户ID
  7956. optional uint32 UserID = 5; // 用户ID
  7957. optional uint32 PdGoodsID = 6; // 拍点商品ID
  7958. repeated string JoinNum = 7; // 抽奖号码
  7959. optional string ClientSerialNo = 8; // 客户端流水号
  7960. }
  7961. // PD转换PD请求
  7962. message PdTransferPdReq {
  7963. optional MessageHead Header = 1;
  7964. optional uint32 UserID = 2; // 转出方用户ID
  7965. optional uint64 AccountID = 3; // 转出方资金账户ID
  7966. optional uint32 OutGoodsID = 4; // 转出商品ID
  7967. optional uint32 UserID2 = 5; // 转入方用户ID
  7968. optional uint64 AccountID2 = 6; // 转入方资金账户ID
  7969. optional uint32 ChangeValue = 7; // 转换PD值
  7970. optional string ClientSerialNo = 8; // 客户端流水号
  7971. optional string Remark = 9; // 备注
  7972. optional string Password = 10; // 资金密码
  7973. }
  7974. // PD转换PD响应
  7975. message PdTransferPdRsp {
  7976. optional MessageHead Header = 1; // 消息头
  7977. optional int32 RetCode = 2; // 返回码
  7978. optional string RetDesc = 3; // 描述信息
  7979. optional uint32 UserID = 4; // 用户ID
  7980. optional string ClientSerialNo = 5; // 客户端流水号
  7981. }
  7982. // PD导入信息
  7983. message PdTransferIn {
  7984. optional uint32 UserID = 1; // 用户ID
  7985. optional uint64 AccountID = 2; // 资金账户ID
  7986. optional uint32 PdGoodsID = 3; // PD商品ID
  7987. optional uint32 ChangeValue = 4; // 导入PD值
  7988. optional string Mobile = 5; // 手机号码
  7989. optional string Remark = 6; // 备注
  7990. optional string UserName = 7; // 用户名称
  7991. }
  7992. // PD批量导入请求
  7993. message PdMultiTransferInReq {
  7994. optional MessageHead Header = 1;
  7995. repeated PdTransferIn PdTransferInInfos = 2; // 导入客户信息
  7996. optional string Remark = 3; // 备注
  7997. }
  7998. // PD批量导入响应
  7999. message PdMultiTransferInRsp {
  8000. optional MessageHead Header = 1; // 消息头
  8001. optional int32 RetCode = 2; // 返回码
  8002. optional string RetDesc = 3; // 描述信息
  8003. optional uint32 ProcQty = 4; // 处理数量
  8004. }
  8005. // 用户VIP升级请求
  8006. message UserVipUpgradeReq {
  8007. optional MessageHead Header = 1;
  8008. optional uint32 UserID = 2; // 用户ID
  8009. optional uint64 AccountID = 3; // 资金账户ID
  8010. optional uint32 PdGoodsID = 4; // PD商品ID
  8011. optional string ClientSerialNo = 5; // 客户端流水号
  8012. }
  8013. // 用户VIP升级响应
  8014. message UserVipUpgradeRsp {
  8015. optional MessageHead Header = 1; // 消息头
  8016. optional int32 RetCode = 2; // 返回码
  8017. optional string RetDesc = 3; // 描述信息
  8018. optional uint32 UserID = 4; // 用户ID
  8019. optional uint64 AccountID = 5; // 资金账户ID
  8020. optional uint32 PdGoodsID = 6; // PD商品ID
  8021. optional string ClientSerialNo = 7; // 客户端流水号
  8022. }
  8023. // 竞拍审核请求
  8024. message AuctionCheckExOrderReq {
  8025. optional MessageHead Header = 1;
  8026. optional string GoodsName = 2; // 拍品名称
  8027. optional uint64 ApplyID = 3; // 申请ID
  8028. optional uint64 WRUserID = 4; // 申请人用户ID
  8029. optional uint64 WRAccountID = 5; // 资金账号ID
  8030. optional uint32 MarketID = 6; // 市场ID
  8031. optional uint32 BuyOrSell = 7; // 方向
  8032. optional uint64 ApplyQty = 8; // 申请数量
  8033. optional double StartPrice = 9; // 起拍价
  8034. optional double FloorPrice = 10; // 底价
  8035. optional string StartTradeDate = 11; // 起拍交易日
  8036. optional string StartTime = 12; // 开始时间
  8037. optional string EndTime = 13; // 结束时间
  8038. optional double PriceStep = 14; // 价格幅度[降价式、竞价式]
  8039. optional uint32 PriceMode = 15; // 价格类型
  8040. optional double HighestPrice = 16; // 最高价
  8041. optional uint32 DecimalPlace = 17; // 报价小数位
  8042. optional uint32 FeeAlgorithm = 18; // 买方手续费收取方式
  8043. optional double ExchageChargeValue = 19; // 买方手续费设置值(交易所收)
  8044. optional double MemberChargeValue = 20; // 买方手续费设置值(会员收)
  8045. optional uint32 FeeAlgorithm2 = 21; // 卖方手续费收取方式
  8046. optional double ExchageChargeValue2 = 22; // 卖方手续费设置值(交易所收)
  8047. optional double MemberChargeValue2 = 23; // 卖方手续费设置值(会员收)
  8048. optional uint32 FeeAlgorithm3 = 24; // 流拍手续费收取方式
  8049. optional double ExchageChargeValue3 = 25; // 流拍卖方手续费设置值(交易所收)
  8050. optional double MemberChargeValue3 = 26; // 流拍卖方手续费设置值(会员收)
  8051. optional uint32 BuyMarginAlgorithm = 27; // 买方保证金方式
  8052. optional double BuyMarginValue = 28; // 买方保证金设置值
  8053. optional uint32 SellMarginAlgorithm = 29; // 卖方保证金方式
  8054. optional double SellMarginValue = 30; // 卖方保证金设置值
  8055. optional uint32 BuyFirstMarginAlgorithm = 31; // 买方出价保证金方式
  8056. optional double BuyFirstMarginValue = 32; // 买方出价保证金值
  8057. optional string ClientSerialNo = 33; // 客户端流水号
  8058. optional string Unit = 34; // 单位
  8059. optional string GoodsPicUrl = 35; // 商品介绍图片
  8060. optional string AuctionDesc = 36; // 拍品描述
  8061. optional string Appraisal = 37; // 鉴定书
  8062. optional uint32 ScoreGoodsID = 38; // 积分消费商品ID
  8063. optional double MarketPrice = 39; // 市场参考价
  8064. optional uint32 CategoryID = 40; // 分类ID
  8065. optional uint64 ShopID = 41; // 店铺ID
  8066. }
  8067. // 竞拍审核应答
  8068. message AuctionCheckExOrderRsp {
  8069. optional MessageHead Header = 1; // 消息头
  8070. optional int32 RetCode = 2; // 返回码
  8071. optional string RetDesc = 3; // 描述信息
  8072. optional uint64 ApplyID = 4; // 申请ID
  8073. optional uint64 GoodsID = 5; // 拍品ID
  8074. optional double FreezeMargin = 6; // 冻结保证金
  8075. optional string ClientSerialNo = 7; // 客户端流水号
  8076. }
  8077. // 批量调整信息
  8078. message BatchChange {
  8079. optional string Mobile = 1; // 手机号码
  8080. optional string UserName = 2; // 用户名称
  8081. optional uint32 UserID = 3; // 用户ID
  8082. optional uint32 UserRank = 4; // 用户变更等级,空或其他不调整
  8083. optional int32 MPValue = 5; // 变更能量值-正加负减,减少到0
  8084. optional int32 HPValue = 6; // 变更体力值-正加负减,减少到0
  8085. }
  8086. // 用户批量调整请求
  8087. message UserBatchChangeReq {
  8088. optional MessageHead Header = 1;
  8089. repeated BatchChange BatchChanges = 2; // 调整用户信息集合
  8090. optional uint32 CreatorID = 3; // 创建人
  8091. }
  8092. // 用户批量调整响应
  8093. message UserBatchChangeRsp {
  8094. optional MessageHead Header = 1; // 消息头
  8095. optional int32 RetCode = 2; // 返回码
  8096. optional string RetDesc = 3; // 描述信息
  8097. optional uint32 CreatorID = 4; // 创建人
  8098. }
  8099. // 外部JD转入请求
  8100. message ExtenalJdTransferInReq {
  8101. optional MessageHead Header = 1;
  8102. optional string Mobile = 2; // 手机号码
  8103. optional string JDCode = 3; // JD代码
  8104. optional uint32 JDValue = 4; // JD转入数量
  8105. optional string ClientSerialNo = 5; // 客户端流水号
  8106. }
  8107. // 外部JD转入响应
  8108. message ExtenalJdTransferInRsp {
  8109. optional MessageHead Header = 1; // 消息头
  8110. optional int32 RetCode = 2; // 返回码
  8111. optional string RetDesc = 3; // 描述信息
  8112. optional string ClientSerialNo = 4; // 客户端流水号
  8113. }
  8114. // 自动报价请求
  8115. message AutoQuoteReq {
  8116. optional MessageHead Header = 1;
  8117. optional uint32 QuoterID = 2; // 报价商ID
  8118. optional uint32 GoodsID = 3; // 商品ID
  8119. optional uint32 BuyOrSell = 4; // 买卖方向
  8120. optional uint64 Price = 5; // 价格
  8121. optional int64 TotalQty = 6; // 总量
  8122. optional int64 PerQty = 7; // 释放量
  8123. optional uint64 TryInterval = 8; // 失败重发间隔(分)
  8124. optional string ExpiredDate = 9; // 报价有效日期(yyyymmdd)
  8125. optional uint64 QuoteEffectiveSecond = 10; // 委托有效时间(秒)
  8126. optional uint64 LimitPrice = 11; // 最高买价/最低卖价
  8127. optional int32 PriceMove = 12; // 买点差/卖点差
  8128. }
  8129. // 自动报价请求回应
  8130. message AutoQuoteRsp {
  8131. optional MessageHead Header = 1; // 消息头
  8132. optional int32 RetCode = 2; // 返回码
  8133. optional string RetDesc = 3; // 描述信息
  8134. optional uint32 QuoterID = 4; // 报价商ID
  8135. optional uint32 GoodsID = 5; // 商品ID
  8136. optional uint32 BuyOrSell = 6; // 买卖方向
  8137. }
  8138. // 报价请求
  8139. message QuoteReq {
  8140. optional MessageHead Header = 1;
  8141. optional uint32 GoodsID = 2; // 商品代码
  8142. optional uint32 QuoterID = 3; // 报价商ID
  8143. optional uint64 Bid = 4; // 买价
  8144. optional int64 BidVolume = 5; // 买量
  8145. optional uint64 Ask = 6; // 卖价
  8146. optional int64 AskVolume = 7; // 卖量
  8147. optional string DateTime = 8; // 报价时间
  8148. optional uint64 VaildTime = 9; // 行情有效时间(秒)
  8149. optional uint32 QuoteMinValue = 10; // 报价随机量下限
  8150. optional uint32 QuoteMaxValue = 11; // 报价随机量上限
  8151. optional uint64 Last = 12; // 最新价
  8152. optional uint64 TopBid = 13; // 最高买价
  8153. optional uint64 BottomAsk = 14; // 最低卖价
  8154. optional int64 BidMove = 15; // 买点差
  8155. optional int64 AskMove = 16; // 卖点差
  8156. optional uint32 QuoteSource = 17; // 报价来源
  8157. optional uint64 QuoteID = 18; // 报价单ID
  8158. }
  8159. // 报价请求
  8160. message QuoteRsp {
  8161. optional MessageHead Header = 1; // 消息头
  8162. optional int32 RetCode = 2; // 返回码
  8163. optional string RetDesc = 3; // 描述信息
  8164. optional uint64 QuoteID = 4; // 报价单ID
  8165. optional int64 BidVolume = 5; // 买量
  8166. optional int64 AskVolume = 6; // 卖量
  8167. }
  8168. // 报价请求
  8169. message NewQuoteReq {
  8170. optional MessageHead Header = 1;
  8171. optional uint32 QuoterID = 2; // 报价商ID
  8172. optional uint32 GoodsID = 3; // 商品代码
  8173. optional uint32 BuyOrSell = 4; // 买卖方向
  8174. optional string DateTime = 5; // 报价时间
  8175. optional uint32 OpType = 6; // 操作类型(1报价,2
  8176. optional uint64 QuoteID = 7; // 报价单ID
  8177. optional uint64 Price = 8; // 价格
  8178. optional uint64 Qty = 9; // 数量
  8179. optional int32 Move = 10; // 点差
  8180. optional uint64 LimitPrice = 11; // 最高买价/最低卖价
  8181. optional uint64 QuoteEffectiveSecond = 12; // 行情有效时间(秒)
  8182. optional uint32 QuoteMinValue = 13; // 报价随机量下限
  8183. optional uint32 QuoteMaxValue = 14; // 报价随机量上限
  8184. optional uint32 QuoteSource = 15; // 报价来源
  8185. optional uint32 PriceType = 16; // 报价类型
  8186. optional uint32 QtyType = 17; // 报量类型
  8187. }
  8188. // 报价请求
  8189. message NewQuoteRsp {
  8190. optional MessageHead Header = 1; // 消息头
  8191. optional int32 RetCode = 2; // 返回码
  8192. optional string RetDesc = 3; // 描述信息
  8193. optional uint32 QuoterID = 4; // 报价商ID
  8194. optional uint32 GoodsID = 5; // 商品代码
  8195. optional uint32 BuyOrSell = 6; // 买卖方向
  8196. optional uint64 QuoteID = 7; // 报价单ID
  8197. }
  8198. // 账户斩仓请求
  8199. message CutAccountReq {
  8200. optional MessageHead Header = 1;
  8201. optional uint64 ApplyID = 2; // 申请ID
  8202. optional uint64 AccountID = 3; // 资金账号
  8203. }
  8204. // 账户斩仓应答
  8205. message CutAccountRsp {
  8206. optional MessageHead Header = 1; // 消息头
  8207. optional int32 RetCode = 2; // 返回码
  8208. optional string RetDesc = 3; // 描述信息
  8209. optional uint64 ApplyID = 4; // 申请ID
  8210. optional uint64 AccountID = 5; // 资金账号
  8211. }
  8212. // 强平查询请求
  8213. message ForceCloseQueryReq {
  8214. optional MessageHead Header = 1;
  8215. optional uint64 AccountID = 2; // 买方账户Id
  8216. optional uint32 GoodsID = 3; // 商品Id(所有权)
  8217. optional uint32 BuyOrSell = 4; // 买卖方向
  8218. optional double OrderPrice = 5; // 强平价格
  8219. optional string ClientSerialNo = 6; // 流水号
  8220. }
  8221. // 强平查询响应
  8222. message ForceCloseQueryRsp {
  8223. optional MessageHead Header = 1; // 消息头
  8224. optional int32 RetCode = 2; // 返回码
  8225. optional string RetDesc = 3; // 描述信息
  8226. optional uint64 AccountID = 4; // 买方账户Id
  8227. optional uint32 GoodsID = 5; // 商品Id(所有权)
  8228. optional uint32 BuyOrSell = 6; // 买卖方向
  8229. optional string ClientSerialNo = 7; // 流水号
  8230. optional double OrderPrice = 8; // 强平价格
  8231. optional uint64 OrderQty = 9; // 强平数量
  8232. }
  8233. // 招标审核请求
  8234. message TenderAuditReq {
  8235. optional MessageHead Header = 1;
  8236. optional uint64 ApplyID = 2; // 招标申请ID
  8237. optional uint32 AuditStatus = 3; // 审核结果(eTender_AuditStatus)
  8238. optional uint32 TenderUserID = 4; // 招标用户ID
  8239. optional string TenderNum = 5; // 招标编号
  8240. optional string TenderTital = 6; // 招标主题
  8241. optional string OpenDate = 7; // 开标日期
  8242. optional string TenderContact = 8; // 招标联系人
  8243. optional string TenderTelphone = 9; // 招标联系电话
  8244. optional string TenderGoods = 10; // 招标标的
  8245. optional uint32 TenderType = 11; // 招标类型
  8246. optional uint32 GradeType = 12; // 评分类型
  8247. optional string TenderFile = 13; // 招标文件
  8248. optional string GoodsCode = 14; // 商品代码
  8249. optional double TenderMargin = 15; // 招标方保证金
  8250. optional double BidMargin = 16; // 投标方保证金
  8251. optional uint64 TenderAccountID = 17; // 招标方资金账户ID
  8252. optional string ClientSerialNo = 18; // 客户端流水号
  8253. optional double TenderCharge = 19; // 招标手续费
  8254. }
  8255. // 招标审核应答
  8256. message TenderAuditRsp {
  8257. optional MessageHead Header = 1; // 消息头
  8258. optional int32 RetCode = 2; // 返回码
  8259. optional string RetDesc = 3; // 描述信息
  8260. optional uint64 ApplyID = 4; // 招标申请ID
  8261. optional uint32 AuditStatus = 5; // 审核结果(eTender_AuditStatus)
  8262. optional uint64 GoodsID = 6; // 招标信息ID
  8263. optional uint32 TenderStatus = 7; // 招标状态(eTenderStatus)
  8264. optional string ClientSerialNo = 8; // 客户端流水号
  8265. }
  8266. // 招标确认请求
  8267. message TenderConfirmReq {
  8268. optional MessageHead Header = 1;
  8269. optional uint64 GoodsID = 2; // 招标信息ID
  8270. optional uint32 ConfirmStatus = 3; // 确认状态(eTender_ConfirmStatus)
  8271. optional uint32 ConfirmID = 4; // 确认人
  8272. optional string ConfirmRemark = 5; // 确认备注
  8273. optional string ClientSerialNo = 6; // 客户端流水号
  8274. }
  8275. // 招标确认应答
  8276. message TenderConfirmRsp {
  8277. optional MessageHead Header = 1; // 消息头
  8278. optional int32 RetCode = 2; // 返回码
  8279. optional string RetDesc = 3; // 描述信息
  8280. optional uint64 GoodsID = 4; // 招标信息ID
  8281. optional uint32 TenderStatus = 5; // 招标状态(eTenderStatus)
  8282. optional string ClientSerialNo = 6; // 客户端流水号
  8283. }
  8284. // 招标终止请求
  8285. message TenderStopReq {
  8286. optional MessageHead Header = 1;
  8287. optional uint64 GoodsID = 2; // 招标信息ID
  8288. optional string ClientSerialNo = 3; // 客户端流水号
  8289. optional uint32 CloserID = 4; // 终止人
  8290. optional string CloseTime = 5; // 终止时间
  8291. optional string CloseRemark = 6; // 终止备注
  8292. }
  8293. // 招标终止响应
  8294. message TenderStopRsp {
  8295. optional MessageHead Header = 1; // 消息头
  8296. optional int32 RetCode = 2; // 返回码
  8297. optional string RetDesc = 3; // 描述信息
  8298. optional uint64 GoodsID = 4; // 招标信息ID
  8299. optional uint32 TenderStatus = 5; // 招标状态(eTenderStatus)
  8300. optional string ClientSerialNo = 6; // 客户端流水号
  8301. }
  8302. // 投标审核请求
  8303. message BidAuditReq {
  8304. optional MessageHead Header = 1;
  8305. optional uint64 GoodsID = 2; // 招标信息ID
  8306. optional uint32 AuditStatus = 3; // 审核结果(eTender_AuditStatus)
  8307. optional uint32 BidUserID = 4; // 投标用户ID
  8308. optional string Contact = 5; // 联系人
  8309. optional string Telphone = 6; // 联系电话
  8310. optional string Email = 7; // 电子邮件
  8311. optional string Address = 8; // 投标方地址
  8312. optional string BidFile = 9; // 投标文件
  8313. optional string Mobile = 10; // 手机
  8314. optional uint64 BidAccountID = 11; // 投标方资金账户ID
  8315. optional string ClientSerialNo = 12; // 客户端流水号
  8316. }
  8317. // 投标审核应答
  8318. message BidAuditRsp {
  8319. optional MessageHead Header = 1; // 消息头
  8320. optional int32 RetCode = 2; // 返回码
  8321. optional string RetDesc = 3; // 描述信息
  8322. optional uint64 GoodsID = 4; // 招标信息ID
  8323. optional uint32 AuditStatus = 5; // 审核结果(eTender_AuditStatus)
  8324. optional uint32 BidUserID = 6; // 投标用户ID
  8325. optional uint32 BidStatus = 7; // 投标状态(eBidStatus)
  8326. optional string ClientSerialNo = 8; // 客户端流水号
  8327. }
  8328. // 投标评分请求
  8329. message BidGradeReq {
  8330. optional MessageHead Header = 1;
  8331. optional uint64 GoodsID = 2; // 招标信息ID
  8332. optional uint32 BidUserID = 3; // 投标用户ID
  8333. optional uint32 BidGrade = 4; // 评分分值
  8334. optional string GradeRemark = 5; // 评分备注
  8335. }
  8336. // 投标评分应答
  8337. message BidGradeRsp {
  8338. optional MessageHead Header = 1; // 消息头
  8339. optional int32 RetCode = 2; // 返回码
  8340. optional string RetDesc = 3; // 描述信息
  8341. optional uint64 GoodsID = 4; // 招标信息ID
  8342. optional uint32 BidUserID = 5; // 投标用户ID
  8343. optional uint32 BidStatus = 6; // 投标状态(eBidStatus)
  8344. }
  8345. // 中标确认请求
  8346. message AcceptConfimReq {
  8347. optional MessageHead Header = 1;
  8348. optional uint64 GoodsID = 2; // 招标信息ID
  8349. optional uint32 WinnerUserID = 3; // 中标用户ID
  8350. optional uint32 CreatorUserID = 4; // 确认用户ID
  8351. optional uint32 IsPublicity = 5; // 是否公示(eIsPublicity)
  8352. optional string EndDate = 6; // 公示截止时间
  8353. optional double WinPrice = 7; // 中标价
  8354. optional string PerformanceRemark = 8; // 履约备注
  8355. optional string WinRemark = 9; // 中标备注
  8356. }
  8357. // 中标确认应答
  8358. message AcceptConfimRsp {
  8359. optional MessageHead Header = 1; // 消息头
  8360. optional int32 RetCode = 2; // 返回码
  8361. optional string RetDesc = 3; // 描述信息
  8362. optional uint64 WinID = 4; // 中标信息ID
  8363. optional uint64 GoodsID = 5; // 招标信息ID
  8364. optional uint32 WinnerUserID = 6; // 中标用户ID
  8365. optional uint32 TenderStatus = 7; // 招标状态(eTenderStatus)
  8366. optional uint32 BidStatus = 8; // 投标状态(eBidStatus)
  8367. }
  8368. // 中标审核请求
  8369. message AcceptAuditReq {
  8370. optional MessageHead Header = 1;
  8371. optional uint64 WinID = 2; // 中标信息ID
  8372. optional uint64 GoodsID = 3; // 招标信息ID
  8373. optional uint32 AuditStatus = 4; // 审核结果(eTender_AuditStatus)
  8374. optional uint32 AuditID = 5; // 审核人ID
  8375. optional string AuditRemark = 6; // 审核描述
  8376. }
  8377. // 中标审核应答
  8378. message AcceptAuditRsp {
  8379. optional MessageHead Header = 1; // 消息头
  8380. optional int32 RetCode = 2; // 返回码
  8381. optional string RetDesc = 3; // 描述信息
  8382. optional uint64 WinID = 4; // 中标信息ID
  8383. optional uint64 GoodsID = 5; // 招标信息ID
  8384. optional uint32 AuditStatus = 6; // 审核结果(eTender_AuditStatus)
  8385. optional uint32 TenderStatus = 7; // 招标状态(eTenderStatus)
  8386. optional uint32 WinnerUserID = 8; // 中标用户ID
  8387. optional uint32 WinnerBidStatus = 9; // 中标投标状态(eBidStatus)
  8388. optional uint32 OtherBidStatus = 10; // 其他投标状态(eBidStatus)
  8389. }
  8390. // 中标作废请求
  8391. message AcceptDisableReq {
  8392. optional MessageHead Header = 1;
  8393. optional uint64 WinID = 2; // 中标信息ID
  8394. optional uint64 GoodsID = 3; // 招标信息ID
  8395. optional uint32 AuditID = 4; // 审核人ID
  8396. optional string AuditRemark = 5; // 审核描述
  8397. }
  8398. // 中标作废应答
  8399. message AcceptDisableRsp {
  8400. optional MessageHead Header = 1; // 消息头
  8401. optional int32 RetCode = 2; // 返回码
  8402. optional string RetDesc = 3; // 描述信息
  8403. optional uint64 WinID = 4; // 中标信息ID
  8404. optional uint64 GoodsID = 5; // 招标信息ID
  8405. optional uint32 TenderStatus = 6; // 招标状态(eTenderStatus)
  8406. optional uint32 BidStatus = 7; // 投标状态(eBidStatus)
  8407. }
  8408. // 市场状态变更通知请求
  8409. message MarketStatusChangeReq {
  8410. optional MessageHead Header = 1;
  8411. optional uint32 Status = 2; // 状态
  8412. optional uint32 StepType = 3; // 阶段
  8413. required string TradeDay = 4; // 交易日
  8414. optional string NotifyTime = 5; // 通知发送时间
  8415. optional uint32 SectionId = 6; // 开休市计划里面的SectionId,若此字段有数值,返回应答要一起返回
  8416. }
  8417. // 市场状态变更通知应答
  8418. message MarketStatusChangeRsp {
  8419. optional MessageHead Header = 1; // 消息头
  8420. optional int32 RetCode = 2; // 返回码
  8421. optional string RetDesc = 3; // 描述信息
  8422. optional uint32 Status = 4; // 状态
  8423. optional uint32 StepType = 5; // 阶段
  8424. required string TradeDay = 6; // 交易日
  8425. optional string NotifyTime = 7; // 通知发送时间
  8426. optional uint32 SectionId = 8; // 请求报文中的SectionId字段数值,请求中有这个字段,应答要返回这个
  8427. }
  8428. // 市场状态给行情服务通知请求
  8429. message CSMarketStatusToQuoteReq {
  8430. optional MessageHead Header = 1;
  8431. required string TradeDate = 2; // 交易日
  8432. required uint32 Status = 3; // 状态,默认填0
  8433. optional string NotifyTime = 4; // 通知发送时间
  8434. }
  8435. // 市场状态给行情服务通知应答
  8436. message CSMarketStatusToQuoteRsp {
  8437. optional MessageHead Header = 1; // 消息头
  8438. optional int32 RetCode = 2; // 返回码
  8439. optional string RetDesc = 3; // 描述信息
  8440. required string TradeDate = 4; // 交易日
  8441. required uint32 Status = 5; // 状态,默认填0
  8442. optional string NotifyTime = 6; // 通知发送时间
  8443. }
  8444. // 控制服务市场结算结果通知
  8445. message CSMarketReckonResultNtf {
  8446. optional MessageHead Header = 1; // 消息头
  8447. optional string TradeDate = 2; // string 交易日
  8448. optional uint32 OperateType = 3; // uint32 结算操作类型;1:市场结算结果更新;2:开始清算
  8449. optional uint32 MarketReckonType = 4; // uint32 市场结算结果类型;1:结算成功;2:市场结算记录删除;3:手动操作(管理端信号)
  8450. }
  8451. // 控制服务市场清算结果通知
  8452. message CSSettleResultNtf {
  8453. optional MessageHead Header = 1; // 消息头
  8454. optional string TradeDate = 2; // string 交易日
  8455. optional uint32 Result = 3; // uint32 清算结果:1:开始清算;
  8456. }
  8457. // 下单请求
  8458. message ExternOrderReq {
  8459. optional MessageHead Header = 1;
  8460. optional uint32 OrderType = 2; // 订单类型
  8461. optional uint32 UserID = 3; // 唯一识别用户
  8462. optional uint32 MdOptionID = 4; // 行情代码ID
  8463. optional double Strike = 5; // 标的价格
  8464. optional double UdstartPrice = 6; // 行情数据中的价格字段
  8465. optional uint32 Buy = 7; // 买:1,卖:0
  8466. optional uint32 Open = 8; // 开:1
  8467. optional double OrderPrice = 9; // 价格
  8468. optional uint32 Qty = 10; // 数量
  8469. optional uint64 CustomBizID = 11; // 为前端预留,前端可以用来存储一些标志。比如前端系统的内部订单号
  8470. optional string CustomBizSubID = 12; // 为前端预留,前端可以用来存储一些标志。最大长度64
  8471. optional uint32 UserSelectExpDate = 13; // 用户选择的到期日期YYYYMMDD。默认填0
  8472. optional uint32 UserOdds = 14; // 默认为0
  8473. }
  8474. // 批量下单请求
  8475. message MultiExternOrdersReq {
  8476. optional MessageHead Header = 1;
  8477. optional uint32 ReqID = 2; // 请求ID,唯一,由请求端来维护
  8478. repeated ExternOrderReq Orders = 3; // 订单集合
  8479. }
  8480. // 下单应答
  8481. message ExOptionOrderRsp {
  8482. optional MessageHead Header = 1; // 消息头
  8483. optional int32 RetCode = 2; // 返回码
  8484. optional string RetDesc = 3; // 描述信息
  8485. optional uint32 OrderType = 4; // 订单类型
  8486. optional uint32 UserID = 5; // 唯一识别用户
  8487. optional uint32 MdOptionID = 6; // 行情代码ID
  8488. optional double Strike = 7; // 标的价格
  8489. optional uint32 Status = 8; // 行权状态
  8490. optional uint64 OrderID = 9; // 订单号,成功的订单才有订单号,失败的为0
  8491. optional uint64 CustomBizID = 10; // 为前端预留,前端可以用来存储一些标志。比如前端系统的内部订单号
  8492. optional string CustomBizSubID = 11; // 为前端预留,前端可以用来存储一些标志。最大长度64
  8493. }
  8494. // 批量下单应答
  8495. message MultiExOptionOrderRsp {
  8496. optional MessageHead Header = 1; // 消息头
  8497. optional int32 RetCode = 2; // 返回码
  8498. optional string RetDesc = 3; // 描述信息
  8499. optional uint32 ReqID = 4; // 请求ID,唯一,由请求端来维护
  8500. repeated ExOptionOrderRsp Orders = 5; // 订单集合
  8501. }
  8502. // 撤单请求
  8503. message ExOptionOrderCancelReq {
  8504. optional MessageHead Header = 1;
  8505. optional uint32 UserID = 2; // 唯一识别用户
  8506. optional uint32 MdOptionID = 3; // 行情代码ID
  8507. optional uint64 OrderID = 4; // 订单号,成功的订单才有订单号,失败的为0
  8508. optional uint64 CustombizID = 5; // 为前端预留,前端可以用来存储一些标志。比如前端系统的内部订单号
  8509. optional string CustombizsubID = 6; // 为前端预留,前端可以用来存储一些标志。最大长度64
  8510. }
  8511. // 批量撤单请求
  8512. message MultiExOptionOrderCancelReq {
  8513. optional MessageHead Header = 1;
  8514. optional uint32 ReqID = 2; // 请求ID,唯一,由请求端来维护
  8515. repeated ExOptionOrderCancelReq Orders = 3; // 订单集合
  8516. }
  8517. // 撤单应答
  8518. message ExOptionOrderCancelRsp {
  8519. optional MessageHead Header = 1; // 消息头
  8520. optional int32 RetCode = 2; // 返回码
  8521. optional string RetDesc = 3; // 描述信息
  8522. optional uint32 UserID = 4; // 唯一识别用户
  8523. optional uint64 OrderID = 5; // 订单号,成功的订单才有订单号,失败的为0
  8524. optional uint64 CustomBizID = 6; // 为前端预留,前端可以用来存储一些标志。比如前端系统的内部订单号
  8525. optional string CustomBizSubID = 7; // 为前端预留,前端可以用来存储一些标志。最大长度64
  8526. }
  8527. // 批量撤单应答
  8528. message MultiExOptionOrderCancelRsp {
  8529. optional MessageHead Header = 1; // 消息头
  8530. optional int32 RetCode = 2; // 返回码
  8531. optional string RetDesc = 3; // 描述信息
  8532. optional uint32 ReqID = 4; // 请求ID,唯一,由请求端来维护
  8533. repeated ExOptionOrderCancelRsp Orders = 5; // 订单集合
  8534. }
  8535. // 行权请求
  8536. message ExOptionExeciseReq {
  8537. optional MessageHead Header = 1;
  8538. optional double ExecLimitPrice = 2; // 指定的行权挂单价格
  8539. optional uint32 UserID = 3; // 唯一识别用户
  8540. optional uint64 OrderID = 4; // 订单号,成功的订单才有订单号,失败的为0
  8541. optional uint32 QtyExecise = 5; // 数量。支持部分数量行权。该值不得大于可行权数量(参考查询持仓接口中的字段。可行权数量=
  8542. optional uint64 CustomBizID = 6; // 为前端预留,前端可以用来存储一些标志。比如前端系统的内部订单号
  8543. optional string CustomBizSubID = 7; // 为前端预留,前端可以用来存储一些标志。最大长度64
  8544. }
  8545. // 批量行权请求
  8546. message MultiExOptionExeciseReq {
  8547. optional MessageHead Header = 1;
  8548. optional uint32 ReqID = 2; // 请求ID,唯一,由请求端来维护
  8549. repeated ExOptionExeciseReq Orders = 3; // 订单集合
  8550. }
  8551. // 行权应答
  8552. message ExOptionExeciseRsp {
  8553. optional MessageHead Header = 1; // 消息头
  8554. optional int32 RetCode = 2; // 返回码
  8555. optional string RetDesc = 3; // 描述信息
  8556. optional uint32 UserID = 4; // 唯一识别用户
  8557. optional uint32 MdOptionID = 5; // 行情代码ID
  8558. optional uint32 Status = 6; // 行权状态
  8559. optional uint64 OrderID = 7; // 订单号,成功的订单才有订单号,失败的为0
  8560. optional uint64 OmsOrderID = 8; // 该持仓对应的下单的订单号
  8561. optional uint64 CustomBizID = 9; // 为前端预留,前端可以用来存储一些标志。比如前端系统的内部订单号
  8562. optional string CustomBizSubID = 10; // 为前端预留,前端可以用来存储一些标志。最大长度64
  8563. optional double SettlePrice = 11; // 结算价格
  8564. optional double Pl = 12; // 浮动盈亏
  8565. }
  8566. // 批量行权应答
  8567. message MultiExOptionExeciseRsp {
  8568. optional MessageHead Header = 1; // 消息头
  8569. optional int32 RetCode = 2; // 返回码
  8570. optional string RetDesc = 3; // 描述信息
  8571. optional uint32 ReqID = 4; // 请求ID,唯一,由请求端来维护
  8572. repeated ExOptionExeciseRsp Orders = 5; // 订单集合
  8573. }
  8574. // 行权撤销请求
  8575. message ExOptionExeciseCancelReq {
  8576. optional MessageHead Header = 1;
  8577. optional uint32 UserID = 2; // 唯一识别用户
  8578. optional uint64 OrderID = 3; // 订单号,成功的订单才有订单号,失败的为0
  8579. optional uint64 CustomBizID = 4; // 为前端预留,前端可以用来存储一些标志。比如前端系统的内部订单号
  8580. optional string CustomBizSubID = 5; // 为前端预留,前端可以用来存储一些标志。最大长度64
  8581. }
  8582. // 批量行权撤销请求
  8583. message MultiExOptionExeciseCancelReq {
  8584. optional MessageHead Header = 1;
  8585. optional uint32 ReqID = 2; // 请求ID,唯一,由请求端来维护
  8586. repeated ExOptionExeciseCancelReq Orders = 3; // 订单集合
  8587. }
  8588. // 行权撤销应答
  8589. message ExeciseCancelRsp {
  8590. optional MessageHead Header = 1; // 消息头
  8591. optional int32 RetCode = 2; // 返回码
  8592. optional string RetDesc = 3; // 描述信息
  8593. optional uint32 UserID = 4; // 唯一识别用户
  8594. optional uint32 MdOptionID = 5; // 行情代码ID
  8595. optional uint32 Status = 6; // 行权状态
  8596. optional uint64 OrderID = 7; // 订单号,成功的订单才有订单号,失败的为0
  8597. optional uint64 OmsOrderID = 8; // 该持仓对应的下单的订单号
  8598. optional uint64 CustomBizID = 9; // 为前端预留,前端可以用来存储一些标志。比如前端系统的内部订单号
  8599. optional string CustomBizSubID = 10; // 为前端预留,前端可以用来存储一些标志。最大长度64
  8600. optional int32 ErrorCode = 11; // 错误编码,订单正常时为0
  8601. optional string RspInfo = 12; // 正常订单为空字符串。异常订单有提示信息
  8602. }
  8603. // 批量行权撤销应答
  8604. message MultiExeciseCancelRsp {
  8605. optional MessageHead Header = 1; // 消息头
  8606. optional int32 RetCode = 2; // 返回码
  8607. optional string RetDesc = 3; // 描述信息
  8608. optional uint32 ReqID = 4; // 请求ID,唯一,由请求端来维护
  8609. repeated ExeciseCancelRsp Orders = 5; // 订单集合
  8610. }
  8611. // 行权回调
  8612. message ExeciseNotify {
  8613. optional uint32 ReqID = 1; // 请求ID,唯一,由请求端来维护
  8614. optional uint32 UserID = 2; // 唯一识别用户
  8615. optional uint32 ExeciseTime = 3; // 时间,格式HHMMSSxxx精确到ms
  8616. optional uint32 ExeciseDate = 4; // 行权日期YYYYMMDD
  8617. optional uint64 OrderID = 5; // 订单号,成功的订单才有订单号,失败的为0
  8618. optional uint32 QtyExecise = 6; // 数量。支持部分数量行权。该值不得大于可行权数量(参考查询持仓接口中的字段。可行权数量=qty-qtyExecise)
  8619. optional double SettlePrice = 7; // 结算价格
  8620. optional double Pl = 8; // 浮动盈亏
  8621. optional uint32 Execise_status = 9; // 行权状态
  8622. optional uint64 CustomBizID = 10; // 为前端预留,前端可以用来存储一些标志。比如前端系统的内部订单号
  8623. optional string CustomBizSubID = 11; // 为前端预留,前端可以用来存储一些标志。最大长度64
  8624. optional uint32 ManualFlag = 12; // 手动行权结算标志。1:手动行权结算。0:自动行权结算。
  8625. }
  8626. // 批量行权回调
  8627. message MultiExeciseNtf {
  8628. optional MessageHead Header = 1; // 消息头
  8629. optional uint32 Timestamp = 2; // uint32 整数型(int)的时间(HHMMSSxxx)精确到毫秒,采用服务器机器
  8630. repeated ExeciseNotify Execises = 3; // ExeciseNotify 行权回调集合
  8631. }
  8632. // 成交回调
  8633. message TradeNotify {
  8634. optional uint32 UserID = 1; // 唯一识别用户
  8635. optional uint64 OrderID = 2; // 订单号,成功的订单才有订单号,失败的为0
  8636. optional uint32 MdOptionID = 3; // 行情代码ID
  8637. optional double Strike = 4; // 标的价格
  8638. optional uint32 Qty = 5; // 数量
  8639. optional uint32 QtyFilled = 6; // 成交数量(累计)
  8640. optional uint64 CustomBizID = 7; // 为前端预留,前端可以用来存储一些标志。比如前端系统的内部订单号
  8641. optional string CustomBizSubID = 8; // 为前端预留,前端可以用来存储一些标志。最大长度64byte
  8642. optional uint32 OrderDate = 9; // 下单日期,格式YYYYMMDD
  8643. optional uint32 ExpDate = 10; // 到期日期,格式YYYYMMDD
  8644. optional uint32 OrderType = 11; // 订单类型
  8645. optional double Multiplier = 12; // 合约乘数
  8646. optional double Price_filled = 13; // 成交价格
  8647. optional double Turnover = 14; // 金额
  8648. optional double UpperBoundary = 15; //
  8649. optional double LowerBoundary = 16; //
  8650. optional string ExecStartTime = 17; // 行权开始时间
  8651. optional string ExecEndTime = 18; // 行权结束时间
  8652. }
  8653. // 批量成交回调
  8654. message MultiTradeNtf {
  8655. optional MessageHead Header = 1; // 消息头
  8656. optional uint32 Timestamp = 2; // uint32 整数型(int)的时间(HHMMSSxxx)精确到毫秒,采用服务器机器
  8657. repeated TradeNotify Trades = 3; // TradeNotify 成交回调集合
  8658. }
  8659. // 撤单回调
  8660. message CancelNotify {
  8661. optional uint32 UserID = 1; // 唯一识别用户
  8662. optional uint64 OrderID = 2; // 订单号,成功的订单才有订单号,失败的为0
  8663. optional uint32 MdOptionID = 3; // 行情代码ID
  8664. optional uint64 CustomBizID = 4; // 为前端预留,前端可以用来存储一些标志。比如前端系统的内部订单号
  8665. optional string CustomBizSubID = 5; // 为前端预留,前端可以用来存储一些标志。最大长度64
  8666. optional uint32 OrderType = 6; // 订单类型
  8667. }
  8668. // 批量撤单回调
  8669. message MultiCancelNtf {
  8670. optional MessageHead Header = 1; // 消息头
  8671. optional uint32 Timestamp = 2; // uint32 整数型(int)的时间(HHMMSSxxx)精确到毫秒,采用服务器机器
  8672. repeated CancelNotify Cancels = 3; // CancelNotify 撤单回调集合
  8673. }
  8674. // 行权撤单回调
  8675. message ExeciseCancelNotify {
  8676. optional uint32 UserID = 1; // 唯一识别用户
  8677. optional uint64 OrderID = 2; // 订单号,成功的订单才有订单号,失败的为0
  8678. optional uint64 CustomBizID = 3; // 为前端预留,前端可以用来存储一些标志。比如前端系统的内部订单号
  8679. optional string CustomBizSubID = 4; // 为前端预留,前端可以用来存储一些标志。最大长度64byte
  8680. optional double ExecLimitPrice = 5; // 指定的行权挂单价格
  8681. }
  8682. // 批量行权撤单回调
  8683. message MultiExeciseCancelNtf {
  8684. optional MessageHead Header = 1; // 消息头
  8685. optional uint32 Timestamp = 2; // uint32 整数型(int)的时间(HHMMSSxxx)精确到毫秒,采用服务器机器
  8686. repeated ExeciseCancelNotify ExeciseCancels = 3; // ExeciseCancelNotify 撤单回调集合
  8687. }
  8688. // 查询委托请求
  8689. message QryExOptionOrderReq {
  8690. optional MessageHead Header = 1;
  8691. optional uint32 ReqID = 2; // 请求ID,唯一,由请求端来维护
  8692. optional uint32 Size = 3; // 返回长度
  8693. optional uint64 OrderID = 4; // 委托单ID
  8694. }
  8695. // 委托信息
  8696. message OrderInfo {
  8697. optional uint32 UserID = 1; // 唯一识别用户
  8698. optional uint64 OrderID = 2; // 该持仓对应的下单的订单号
  8699. optional uint32 MdOptionID = 3; // 行情代码ID
  8700. optional double OrderPrice = 4; // 委托价
  8701. optional uint32 Buy = 5; // 买卖方向
  8702. optional uint32 Open = 6; // 建/平
  8703. optional uint32 Qty = 7; // 委托数量
  8704. optional uint32 QtyFilled = 8; // 成交数量
  8705. optional uint64 CustomBizID = 9; // 前端预留字段
  8706. optional string CustomSubBizID = 10; // 前端预留字段
  8707. optional double Strike = 11; // 标的价格
  8708. optional double UdStartPrice = 12; //
  8709. optional string ExpDate = 13; //
  8710. optional uint32 Status = 14; //
  8711. optional uint32 OrderType = 15; // 委托类型
  8712. optional string OrderTime = 16; // 委托时间
  8713. optional double TurnOver = 17; //
  8714. optional uint64 RecvID = 18; //
  8715. }
  8716. // 查询委托返回
  8717. message QryExOptionOrderRsp {
  8718. optional MessageHead Header = 1; // 消息头
  8719. optional int32 RetCode = 2; // 返回码
  8720. optional string RetDesc = 3; // 描述信息
  8721. optional uint32 ReqID = 4; // 请求ID,唯一,由请求端来维护
  8722. repeated OrderInfo OrderDetail = 5; // 委托明细
  8723. }
  8724. // 查询行权委托请求
  8725. message QryExOptionExeciseOrderReq {
  8726. optional MessageHead Header = 1;
  8727. optional uint32 ReqID = 2; // 请求ID,唯一,由请求端来维护
  8728. optional uint32 Size = 3; // 返回长度
  8729. optional uint64 ExeciseOrderID = 4; // 行权委托单ID
  8730. }
  8731. // 行权委托
  8732. message ExeciseOrderInfo {
  8733. optional uint32 UserID = 1; // 唯一识别用户
  8734. optional uint64 OmsOrderID = 2; // 该持仓对应的下单的订单号
  8735. optional double SettlePrice = 3; //
  8736. optional uint32 WithdrawFlag = 4; //
  8737. optional double ExecLimitPrice = 5; //
  8738. optional uint32 ExecStatusID = 6; //
  8739. optional uint64 ExecOrderID = 7; //
  8740. optional uint32 ExecType = 8; //
  8741. optional string ExecOrderTime = 9; //
  8742. optional uint64 RecvID = 10; // 通信接收的id
  8743. optional uint64 CustomBizID = 11; // 为前端预留,前端可以用来存储一些标志。比如前端系统的内部订单号
  8744. optional string CustomBizSubID = 12; //
  8745. optional uint32 ManualFlag = 13; //
  8746. optional double PL = 14; //
  8747. }
  8748. // 查询行权委托返回
  8749. message QryExOptionExeciseOrderRsp {
  8750. optional MessageHead Header = 1; // 消息头
  8751. optional int32 RetCode = 2; // 返回码
  8752. optional string RetDesc = 3; // 描述信息
  8753. optional uint32 ReqID = 4; // 请求ID,唯一,由请求端来维护
  8754. repeated ExeciseOrderInfo ExeciseOrderDetail = 5; // 行权委托明细
  8755. }
  8756. // 持仓信息
  8757. message HolderInfo {
  8758. optional uint32 UserID = 1; // 唯一识别用户
  8759. optional uint32 MdOptionID = 2; // 行情代码ID
  8760. optional double OrderPrice = 3; // 委托价
  8761. optional uint32 Qty = 4; // 委托数量
  8762. optional uint32 QtyExecise = 5; // 行权数量
  8763. optional uint64 CustomBizID = 6; // 前端预留字段
  8764. optional string CustomSubBizID = 7; // 前端预留字段
  8765. optional uint32 ReqID = 8; // 请求ID
  8766. optional double Strike = 9; // 标的价格
  8767. optional uint32 OptionID = 10; //
  8768. optional uint64 OrderID = 11; //
  8769. optional uint32 Buy = 12; //
  8770. optional double FilledPrice = 13; // 成交价格
  8771. optional string OrderTime = 14; // 委托时间
  8772. optional string OrderDate = 15; // 委托日期
  8773. optional string ExpDate = 16; //
  8774. optional string ExpTime = 17; //
  8775. optional double PL = 18; //
  8776. optional uint32 UserOdds = 19; //
  8777. optional double TurnOver = 20; //
  8778. optional string InstrumentCode = 21; //
  8779. }
  8780. // 查询持仓请求
  8781. message QryExOptionHolderReq {
  8782. optional MessageHead Header = 1;
  8783. optional uint32 ReqID = 2; // 请求ID,唯一,由请求端来维护
  8784. optional uint32 Size = 3; // 返回长度
  8785. optional uint32 UserID = 4; // 唯一识别用户
  8786. optional uint64 OrderID = 5; // 委托单ID
  8787. }
  8788. // 查询持仓返回
  8789. message QryExOptionHolderRsp {
  8790. optional MessageHead Header = 1; // 消息头
  8791. optional int32 RetCode = 2; // 返回码
  8792. optional string RetDesc = 3; // 描述信息
  8793. optional uint32 ReqID = 4; // 请求ID,唯一,由请求端来维护
  8794. optional uint32 UserID = 5; // 唯一识别用户
  8795. repeated HolderInfo HolderDetail = 6; // 持仓明细
  8796. }
  8797. // 查询行权结果请求
  8798. message QryExOptionExeciseReq {
  8799. optional MessageHead Header = 1;
  8800. optional uint32 ReqID = 2; // 请求ID,唯一,由请求端来维护
  8801. optional uint32 UserID = 3; // 用户ID
  8802. optional string ExeciseDataOne = 4; // 行权日期
  8803. optional string ExeciseDataTwo = 5; // 行权日期
  8804. }
  8805. // 行权结果
  8806. message ExeciseInfo {
  8807. optional uint32 ReqID = 1; // 请求ID
  8808. optional uint32 UserID = 2; // 唯一识别用户
  8809. optional string ExeciseTime = 3; // 行权时间
  8810. optional string ExeciseDate = 4; // 行权日期
  8811. optional uint64 ExeciseOrderID = 5; //
  8812. optional uint64 OrderID = 6; //
  8813. optional uint32 QtyExecise = 7; // 行权数量
  8814. optional double SettlePrice = 8; // 结算价格
  8815. optional double PL = 9; //
  8816. optional uint32 ExeciseStatus = 10; //
  8817. optional uint64 CustomBizID = 11; // 前端预留字段
  8818. optional string CustomSubBizID = 12; // 前端预留字段
  8819. optional uint32 ManualFlag = 13; //
  8820. }
  8821. // 查询行权结果请求
  8822. message QryExOptionExeciseRsp {
  8823. optional MessageHead Header = 1; // 消息头
  8824. optional int32 RetCode = 2; // 返回码
  8825. optional string RetDesc = 3; // 描述信息
  8826. optional uint32 ReqID = 4; // 请求ID,唯一,由请求端来维护
  8827. optional uint32 UserID = 5; // 用户ID
  8828. repeated ExeciseInfo ExeciseDetail = 6; // 行权明细
  8829. }
  8830. // 查询委托扩展请求
  8831. message QryExOptionOrderExReq {
  8832. optional MessageHead Header = 1;
  8833. optional uint32 ReqID = 2; // 请求ID,唯一,由请求端来维护
  8834. optional uint64 CustomBizID = 3; // 自定义委托单ID
  8835. }
  8836. // 查询委托扩展返回
  8837. message QryExOptionOrderExRsp {
  8838. optional MessageHead Header = 1; // 消息头
  8839. optional int32 RetCode = 2; // 返回码
  8840. optional string RetDesc = 3; // 描述信息
  8841. optional uint32 ReqID = 4; // 请求ID,唯一,由请求端来维护
  8842. optional uint64 CustomBizID = 5; // 自定义委托单ID
  8843. repeated OrderInfo OrderDetail = 6; // 委托明细
  8844. }
  8845. // 查询行权委托扩展请求
  8846. message QryExOptionExeciseOrderExReq {
  8847. optional MessageHead Header = 1;
  8848. optional uint32 ReqID = 2; // 请求ID,唯一,由请求端来维护
  8849. optional uint64 CustomBizID = 3; // 自定义行权委托单ID
  8850. }
  8851. // 查询行权委托扩展返回
  8852. message QryExOptionExeciseOrderExRsp {
  8853. optional MessageHead Header = 1; // 消息头
  8854. optional int32 RetCode = 2; // 返回码
  8855. optional string RetDesc = 3; // 描述信息
  8856. optional uint32 ReqID = 4; // 请求ID,唯一,由请求端来维护
  8857. optional uint64 CustomBizID = 5; // 自定义行权委托单ID
  8858. repeated ExeciseOrderInfo ExeciseOrderDetail = 6; // 行权委托明细
  8859. }
  8860. // 单向建仓请求
  8861. message OptionOneWayOpenReq {
  8862. optional MessageHead Header = 1;
  8863. optional uint64 AccountID = 2; // 资金账户
  8864. optional uint64 TargetGoodsID = 3; // 标的物商品ID
  8865. optional uint32 BuyOrSell = 4; // 方向:买0,卖1
  8866. optional uint32 OptionType = 5; // 期权类型1:认购(看涨)2:认沽(看跌)
  8867. optional uint32 ExerciseType = 6; // 行权类型1:欧式期权2:美式期权型[场外期(单向)]
  8868. optional uint32 ExpireType = 7; // 行权日类型-1:滚动行权
  8869. optional uint32 ExpireCycle = 8; // 行权周期(天)1:滚动行权时填写型[场外期(单向)]
  8870. optional string ExpireDate = 9; // 行权日
  8871. optional double ExercisePrice = 10; // 行权价
  8872. optional double Premium = 11; // 权利金
  8873. optional uint32 Qty = 12; // 数量
  8874. optional uint32 MarketID = 13; // 市场ID
  8875. }
  8876. // 单向建仓应答
  8877. message OptionOneWayOpenRsp {
  8878. optional MessageHead Header = 1; // 消息头
  8879. optional int32 RetCode = 2; // 返回码
  8880. optional string RetDesc = 3; // 描述信息
  8881. optional uint64 TradeID = 4; // 成交单号
  8882. optional uint64 AccountID = 5; // 资金账户
  8883. optional uint64 TargetGoodsID = 6; // 标的物商品ID
  8884. }
  8885. // 场外期权单向行权请求
  8886. message OptionOneWayExeciseReq {
  8887. optional MessageHead Header = 1;
  8888. optional uint64 AccountID = 2; // 资金账户
  8889. optional uint64 TradeID = 3; // 持仓单成交单号
  8890. optional uint32 BuyOrSell = 4; // 方向:买0,卖1
  8891. optional double ExercisePrice = 5; // 行权价
  8892. optional uint32 MarketID = 6; // 市场ID
  8893. optional uint32 ExeciseQty = 7; // 数量,不支持部分数量行权。
  8894. }
  8895. // 场外期权单向行权应答
  8896. message OptionOneWayExeciseRsp {
  8897. optional MessageHead Header = 1; // 消息头
  8898. optional int32 RetCode = 2; // 返回码
  8899. optional string RetDesc = 3; // 描述信息
  8900. optional uint64 TradeID = 4; // 成交单号
  8901. optional uint64 AccountID = 5; // 资金账户
  8902. optional uint64 TargetGoodsID = 6; // 标的物商品ID
  8903. }
  8904. // 场外期权单向对冲请求
  8905. message OptionOneWayHedgeReq {
  8906. optional MessageHead Header = 1;
  8907. optional uint64 AccountID = 2; // 资金账户
  8908. optional uint64 TradeID = 3; // 持仓单成交单号
  8909. optional uint64 HedgeTradeID = 4; // 外部成交单号
  8910. optional uint64 TargetGoodsID = 5; // 标的物商品ID
  8911. optional uint32 BuyOrSell = 6; // 期权成交单方向:买0,卖1
  8912. optional uint32 HedgeBuyOrSell = 7; // 外部对冲成交单方向
  8913. optional uint32 MarketID = 8; // 市场ID
  8914. optional uint32 HedgeQty = 9; // 对冲数量
  8915. }
  8916. // 场外期权单向对冲应答
  8917. message OptionOneWayHedgeRsp {
  8918. optional MessageHead Header = 1; // 消息头
  8919. optional int32 RetCode = 2; // 返回码
  8920. optional string RetDesc = 3; // 描述信息
  8921. optional uint64 AccountID = 4; // 资金账户
  8922. optional uint64 TradeID = 5; // 持仓单成交单号
  8923. }
  8924. // 仓单录入服务公共协议结构
  8925. message WRInputCommon {
  8926. optional uint32 UserID = 1; // 用户ID
  8927. optional uint64 RelatedOrderID = 2; // 关联ID
  8928. optional uint32 BusinessID = 3; // 业务ID
  8929. optional uint64 TradeID = 4; // 成交ID
  8930. optional uint64 AccountID = 5; // 账号ID
  8931. }
  8932. // 合同生效请求
  8933. message ContractForceReq {
  8934. optional MessageHead Header = 1;
  8935. optional WRInputCommon Common = 2; //
  8936. optional uint64 ContractID = 3; // 关联合同ID
  8937. }
  8938. // 合同生效响应
  8939. message ContractForceRsp {
  8940. optional MessageHead Header = 1; // 消息头
  8941. optional int32 RetCode = 2; // 返回码
  8942. optional string RetDesc = 3; // 描述信息
  8943. optional WRInputCommon Common = 4; //
  8944. optional uint64 ContractID = 5; // 关联合同ID
  8945. }
  8946. // 上架审核通过请求
  8947. message SpotQuoteStockAuditReq {
  8948. optional MessageHead Header = 1;
  8949. optional uint64 QuoteApplyID = 2; // 报价申请ID
  8950. optional uint32 MarketID = 3; // 市场ID
  8951. optional double AnnualReturn = 4; // 年化收益率
  8952. optional uint32 QuoteDays = 5; // 认购期限(天)
  8953. optional uint32 ListingDays = 6; // 挂牌期限(天)
  8954. optional uint32 FCUserID = 7; // 基金公司用户ID
  8955. }
  8956. // 上架审核通过应答
  8957. message SpotQuoteStockAuditRsp {
  8958. optional MessageHead Header = 1; // 消息头
  8959. optional int32 RetCode = 2; // 返回码
  8960. optional string RetDesc = 3; // 描述信息
  8961. optional uint64 DeliveryGoodsID = 4; // 交割商品ID
  8962. }
  8963. // 上架销售请求
  8964. message SpotQuoteStockSaleReq {
  8965. optional MessageHead Header = 1;
  8966. optional uint64 QuoteApplyID = 2; // 报价申请ID
  8967. optional uint64 DeliveryGoodsID = 3; // 交割商品ID
  8968. optional uint32 MarketID = 4; // 市场ID
  8969. }
  8970. // 上架销售应答
  8971. message SpotQuoteStockSaleRsp {
  8972. optional MessageHead Header = 1; // 消息头
  8973. optional int32 RetCode = 2; // 返回码
  8974. optional string RetDesc = 3; // 描述信息
  8975. optional uint64 DeliveryGoodsID = 4; // 交割商品ID
  8976. }
  8977. // 修改申请请求
  8978. message SpotQuoteUpdateApplyReq {
  8979. optional MessageHead Header = 1;
  8980. optional uint64 QuoteApplyID = 2; // 报价申请ID
  8981. optional uint64 DeliveryGoodsID = 3; // 交割商品ID
  8982. optional uint32 MarketID = 4; // 市场ID
  8983. }
  8984. // 修改申请应答
  8985. message SpotQuoteUpdateApplyRsp {
  8986. optional MessageHead Header = 1; // 消息头
  8987. optional int32 RetCode = 2; // 返回码
  8988. optional string RetDesc = 3; // 描述信息
  8989. optional uint64 DeliveryGoodsID = 4; // 交割商品ID
  8990. }
  8991. // 撤销修改申请请求
  8992. message SpotQuoteCancelUpdateReq {
  8993. optional MessageHead Header = 1;
  8994. optional uint64 QuoteApplyID = 2; // 报价申请ID
  8995. optional uint64 DeliveryGoodsID = 3; // 交割商品ID
  8996. optional uint32 MarketID = 4; // 市场ID
  8997. }
  8998. // 撤销修改申请应答
  8999. message SpotQuoteCancelUpdateRsp {
  9000. optional MessageHead Header = 1; // 消息头
  9001. optional int32 RetCode = 2; // 返回码
  9002. optional string RetDesc = 3; // 描述信息
  9003. optional uint64 DeliveryGoodsID = 4; // 交割商品ID
  9004. }
  9005. // 修改审核通过请求
  9006. message SpotQuoteUpdateAuditReq {
  9007. optional MessageHead Header = 1;
  9008. optional uint64 QuoteApplyID = 2; // 报价申请ID
  9009. optional uint32 AuditStatus = 3; // 审核状态
  9010. optional uint64 DeliveryGoodsID = 4; // 交割商品ID
  9011. optional double AnnualReturn = 5; // 年化收益率
  9012. optional uint32 MarketID = 6; // 市场ID
  9013. optional uint32 QuoteDays = 7; // 认购期限(天)
  9014. optional uint32 ListingDays = 8; // 挂牌期限(天)
  9015. optional uint32 FCUserID = 9; // 基金公司用户ID
  9016. }
  9017. // 修改审核通过应答
  9018. message SpotQuoteUpdateAuditRsp {
  9019. optional MessageHead Header = 1; // 消息头
  9020. optional int32 RetCode = 2; // 返回码
  9021. optional string RetDesc = 3; // 描述信息
  9022. optional uint64 DeliveryGoodsID = 4; // 交割商品ID
  9023. }
  9024. // 购买请求
  9025. message SpotQuotePurchaseReq {
  9026. optional MessageHead Header = 1;
  9027. optional uint64 DeliveryGoodsID = 2; // 交割商品ID
  9028. optional uint64 AccountID = 3; // 资金账号ID
  9029. optional uint32 OrderSrc = 4; // 委托来源
  9030. optional string Clientserialno = 5; // 客户端流水号
  9031. optional string clientordertime = 6; // 客户端时间
  9032. optional uint32 clienttype = 7; // 客户端类型
  9033. optional uint32 MarketID = 8; // 市场ID
  9034. }
  9035. // 购买应答
  9036. message SpotQuotePurchaseRsp {
  9037. optional MessageHead Header = 1; // 消息头
  9038. optional int32 RetCode = 2; // 返回码
  9039. optional string RetDesc = 3; // 描述信息
  9040. optional uint64 DeliveryGoodsID = 4; // 交割商品ID
  9041. }
  9042. // 下架请求
  9043. message SpotQuoteStockOffReq {
  9044. optional MessageHead Header = 1;
  9045. optional uint64 DeliveryGoodsID = 2; // 交割商品ID
  9046. optional uint32 MarketID = 3; // 市场ID
  9047. }
  9048. // 下架应答
  9049. message SpotQuoteStockOffRsp {
  9050. optional MessageHead Header = 1; // 消息头
  9051. optional int32 RetCode = 2; // 返回码
  9052. optional string RetDesc = 3; // 描述信息
  9053. optional uint64 DeliveryGoodsID = 4; // 交割商品ID
  9054. }
  9055. // 商品审核请求
  9056. message SpotShopGoodsAuditReq {
  9057. optional MessageHead Header = 1;
  9058. optional uint64 GoodsApplyID = 2; // 申请ID(SEQ_WHZG2_GOODSAPPLY)
  9059. optional uint32 ApplyType = 3; // 申请类型-1:商品上架
  9060. optional uint32 MinDays = 4; // 限售期限(天)
  9061. optional uint32 ProfitDays = 5; // 收益周期(天)
  9062. optional double ProfitRate = 6; // 每周期收益率
  9063. optional uint32 MaxTimes = 7; // 有效期(最长计息次数)
  9064. optional uint32 BuyerUserID = 8; // 回购商
  9065. }
  9066. // 商品审核应答
  9067. message SpotShopGoodsAuditRsp {
  9068. optional MessageHead Header = 1; // 消息头
  9069. optional int32 RetCode = 2; // 返回码
  9070. optional string RetDesc = 3; // 描述信息
  9071. optional uint64 GoodsID = 4; // 商品ID
  9072. }
  9073. // 商品购买请求
  9074. message SpotShopPurchaseReq {
  9075. optional MessageHead Header = 1;
  9076. optional uint64 GoodsID = 2; // 商品ID
  9077. optional double OrderPrice = 3; // 委托价格
  9078. optional uint32 OrderQty = 4; // 委托数量
  9079. optional uint64 AccountID = 5; // 资金账号ID
  9080. optional uint32 OrderSrc = 6; // 委托来源
  9081. optional string Clientserialno = 7; // 客户端流水号
  9082. optional string clientordertime = 8; // 客户端时间
  9083. optional uint32 clienttype = 9; // 客户端类型
  9084. optional uint32 MarketID = 10; // 市场ID
  9085. }
  9086. // 商品购买应答
  9087. message SpotShopPurchaseRsp {
  9088. optional MessageHead Header = 1; // 消息头
  9089. optional int32 RetCode = 2; // 返回码
  9090. optional string RetDesc = 3; // 描述信息
  9091. optional uint64 GoodsID = 4; // 商品ID
  9092. optional string Clientserialno = 5; // 客户端流水号
  9093. }
  9094. // 商品回购请求
  9095. message SpotShopBuyBackReq {
  9096. optional MessageHead Header = 1;
  9097. optional uint64 AccountID = 2; // 资金账号ID
  9098. optional uint64 GoodsID = 3; // 商品ID
  9099. optional string GoodsTradeDate = 4; // 商品成交交易日
  9100. optional uint64 GoodsTradePriceInt = 5; // 商品成交价格(整型)
  9101. optional uint32 Qty = 6; // 回购数量
  9102. optional uint32 OrderSrc = 7; // 委托来源
  9103. optional string Clientserialno = 8; // 客户端流水号
  9104. optional string clientordertime = 9; // 客户端时间
  9105. optional uint32 clienttype = 10; // 客户端类型
  9106. optional uint32 MarketID = 11; // 市场ID
  9107. }
  9108. // 商品回购应答
  9109. message SpotShopBuyBackRsp {
  9110. optional MessageHead Header = 1; // 消息头
  9111. optional int32 RetCode = 2; // 返回码
  9112. optional string RetDesc = 3; // 描述信息
  9113. optional uint64 GoodsID = 4; // 商品ID
  9114. optional string Clientserialno = 5; // 客户端流水号
  9115. }
  9116. // 提货申请请求
  9117. message SpotShopTakeGoodsReq {
  9118. optional MessageHead Header = 1;
  9119. optional uint64 AccountID = 2; // 资金账号ID
  9120. optional uint64 GoodsID = 3; // 商品ID
  9121. optional string GoodsTradeDate = 4; // 商品成交交易日
  9122. optional uint64 TradePriceInt = 5; // 成交价格(整型)
  9123. optional double GoodsTradePrice = 6; // 商品成交价格
  9124. optional uint32 Qty = 7; // 提货数量
  9125. optional string ReciverName = 8; // 提货人姓名
  9126. optional string PhoneNum = 9; // 提货人联系方式
  9127. optional string Address = 10; // 提货人详细地址
  9128. optional uint32 TakeMode = 11; // 提货方式-2:自提
  9129. optional string TakeRemark = 12; // 提货备注
  9130. optional string Clientserialno = 13; // 客户端流水号
  9131. }
  9132. // 提货申请应答
  9133. message SpotShopTakeGoodsRsp {
  9134. optional MessageHead Header = 1; // 消息头
  9135. optional int32 RetCode = 2; // 返回码
  9136. optional string RetDesc = 3; // 描述信息
  9137. optional uint64 GoodsID = 4; // 商品ID
  9138. optional string Clientserialno = 5; // 客户端流水号
  9139. }
  9140. // 撤销提货申请请求
  9141. message SpotShopCancelTakeGoodsReq {
  9142. optional MessageHead Header = 1;
  9143. optional uint64 TakeGoodsApplyID = 2; // 提货申请ID
  9144. optional uint64 AccountID = 3; // 资金账号ID
  9145. optional uint64 GoodsID = 4; // 商品ID
  9146. optional string Clientserialno = 5; // 客户端流水号
  9147. }
  9148. // 撤销提货申请应答
  9149. message SpotShopCancelTakeGoodsRsp {
  9150. optional MessageHead Header = 1; // 消息头
  9151. optional int32 RetCode = 2; // 返回码
  9152. optional string RetDesc = 3; // 描述信息
  9153. optional uint64 TakeGoodsApplyID = 4; // 提货申请ID
  9154. optional string Clientserialno = 5; // 客户端流水号
  9155. }
  9156. // 提货审核请求
  9157. message SpotShopTakeGoodsAuditReq {
  9158. optional MessageHead Header = 1;
  9159. optional uint64 TakeGoodsApplyID = 2; // 提货申请ID
  9160. optional uint64 AccountID = 3; // 资金账号ID
  9161. optional uint64 GoodsID = 4; // 商品ID
  9162. optional string Clientserialno = 5; // 客户端流水号
  9163. optional uint32 AuditStatus = 6; // 审核状态(2:审核通过3:审核拒绝)
  9164. optional uint32 Auditer = 7; // 审核人-管理员ID
  9165. optional string CheckRemark = 8; // 审核备注
  9166. }
  9167. // 提货审核应答
  9168. message SpotShopTakeGoodsAuditRsp {
  9169. optional MessageHead Header = 1; // 消息头
  9170. optional int32 RetCode = 2; // 返回码
  9171. optional string RetDesc = 3; // 描述信息
  9172. optional uint64 TakeGoodsApplyID = 4; // 提货申请ID
  9173. optional string Clientserialno = 5; // 客户端流水号
  9174. }
  9175. // 商品下架请求
  9176. message SpotShopGoodsOffReq {
  9177. optional MessageHead Header = 1;
  9178. optional uint64 GoodsID = 2; // 商品ID
  9179. }
  9180. // 商品下架应答
  9181. message SpotShopGoodsOffRsp {
  9182. optional MessageHead Header = 1; // 消息头
  9183. optional int32 RetCode = 2; // 返回码
  9184. optional string RetDesc = 3; // 描述信息
  9185. optional uint64 GoodsID = 4; // 商品ID
  9186. }
  9187. // 上传交割商品请求
  9188. message UploadDeliveryGoodsReq {
  9189. optional MessageHead Header = 1;
  9190. optional uint64 ID = 2; // 申请ID
  9191. optional uint64 DeliveryGoodsID = 3; // 交割商品ID
  9192. optional string DeliveryGoodsName = 4; // 交割商品名称
  9193. optional string GoodsUnit = 5; // 交割商品单位
  9194. optional uint32 ChangeType = 6; // 变更类型
  9195. optional string ExtendInfo = 7; // 扩展字段
  9196. }
  9197. // 上传用户信息请求
  9198. message UploadUserInfoReq {
  9199. optional MessageHead Header = 1;
  9200. optional uint64 ID = 2; // 申请ID
  9201. optional uint64 UserID = 3; // 用户ID
  9202. optional string UserInfoType = 4; // 用户信息类型
  9203. optional string CustomerName = 5; // 客户名称
  9204. optional string UserStatus = 6; // 用户状态
  9205. optional string UserType = 7; // 账户类型
  9206. optional string OpenMode = 8; // 开户方式
  9207. optional string CardType = 9; // 证件类型
  9208. optional string CardNum = 10; // 证件号码
  9209. optional string LegalPersonName = 11; // 法人姓名
  9210. optional string ContactName = 12; // 联系人
  9211. optional string Sex = 13; // 性别
  9212. optional string Telphone = 14; // 联系电话
  9213. optional string Mobile = 15; // 手机号码
  9214. optional string Company = 16; // 公司
  9215. optional string Address = 17; // 地址
  9216. optional string PostalCode = 18; // 邮政编码
  9217. optional uint32 ChangeType = 19; // 变更类型
  9218. optional string ExtendInfo = 20; // 扩展字段
  9219. }
  9220. // 上传现货成交通知请求
  9221. message UploadSpotGoodsNoticeReq {
  9222. optional MessageHead Header = 1;
  9223. optional uint64 WRTradeDetailID = 2; // 成交单ID
  9224. optional string TradeDate = 3; // 交易日
  9225. optional uint64 MarketID = 4; // 市场ID
  9226. optional uint64 DeliveryGoodsID = 5; // 交割商品ID
  9227. optional string WRFactorType = 6; // 仓单要素类型
  9228. optional uint64 SellAccountID = 7; // 卖方资金账号
  9229. optional uint64 BuyAccountID = 8; // 买方资金账号
  9230. optional string TradeTime = 9; // 成交时间
  9231. optional uint64 TradePrice = 10; // 成交价格
  9232. optional uint64 TradeQty = 11; // 成交数量
  9233. optional uint64 TradeAmount = 12; // 成交金额
  9234. optional uint64 SellUserID = 13; // 卖方用户ID
  9235. optional uint64 BuyUserID = 14; // 买方用户ID
  9236. optional string ExtendInfo = 15; // 扩展字段
  9237. }